Translate text between 100+ languages while keeping Markdown structure intact.
translate
aiAI
~10 neurons with m2m100, ~30+ with the LLM engine.
engine: "m2m100" uses Meta's dedicated 1.2B translation model — cheap and fast, best for plain prose.
engine: "llm" routes through an instruction model, which handles idiom, tone and technical vocabulary far
better and is the only option that reliably keeps code blocks untouched.
auto (the default) picks llm when the text contains Markdown structure and m2m100 otherwise.
With preserveMarkdown on, headings, lists, tables, links and fenced code survive translation — code inside
fences is never translated.
| Parameter | Type | Default | Description |
|---|---|---|---|
| text * | string | — | Text or Markdown to translate. |
| to * | string | "zh" |
Target language: ISO code (zh, ja, fr) or name (Simplified Chinese). |
| from | string | "auto" |
Source language, or auto to detect. |
| engine | `auto` | `m2m100` | `llm` | "auto" |
Translation backend. |
| preserveMarkdown | boolean | true |
Keep Markdown structure and leave code blocks untranslated. |
| tone | string | — | Optional register, e.g. "formal", "casual", "technical documentation". |
Translated text and the engine that produced it.
| Parameter | Type | Default | Description |
|---|---|---|---|
| translated | string | — | Result. |
| from | string | — | Source language used. |
| to | string | — | Target language. |
| engine | string | — | m2m100 or llm. |