utilpeek: convert subtitles between SRT, WebVTT and JSON
convert_subtitlesConvert between SRT, WebVTT, and JSON subtitle formats, with optional time shifting. Reformat or retime cues for editing, playback, or transcription workflows.
Instructions
utilpeek: Convert subtitles between SRT, WebVTT and JSON, with a time shift. To make subtitles from audio use transcribe_audio. Returns a subtitle file converted between SRT, WebVTT and a JSON segment list [{start, end, text}] (seconds, as /v1/audio/transcribe returns it), with an optional time shift in milliseconds. Strict parsing: the input format is detected, a malformed cue is named in a 422. At most 1,000,000 characters and 10,000 cues. Malformed subtitles (bad timing line, end before start, empty cue, over the limits) are a 422 naming the cue (not charged). A negative shift clamps starts at 0 and drops cues that end before 0. Typically under 0.3 s. Price: USD 0.002. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/subtitle-converter-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Output format: srt (SubRip), vtt (WebVTT) or json (a list of {start, end, text}, seconds). | |
| content | No | The SRT or WebVTT file as text (at most 1,000,000 characters, 10,000 cues). The format is detected from a WEBVTT header unless from_format is given. Use this or segments. | |
| segments | No | A JSON segment list [{start, end, text}] in seconds, as /v1/audio/transcribe returns it. Use this or content. | |
| shift_ms | No | Time shift in milliseconds for every cue (negative = earlier; a cue that ends before 0 is dropped). | |
| from_format | No | Optional input format check: content is srt or vtt, segments are json. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| cues | No | ||
| from | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| output | No | ||
| dropped | No | ||
| duration | No | ||
| segments | No | ||
| shift_ms | No | ||
| operation | No |