Translate text between 19 languages (Korean, Japanese, Chinese, English, European), source auto-detected by script
ai_translateUse when an agent must translate text (replies, documents, transcripts). Input: text (max 1500 chars, GET or POST JSON), target language code, optional source (auto-detected for Korean, Japanese, Chinese, Cyrillic, Arabic, Hindi, Thai; Latin script defaults to English). Output: translatedText, source, target, model. Not stored. Example: ?text=Hello%2C%20how%20are%20you%3F&target=ko Price: $0.002 USDC (Base or Solana) via x402.
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": "ai_translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to translate (1-1500 chars). Empty or longer → 400 before payment (not charged) | |
| source | No | Source language (default auto: detected from the script; give it for Latin-script languages other than English) | |
| target | Yes | Target language code |