induwara.lk
induwara.lkAI · Developer

AI Video Token & Cost Calculator

Estimate how many input tokens a video costs when you send it into a multimodal model — Gemini's native per-second tokenization versus frame-sampling into GPT-4o and Claude — priced per video and per month in USD and LKR. Nothing is uploaded; the math runs from the duration you type.

By Induwara AshinsanaUpdated Jul 5, 2026
Video input token & cost

Seconds (90) or mm:ss (1:30). = 1m 0s

Used for GPT-4o & Claude frames.

GPT-4o & Claude only. Gemini is native 1 fps.

Gemini per-frame token count.

Common lengths

For the monthly total.

Rs

CBSL indicative rate.

Cheapest per video
$0.006564
Gemini 2.5 Flash · Rs 2
Input tokens
17,400
on Gemini 2.5 Flash
Cheapest vs dearest
33.7×
cheaper than the priciest model
ModelInput tokensPer videoMonthly (Rs)Fits?
Gemini 2.5 Flash Cheapest
Google · native 1 fps + 1,920 audio
17,400$0.006564Rs 200
GPT-4o
OpenAI · 60 frames × 1,105
66,300$0.1658Rs 5,055
Claude Sonnet
Anthropic · 60 frames × 1,229
73,740$0.2212Rs 6,747
All math runs in your browser from the duration you type — no video is uploaded.

How it works

A multimodal model doesn't "watch" your video — it converts it into tokens, the same billable units it uses for text, and charges them at its input-token rate. There are two very different regimes, and the gap between them can be 30×, so which model you pick matters far more than the length of the clip.

Gemini (native video). Gemini ingests the video file directly, sampling it at 1 frame per second and billing each frame as an image at a fixed 258 tokens (or 66 at low media resolution). The audio track, when included, is a separate 32 tokens per second:

  • video_tokens = duration_seconds × 258
  • audio_tokens = includeAudio ? duration_seconds × 32 : 0
  • total = video_tokens + audio_tokens

OpenAI & Anthropic (frame-sampling). GPT-4o and Claude have no native video input, so you decode the video into still frames at a chosen frame rate and send each as an image:

  • sampled_frames = ceil(duration_seconds × fps)
  • GPT-4o per frame = 85 + 170 × tiles (512px tiles, detail=high)
  • Claude per frame = round(width × height / 750), edge ≤ 1568px
  • tokens = sampled_frames × per_frame_tokens

Audio is intentionally left out of the GPT-4o and Claude paths: their APIs accept audio through separate audio-input endpoints, so folding it into the frame count would double-charge. That keeps the visual-token comparison honest.

Cost. Each token stream is priced at its own published input rate — cost = tokens / 1,000,000 × rate — with Gemini's audio surcharge applied to the audio tokens only. The LKR figure multiplies by your exchange rate, and the monthly total multiplies by videos per month. A fits in contextcheck compares total tokens against each model's input window (about 1M for Gemini, 128k for GPT-4o, 200k for Claude). Every constant is cross-checked against the provider docs on each build, and a per-second formula independently verifies the Gemini frame-count path.

Worked examples

60-second 720p clip, with audio, 1 fps — three providers

  1. Gemini 2.5 Flash: 60 frames × 258 = 15,480 video + 60 × 32 = 1,920 audio = 17,400 tokens
  2. Cost: 15,480/1M × $0.30 + 1,920/1M × $1.00 = $0.004644 + $0.001920 = $0.006564 (Rs 2.00 @305)
  3. GPT-4o: per frame 1280×720 → 3×2 = 6 tiles → 85 + 170×6 = 1,105; 60 × 1,105 = 66,300 tokens
  4. GPT-4o cost: 66,300/1M × $2.50 = $0.16575 (Rs 50.55)
  5. Claude Sonnet: per frame round(1280×720 / 750) = 1,229; 60 × 1,229 = 73,740 → $0.22122 (Rs 67.47)
  6. Cheapest by far: Gemini 2.5 Flash — native video beats frame-sampling ~25–34×

5-minute lecture on Gemini 2.5 Flash, with audio, at scale

  1. Frames: 300 × 258 = 77,400 video tokens
  2. Audio: 300 × 32 = 9,600 audio tokens → total 87,000 tokens
  3. Cost: 77,400/1M × $0.30 + 9,600/1M × $1.00 = $0.02322 + $0.00960 = $0.03282 (Rs 10.01)
  4. Monthly at 500 lectures: $0.03282 × 500 = $16.41 (Rs 5,005)
  5. 87,000 tokens fits comfortably inside Flash's ~1,048,576-token context

Edge case — a 45-minute recording sampled into GPT-4o at 1 fps

  1. Sampled frames: ceil(2,700 × 1) = 2,700 frames
  2. 720p per frame = 1,105 tokens → 2,700 × 1,105 = 2,983,500 tokens
  3. That is ~23× GPT-4o's 128,000-token context — it will NOT fit in one request
  4. The fits column flags this; Gemini native (2,700 × 258 = 696,600) still fits its 1M window
  5. Lesson: for long video, native Gemini is often the only single-request option

Frequently asked questions

Sources & references

Related tools

Rate this tool
Be the first to rate

Comments & feedback

Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.

Found a bug, edge case, or want another model added?

Email me at [email protected] — most fixes ship within 24 hours.