Translate

Translate text between 100+ languages while keeping Markdown structure intact.

POST /api/v1/translate MCP translate aiAI

~10 neurons with m2m100, ~30+ with the LLM engine.

Playground

Text or Markdown to translate.
Target language: ISO code (zh, ja, fr) or name (Simplified Chinese).
Translation backend.
Source language, or auto to detect.
Advanced options (1)
Optional register, e.g. "formal", "casual", "technical documentation".
Runs against this deployment's live API.

Result

Fill in the form and hit Run.

Call it from code

How it works

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.

Parameters

ParameterTypeDefaultDescription
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".

Response

Translated text and the engine that produced it.

ParameterTypeDefaultDescription
translated string Result.
from string Source language used.
to string Target language.
engine string m2m100 or llm.

Pairs well with