Convert an SRT or WebVTT file to another language
translate_subtitlesTranslate an SRT or WebVTT subtitle file into another language. Only the cue text is translated; every cue number, timing line and header is copied exactly, and the output is checked to parse back to the same cues and timings, or it is refused unpaid. Body { subtitles, to, from }: up to 50 KB. Workers AI (Llama 3.1 8B) translates the text, so check it before publishing. Related tools on this server, for a different need: translate when you need to translate text between languages. Price: $0.004 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); 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": {
"subtitles": "<subtitles>",
"to": "<to>"
},
"name": "translate_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target language name or code, e.g. German or de | |
| from | No | Source language, optional; detected by the model when not given | |
| subtitles | Yes | The SRT or WebVTT text, up to 50 KB (JSON body field) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| cues | No | ||
| from | No | ||
| model | No | ||
| format | No | ||
| source | No | ||
| checkedAt | No | ||
| subtitles | No |