Translate text
blackwood_text_translateUse when you need to translate text, a language translation or a text translation of a sentence or paragraph between two languages. Do not use for formatting that must be preserved, certified or legal translation, or speech (transcribe first). Returns JSON with text translation between about 100 languages by Meta M2M100 1.2B on Workers AI: the translated text with the source and target languages used for 0.012 USDC per call. Typical response time 5000 ms (p95). Category: Inference.
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>",
"to": "<to>"
},
"name": "blackwood_text_translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target language as an ISO 639-1 code, e.g. es, fr, pt, de, ja, zh | |
| from | No | Source language as an ISO 639-1 code (default en) | |
| text | Yes | Text to translate, e.g. Pay only for the requests you make (up to 2000 characters) | |
| response_format | No | concise (the default when omitted) keeps the JSON short: long fields such as base64 images or audio come back as separate image/audio content blocks and other long strings are cut with a marker; detailed returns the full JSON |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||