Translate

POST
Translate text from one language to another.

Request

This endpoint expects an object.
text
stringRequired
The text to check for toxicity.
source_lang
stringRequired
The source language of the text.
target_lang
stringRequired
The target language for the translation.
use_third_party_engine
booleanOptional
Enables/disables third party translations.

Response

This endpoint returns an object
id
stringOptional
Unique ID for the chat completion.
object
stringOptional
Type of object (chat completion).
created
integerOptional
Timestamp of when the chat completion was created.
best_translation
stringOptional
The best translation of the input text.
best_score
doubleOptional
The best score for the best translation.
best_translation_model
stringOptional
The model used for the best translation.
translations
list of objectsOptional
The set translations from different models.

Errors