AI video subtitles & translation

Build AI video subtitles and translation

A subtitle pipeline pulls the audio out of a video, transcribes it with word-level timestamps, groups the words into short caption lines, writes an .srt file and, if you want, translates each line into other languages. It uses the speech-to-text part of our voice stack plus a cheap text model for translation, and runs fine as a script or a scheduled job.

Uses the picker's Voice assistant stack, with advice specific to this use case.

Recommended stack

Model

  • OpenAI GPT-6 Luna: ~$0.10 in / $0.50 out per 1M tokens (verified 2026-11-29)
  • OpenAI speech-to-text API: gpt-transcribe ~$0.0045/min (files); gpt-live-transcribe ~$0.017/min (streaming); whisper-1 $0.006/min shuts down 2027-02-26 (verified 2026-11-29)
  • ElevenLabs affiliate: Free plan with 10k credits/mo; paid from $6/mo (Starter) (verified 2026-11-29)

Framework

  • Pipecat: Free, open-source voice-agent framework

Hosting

  • Fly.io: No free tier (free trial: $1 of credit for 7 days); personal-org bills under $5/mo are waived; smallest always-on VM ~$2.19/mo (verified 2026-11-15)
  • Railway affiliate: Free $0 w/ $1/mo credit (plus $5 one-time trial credit); Hobby $5/mo incl. $5 usage (verified 2026-11-29)

No-code alternative

  • Voiceflow: Free trial (no card needed); usage-based billing, no public price list (checked 2026-11-15)

Rough monthly cost

$10–50/mo (speech minutes add up fast)Approximate. Tool prices checked 2026-11-15.

Difficulty

Advanced

Some links may be affiliate links. Disclosure

Why this stack

Step-by-step

  1. Extract a compressed mono audio track from the video with FFmpeg (MP3 or M4A keeps uploads small). Split anything longer than 30 minutes into chunks: Gemini 3.5 Transcribe takes up to 1 hour per request, but only 30 minutes when word timestamps or speaker labels are on.
  2. Transcribe each chunk with word-level timestamps turned on, then add each chunk's start offset back onto its word times.
  3. Group the words into caption lines: break at sentence ends and pauses, keep lines short (a common guideline is about 42 characters, two lines at most) and on screen for 1 to 7 seconds, then write the numbered .srt file.
  4. For each extra language, send the numbered lines to a cheap model with a glossary of names and terms, ask for the same numbering back, check the line count matches, and write one .srt per language.
  5. Watch the video with subtitles on before publishing and fix names and numbers. Then upload the files to YouTube (or burn them in with FFmpeg for short-form platforms) and keep the original .srt next to the video.

Common pitfalls

FAQ

How much does it cost to subtitle a video with AI?

Transcription is the main cost. With Gemini 3.5 Transcribe at about $0.005 a minute on the paid tier, a 10-minute video costs about 5 cents to transcribe, and translating the captions with a cheap model like GPT-6 Luna usually adds less than a cent per language (prices checked 29 Nov 2026).

Can AI create SRT subtitle files?

Yes. Use a speech-to-text model that returns word-level timestamps, such as Gemini 3.5 Transcribe, group the words into short lines and write them in SRT format: a number, a start --> end time, and the text. OpenAI's whisper-1 can output SRT directly but shuts down on 26 February 2027.

Can I translate subtitles automatically?

Yes. Translate the finished caption lines with a text model, keeping the line numbers so the timings don't change, then upload one subtitle file per language to YouTube. Have a fluent speaker check videos that matter.

Try it in the picker: Add subtitles to my YouTube videos · Translate my video subtitles to Spanish · Generate SRT captions for my videos

Customise this stack in the picker →

Related stacks

Last updated 2026-11-29.

📬 The Loadout

One weekly AI build loadout: a project idea, the stack to build it, and the tools worth knowing. Free, unsubscribe anytime.

Subscribe to The Loadout