Translate

POST
/translate
Translate text from one language to another.

Request

This endpoint expects an object.
textstringRequired
The text to check for toxicity.
source_langstringRequired
The source language of the text.
target_langstringRequired
The target language for the translation.
use_third_party_enginebooleanOptional
Enables/disables third party translations.

Response

This endpoint returns an object.
idstringOptional
Unique ID for the chat completion.
objectstringOptional
Type of object (chat completion).
createdintegerOptional
Timestamp of when the chat completion 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