Translate WebVTT subtitle files while preserving all timing cues, styling, positioning, and metadata. Only the subtitle text is translated, maintaining synchronization with the original media. WebVTT is the standard subtitle format for HTML5 video.
HTTP Request
| |
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source | string | No | "auto" | Source language code. Use auto for automatic detection |
target | string | Yes | — | Target language code |
Request Body
Send the WebVTT content as the raw request body with Content-Type: text/plain.
| |
Response
| |
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | Whether the request was successful |
data.translated_vtt | string | The translated WebVTT content with timing preserved |
data.source_language | string | Detected or specified source language code |
data.source_language_name | string | Human-readable name of the source language |
Code Examples
| |
| |
| |
Related Endpoints
- Translate SRT — Translate SRT subtitle files
- Translate ASS — Translate ASS/SSA subtitle files
- Translate — Translate plain text