Translate text
Translates text to the requested target language. If source is omitted, the service detects it from the text before translation. Yoruba output is diacritized before returning.
Authorizations
Authenticate with Authorization: Bearer <token>. The service accepts JWTs, API keys, and guest tokens through this bearer token header.
Body
JSON translation request. Provide text and the target language.
The request must include text or file_id; meaningful translation currently requires text.
Required ISO 639 target language code.
Optional ISO 639 source language code. Auto-detected from text if omitted.
Text to translate. This is the content used by the current implementation.
Accepted by validation, but this endpoint does not currently read file content.
Accepted by validation, but not passed to the current translation call.
Tone passed to the translation prompt.
neutral, warm, professional, narration Formality passed to the translation prompt.
casual, formal