An Azure service to easily conduct machine translation with a simple REST API call.
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:
- Use the official Translator endpoint only:
https://api.cognitive.microsofttranslator.comis 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. - Stay on the stable version for production: use
api-version=3.0, because the official preview usesapi-version=2025-10-01-previewand introduces a different request contract that should not be mixed with GA calls. - Send the required headers exactly as documented:
Ocp-Apim-Subscription-Key,Content-Type: application/json; charset=UTF-8, andOcp-Apim-Subscription-Regionwhen 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 - 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 aninputsobject withtargets, so mixing them causes request failures. - 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\"}]". - 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.
- 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/targetspayload 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.