Translate text between languages
translateTranslation with Llama 3.1 8B: up to 6,000 characters per call, formatting, names, numbers and URLs kept, source language detected when not given. Language codes like en, tr, de, fr, es, ar, zh, or language names. Related tools on this server, for a different need: translate_subtitles when you need to convert an SRT or WebVTT file to another language. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>",
"target": "<target>"
},
"name": "translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Up to 6000 chars | |
| source | No | Optional source language; detected when omitted | |
| target | Yes | Target language code or name, e.g. tr |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| chunks | No | ||
| source | No | ||
| target | No | ||
| translated_text | No |