Translate subtitles
translatePaid: 2 credits per minute. Translate captions (transcriptionJobId or subtitles) with Workers AI m2m100 and keep cue timing; returns SRT, VTT, and JSON. Word-level highlight is not kept. burn:true also burns the translation (adds 4 credits per minute) and needs media plus a preset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| burn | No | ||
| fileId | No | ||
| preset | No | ||
| mediaUrl | No | ||
| faceAvoid | No | true = move captions off faces (samples faces at 2 fps, same price; result.faceAvoid.faceLayout). Shortcut for styleOverrides.faceAvoid. | |
| subtitles | No | ||
| maxCredits | No | ||
| highlightColor | No | #RRGGBB for highlightWords. Default #FACC15. | |
| highlightWords | No | Shortcut: words or phrases to color in every caption (accent/case-insensitive), e.g. ["AwesomeVideo", "gratis"]. Maps to styleOverrides.wordHighlights rule {id:"custom", words, color}. Same price. | |
| sourceLanguage | No | ||
| styleOverrides | No | Per-call style changes deep-merged onto the preset (same fields as list_presets style; null removes a field), validated with the renderer schema and bundled fonts. Example {"fontSize":72,"maxWordsPerCaption":2,"wordEntrance":"bounce"}. Same price. No need to save_custom_preset. Every field with examples: get_style_reference. | |
| targetLanguage | Yes | ISO 639-1 code such as es, fr, de, pt, it, ja, zh. Unsupported codes return invalid_language. | |
| transcriptionJobId | No |