caption-translate-pack transcribes a public video URL into SRT and translates its captions for $0.07 per request. Its response now includes a cue-integrity report.

{
  "video_url": "https://samplelib.com/mp4/sample-5s.mp4",
  "target_language": "Spanish"
}

The translation step accepts a prefix of complete cues within a 6000-character budget. A cue is included whole, with its ID and timestamp line. The response then reconciles translated cues against the original SRT. A translated cue with a missing ID or changed timing falls back to its original text.

Read the status before publishing

translation_status is complete, partial, or unavailable. Every original cue stays in the reconstructed SRT, in its original order with the same timing. untranslated_cue_ids identifies captions that still contain source-language text.

With partial output, translated_subtitles contains both accepted translations and original-text fallbacks, and degraded is true. If no translation is usable, that field is null; the full source remains in subtitles.

The integrity report includes source and requested cue counts, plus unexpected IDs returned by translation. These checks validate subtitle structure. They don't certify linguistic accuracy.

Subtitle generation has an 18-second response budget. Translation gets at most six more seconds, within a 24-second composite response deadline. An oversized first cue skips translation entirely; the response identifies every cue as untranslated. Empty or invalid source SRT returns HTTP 424 before a translation call. Source SRT is limited to 100,000 characters for parsing.

Open the endpoint documentation.