v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-141811490.1 KB

Translates input text from the source language to the target language. For a list of available languages and language codes, see <a href="https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html">Supported languages</a>.

post/#X-Amz-Target=AWSShineFrontendService_20170701.TranslateText

Headers

X-Amz-Target'AWSShineFrontendService_20170701.TranslateText' required

Request body

Textstring required

The text to translate. The text string can be a maximum of 10,000 bytes long. Depending on your character set, this may be fewer than 10,000 characters.

TerminologyNamesResourceName[]

The name of the terminology list file to be used in the TranslateText request. You can use 1 terminology list at most in a <code>TranslateText</code> request. Terminology lists can contain a maximum of 256 terms.

SourceLanguageCodestring required
<p>The language code for the language of the source text. The language must be a language supported by Amazon Translate. For a list of language codes, see <a href="https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html">Supported languages</a>.</p> <p>To have Amazon Translate determine the source language of your text, you can specify <code>auto</code> in the <code>SourceLanguageCode</code> field. If you specify <code>auto</code>, Amazon Translate will call <a href="https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html">Amazon Comprehend</a> to determine the source language.</p> <note> <p>If you specify <code>auto</code>, you must send the <code>TranslateText</code> request in a region that supports Amazon Comprehend. Otherwise, the request returns an error indicating that autodetect is not supported. </p> </note>
TargetLanguageCodestring required

The language code requested for the language of the target text. The language must be a language supported by Amazon Translate.

Response

Success

TranslatedTextstring required

The translated text.

SourceLanguageCodestring required

The language code for the language of the source text.

TargetLanguageCodestring required

The language code for the language of the target text.