Translate

POST

Translate text from one language to another.

Request

This endpoint expects an object.
textstringRequired

The text to translate.

source_langstringRequired

The source language of the text.

target_langstringRequired

The target language for the translation.

use_third_party_enginebooleanOptionalDefaults to false

Enables/disables third party translations.

Response

Successful response.

idstringOptional

Unique ID for the translation.

objectstringOptional

Type of object (translation).

createdintegerOptional

Timestamp of when the translation was created.

best_translationstringOptional

The best translation of the input text.

best_scoredoubleOptional

The best score for the best translation.

best_translation_modelstringOptional

The model used for the best translation.

translationslist of objectsOptional

The set translations from different models.

Errors

Built with