Translate API for Azure Translator in Foundry Tools 2025-10-01-preview using LLM + adaptiveDatasetId

Baz Heath 5 Reputation points
2026-04-25T18:21:28.0166667+00:00

https://learn.microsoft.com/en-us/azure/ai-services/translator/custom-translator/azure-ai-foundry/concepts/adaptive-custom-translation

This implies that the adaptCT dataset indexes are to be used with the LLM deployment to fine tune translation output.

I have used the REST API to create the Adaptive DataSet Document and the index from it. The Id returned for the index is an int, but the translate API expects a string for the adaptiveDatasetId parameter. (https://learn.microsoft.com/en-us/azure/ai-services/translator/text-translation/preview/translate-api)

using either the ID or the Name of the DataSet Index results in the following error:

Service request failed.
Status: 400 (Bad Request)
Content:
{"error":{"code":400134,"message":"The adaptive dataset ID in targets is invalid."}}

What is required to use the adaptCT functionality?

Thank you.

Azure Translator in Foundry Tools

1 answer

Sort by: Most helpful
  1. Sina Salam 31,216 Reputation points Volunteer Moderator
    2026-04-27T13:21:36.26+00:00

    Hello Baz Heath,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that your Translate API for Azure Translator in Foundry Tools 2025-10-01-preview using LLM + adaptiveDatasetId is having issues.

    For complete and non-misleading steps for incorrect API usage and configuration mismatch, the best practices are to correct endpoint, the headers, format and version alignment. Follow the below steps to resolve all issues simultaneously:

    1. Use the official Translator endpoint only: https://api.cognitive.microsofttranslator.com is the documented global base URL for Text Translation v3.0, while regional or custom domains are used only for specific deployment scenarios such as geography control or private networking. - https://learn.microsoft.com/en-us/azure/ai-services/translator/text-translation/reference/v3/reference, and https://learn.microsoft.com/en-us/azure/ai-services/translator/text-translation/reference/v3/translate gives more insight.
    2. Stay on the stable version for production: use api-version=3.0, because the official preview uses api-version=2025-10-01-preview and introduces a different request contract that should not be mixed with GA calls.
    3. Send the required headers exactly as documented: Ocp-Apim-Subscription-Key, Content-Type: application/json; charset=UTF-8, and Ocp-Apim-Subscription-Region when the resource is regional or multi-service. - https://learn.microsoft.com/en-us/azure/ai-services/translator/text-translation/reference/v3/translate, https://docs.azure.cn/en-us/ai-services/translator/text-translation/reference/v3/reference
    4. Use the GA request body format, not the preview schema: for v3.0, send a JSON array such as [{ "Text": "Hello world" }]; the preview API instead expects an inputs object with targets, so mixing them causes request failures.
    5. A valid GA cURL call is: curl -X POST "https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=fr" -H "Ocp-Apim-Subscription-Key: YOUR_KEY" -H "Ocp-Apim-Subscription-Region: YOUR_REGION" -H "Content-Type: application/json; charset=UTF-8" -d "[{\"Text\":\"Hello world\"}]".
    6. Verify the resource before testing: create either a Translator resource or an Azure AI multi-service resource, then copy the correct key, region, and endpoint from the Azure portal.
    7. If you are using Azure AI Foundry preview features, keep the contract separate: Foundry-based preview translation still uses Translator, but it requires the preview API version and the newer inputs / targets payload model.

    Troubleshoot in this order: 400 usually means invalid parameters or body, 401 means authentication is wrong, and path or endpoint mismatches should be corrected against the official request URL first; if the call still fails, recheck that the version, headers, and JSON schema match the exact API you selected.

    Official resources:

    I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.