Translate text or web page
translate[PAID $0.005 USDC per call via x402 on Base; errors are free] LLM translation (Meta Llama 4 Scout on Workers AI, M2M100 fallback). Give text, or a url whose main content is extracted as Markdown and translated in blocks, preserving Markdown formatting, URLs and code blocks. Source language auto-detected (or set from). Up to 20,000 chars per call (default 8,000). All params optional: with none it translates a short Spanish sample to English. Languages: en,es,fr,de,it,pt,nl,ru,uk,pl,cs,ro,hu,el,bg,sv,da,no,fi,tr,ar,he,fa,hi,bn,ur,ta,zh,ja,ko,vi,th,id,ms,tl,sw.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target language, ISO 639-1 code or English name (default "en"). | |
| url | No | Public http(s) URL whose main content is translated (optional; used when `text` is absent). | |
| from | No | Source language code, or "auto" (default: auto-detect). | |
| text | No | Text or Markdown to translate (optional). If omitted and no url, a short Spanish sample is used. | |
| maxChars | No | Max source chars to translate (default 8000). |