Translate text
translate_textTranslate plain text or up to 50 separate strings into a target language, with automatic source detection and support for long articles up to 100,000 characters.
Instructions
Translate plain text and answer with the translation. Pass texts for separate strings -- labels, messages: each translated on its own, answered in order, at most 50 texts of 5,000 characters, 20,000 characters per call. Pass text for one long text -- an article, a chapter, up to 100,000 characters: it is cut at sentences by Equalang, so do not split it yourself. For anything that is a file, use translate_file, which keeps its formatting. Charged by length, a small amount; the answer says how much.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | One whole text, paragraphs and line breaks included, instead of texts. | |
| texts | No | Separate strings, each translated on its own. Omit when passing text. | |
| source_language | No | Language of the text; omit to detect it. | |
| target_language | Yes | Language to translate into. A language code such as en, zh-CN, zh-TW, ja, ko, es, fr, de. list_languages has the codes: fewer for files than for text. |