Skip to content
mentoor

Topic 5 of 5 · 4 min read

Token costs of video and audio input

Goal: Estimate the token cost of processing a video backlog and cut it with resolution, clipping and batching choices.

Video is billed in tokens per second of footage, so cost is length times rate, and every saving comes from sending fewer seconds, fewer pixels, or the same seconds fewer times. Do the arithmetic before you run a backlog.

Check yourself · 1 of 3

Using the rate in Gemini's documentation of roughly 100 tokens per second at low resolution, about how many tokens is a 10-minute video?

Choose one answer

The rates

Gemini's documentation gives the numbers for its default processing. Frames are sampled at 1 per second. A frame costs 66 tokens at low media resolution and 258 tokens otherwise. Audio costs 32 tokens per second. That comes to roughly 100 tokens per second of video at low resolution and roughly 300 at high resolution. Other vendors count differently, so check the token guide for your model and count a sample file before you plan.

The arithmetic

  • 1 hour = 3,600 seconds. At about 100 tokens per second, that is about 360,000 tokens. At about 300, about 1,080,000.
  • A backlog of 200 videos of 30 minutes each is 360,000 seconds. At about 100 tokens per second, that is about 36 million tokens for one pass. Each extra question you ask about each file pays again unless you cache.
  • The same documentation notes that a model with a 1 million token window handles about 3 hours of video at low resolution but only about 1 hour at high resolution.

Where the savings are

  1. Lower the resolution. Use low media resolution for scenes, people and slides. Use high only when you must read small text.
  2. Clip. Send only the span that matters. Gemini bills tokens only for the clipped interval.
  3. Pre-filter. Search the transcript first. Gemini's content layers let you request the transcript alone, then look at frames for the one clip that matters.
  4. Lower the frame rate when the content is slow. A lecture does not need more than the default.
  5. Cache the file. If you ask ten questions about the same long video, use context caching so the video prefix is not paid at full price each time.
  6. Batch the backlog. Batch mode runs requests asynchronously and is meant for work that is not urgent. Use it for the overnight backlog and keep live calls for interactive use.

Before and after

Before: 200 half-hour training videos, each asked 5 questions, at high resolution: 360,000 seconds times about 300 tokens, times 5 passes, about 540 million tokens.

After: Transcribe once. Search the transcript for the 5 questions. Send only the relevant 2-minute clips at low resolution, using batch mode. Each question touches perhaps 120 seconds at about 100 tokens per second, so about 12,000 tokens per question, or about 12 million tokens across all 1,000 questions.

What goes wrong

  • Counting only one pass. Every follow-up question re-sends the video unless it is cached.
  • High resolution everywhere because one video had small text.
  • Estimating from a blog post instead of counting a sample file.
  • Forgetting the output. Long timestamped answers cost tokens too, and at a higher price per token than input.

Examples

Estimate for a backlog

Item Value
Videos 120
Length each 45 min (2,700 s)
Total seconds 324,000
Tokens at about 100/s about 32.4 million
Tokens at about 300/s about 97.2 million

Switching to low resolution cuts the estimate to a third before any other saving.

Pre-filter then clip

Step 1: request only the transcript of each video and search it for "safety briefing". Step 2: for each of the 14 hits, clip 90 seconds around the match. Step 3: send those 14 clips at low resolution through batch mode. The model now reads about 1,260 seconds instead of 324,000.

Key points

  • Cost is seconds of footage times tokens per second, so estimate it before running a backlog.
  • At the default frame rate, Gemini's docs give roughly 100 tokens per second of video at low resolution and roughly 300 at high resolution.
  • Clipping and transcript pre-filtering cut cost the most, because they remove seconds that were never needed.
  • Caching avoids paying again for a video you ask many questions about, and batch mode suits non-urgent backlogs.
  • Count tokens on a real sample file with your model, since rates differ by vendor and by setting.

Common mistakes

  • Using high media resolution for the whole backlog because one video had small on-screen text.
  • Pricing a single pass and forgetting that each new question about the same file pays again without caching.
  • Sending whole videos to find a moment that a transcript search could have located first.
  • Using token rates from memory or an old article instead of counting tokens on a sample with the model in use.

Check yourself · 2 of 3

You have 150 long videos and need answers about a 2-minute section of each, found from a transcript. Which choice saves the most?

Choose one answer

Check yourself · 3 of 3

You will ask 10 different questions about the same one-hour video over an afternoon. What cuts the repeat cost?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic