rendermate

How to transcribe a video with word-level timestamps through an API

To transcribe a video with word-level timestamps, send the video file to a speech-to-text model that returns word timings. With rendermate that's one request: POST /v1/generations with assemblyai/universal-2 or elevenlabs/scribe-v2 and the video as the audio input. You get back a JSON transcript in which every word has start_ms and end_ms, plus a speaker label when you ask for one. You don't need to extract the audio first.

1. Put the video in your workspace

rendermate transcribes files that are assets in your workspace. Import one from a public URL (up to 5 GB), upload it with PUT /v1/assets/{name}, or keep a folder in sync with rendermate sync:

terminal
curl https://api.rendermate.com/v1/imports \
  -H "Authorization: Bearer $RENDERMATE_API_KEY" \
  --json '{"name": "interviews/ada.mp4", "url": "https://example.com/ada.mp4"}'

2. Ask for a transcript

Create a generation with a transcription model. Its one input has the role audio, which takes audio or a video's sound. Set output to where the transcript should be saved:

terminal
curl https://api.rendermate.com/v1/generations \
  -H "Authorization: Bearer $RENDERMATE_API_KEY" \
  --json '{"model": "assemblyai/universal-2",
           "inputs": [{"role": "audio", "asset": "interviews/ada.mp4"}],
           "params": {"speakers": true, "speakers_expected": 2},
           "output": "interviews/ada.transcript.json"}'

Both models take the same three params:

  • language: the spoken language, such as en. The model detects it when you leave it out.
  • speakers: label who says each word.
  • speakers_expected: how many speakers there are, when you know. It needs speakers.

3. Wait for it to finish

Transcription runs in the background. Poll GET /v1/generations/{id} until status is succeeded, or add a webhook endpoint and get generation.succeeded. A finished generation lists what it made in outputs: one output with the role transcript, saved as the asset you named. Its usage shows the audio it was billed for, in audio_seconds.

4. Read the transcript

GET /v1/assets/interviews/ada.transcript.json returns a download_url. The file is the same shape whichever model made it:

interviews/ada.transcript.json
{
  "language": "en",
  "duration_ms": 2000,
  "text": "Hello world.",
  "words": [
    {"text": "Hello", "start_ms": 120, "end_ms": 480, "speaker": "A", "confidence": 0.98},
    {"text": "world.", "start_ms": 520, "end_ms": 1010, "speaker": "A", "confidence": 0.9}
  ]
}
  • start_ms and end_ms are milliseconds from the start of the audio, so they line up with the video's own timeline.
  • speaker appears when you set speakers, as the provider labels speakers, such as A and B.
  • confidence runs from 0 to 1, when the provider scores words.
  • text is the whole transcript, punctuated. Each word keeps its punctuation, such as world..

Turn word timings into SRT captions

Captions are word timings grouped into short cues. This function groups up to 7 words and 3 seconds per cue, ends a cue at the end of a sentence, and writes SRT:

srt.ts
type Word = {text: string; start_ms: number; end_ms: number};

const time = (ms: number) => {
  const pad = (n: number, width = 2) => String(n).padStart(width, "0");
  const h = Math.floor(ms / 3_600_000);
  const m = Math.floor(ms / 60_000) % 60;
  const s = Math.floor(ms / 1000) % 60;
  return `${pad(h)}:${pad(m)}:${pad(s)},${pad(ms % 1000, 3)}`;
};

export function srt(words: Word[], maxWords = 7, maxMs = 3000): string {
  const cues: Word[][] = [];
  for (const word of words) {
    const cue = cues.at(-1);
    const last = cue?.at(-1);
    if (cue && last && cue.length < maxWords && word.end_ms - cue[0].start_ms <= maxMs && !/[.?!]$/.test(last.text)) {
      cue.push(word);
    } else {
      cues.push([word]);
    }
  }
  return cues
    .map((cue, i) => {
      const text = cue.map((w) => w.text).join(" ");
      return `${i + 1}\n${time(cue[0].start_ms)} --> ${time(cue[cue.length - 1].end_ms)}\n${text}\n`;
    })
    .join("\n");
}

For WebVTT, start the file with WEBVTT and a blank line, and write the times with a dot instead of a comma: 00:00:01.010.

AssemblyAI Universal-2 or ElevenLabs Scribe v2

Both return the same transcript shape, so you can switch models by changing model. Prices are each provider's own list price, read on its pricing page on 2026-12-03.

AssemblyAI Universal-2ElevenLabs Scribe v2
Model IDAssemblyAI Universal-2assemblyai/universal-2ElevenLabs Scribe v2elevenlabs/scribe-v2
LanguagesAssemblyAI Universal-299ElevenLabs Scribe v290
Word timingsAssemblyAI Universal-2Yes, in millisecondsElevenLabs Scribe v2Yes, in milliseconds
Speaker labelsAssemblyAI Universal-2Yes, with speakersElevenLabs Scribe v2Yes, with speakers
Provider's list price per audio hourAssemblyAI Universal-2$0.15, or $0.17 with speaker labelsElevenLabs Scribe v2$0.20

From an AI agent

The same call is the create_generation tool on rendermate's MCP server. Connect Claude Code, Cursor or ChatGPT to https://api.rendermate.com/mcp and ask: "Transcribe interviews/ada.mp4 with speakers." The Claude Code guide shows the setup.

■ questions

Can I transcribe a video file without extracting the audio?

Yes. rendermate's transcription models take a video as their audio input and transcribe its sound; there's no separate audio extraction step.

What format are the word timestamps in?

Each word in rendermate's JSON transcript has start_ms and end_ms: integers in milliseconds from the start of the audio. Both AssemblyAI Universal-2 and ElevenLabs Scribe v2 transcripts use this format.

How much does it cost to transcribe an hour of video?

AssemblyAI lists Universal-2 at $0.15 an audio hour ($0.17 with speaker labels), and ElevenLabs lists Scribe v2 at $0.20 an audio hour, on their pricing pages on 2026-12-03. rendermate bills a transcription at that list price, with no markup, for the audio it used.

How do I get speaker labels for each word?

Set "speakers": true in the generation's params, and speakers_expected when you know how many people talk. Every word in the transcript then has a speaker, such as A or B.

Can I make SRT or VTT subtitles from the transcript?

Yes. Group the transcript's words into cues by their start_ms and end_ms; the srt function in this post does it in about 25 lines of TypeScript.

Which languages can it transcribe?

AssemblyAI Universal-2 transcribes 99 languages and ElevenLabs Scribe v2 transcribes 90. Both detect the language when you don't set language.

■ start

join the waitlist →