Realtime API Cost Calculator

Estimate monthly cost for voice agents — audio tokens, growing context, and STT+LLM+TTS pipeline comparison. See exactly where your voice session budget goes.

Realtime API Calculator
Quick presets
Session Parameters
Session: 40 turns · User audio: 18.0k tokens · Agent audio: 12.0k tokens
Scale
Realtime API Model
Audio: $100/M in, $200/M out · Text: $5/M in, cached $2.5/M · 1 sec of audio ≈ 50 tokens
Pipeline Comparison (STT→LLM→TTS)
STT: $0.006/min (Whisper) · TTS: $0.015/min (TTS-1) · Audio→text ratio: ~25% of audio tokens
Realtime API / session
$6.00
Pipeline / session
$0.0999
Realtime API / month
$9,004.50
Pipeline / month
$149.87
STT→LLM→TTS pipeline saves $8,854.63/mo (98.3% less) using GPT-4o mini. Trade-off: higher latency (~1-2s per turn from 3 serial API calls).
Realtime API — cost per session (GPT-4o Realtime)
Audio input (user)
Audio output (agent)
Text context
Audio input (user): $1.80 (30.0%)Audio output (agent): $2.40 (40.0%)Text context: $1.80 (30.0%)
STT→LLM→TTS pipeline — cost per session (GPT-4o mini)
STT (Whisper)
TTS
STT (Whisper): $0.0360 (36.0%)TTS: $0.0600 (60.1%)LLM context: $0.002115 (2.1%)LLM generation: $0.001800 (1.8%)
Context growth across turns
Start: 400 tokens (system prompt) → End: 30.4k tokens (turn 40)
$400.00
Turn 1
$4,150.00
Turn 6
$7,900.00
Turn 11
$11,650.00
Turn 16
$15,400.00
Turn 21
$19,150.00
Turn 26
$22,900.00
Turn 31
$26,650.00
Turn 36
$29,650.00
Turn 40
Monthly cost by Realtime model (50 sessions/day)
$9,004.50
GPT-4o Realtime
$954.54
GPT-4o Mini Realtime
$180.96
Gemini 2.0 Flash (Live)
Highlighted bar = your current model
Conversion assumptions
Audio tokenization50 tokens/sec (Whisper/Realtime standard)
STT cost$0.006/min (OpenAI Whisper API)
TTS cost$0.015/min (OpenAI TTS-1)
Audio → text compression~25% (speech transcribes to ~1/4 audio tokens)
Context growthSystem prompt + avg 750 tokens/turn added each turn

Realtime pricing from published API pages · Text model prices verified 2026-11-18 · Download dataset · Methodology

How to Use

Configure your session

Set session duration, talk ratio (how much time the user vs agent speaks), and turns per minute. Use a preset for common voice scenarios like support calls or interviews.

Choose your Realtime API model

Select from available voice/realtime models. Each has different audio input, audio output, and text pricing per million tokens.

Review session cost breakdown

See how cost splits between audio input (user speech), audio output (agent speech), and text context (system prompt + conversation history resent each turn).

Compare against STT+LLM+TTS pipeline

The calculator automatically estimates the same session using a Speech-to-Text → LLM → Text-to-Speech pipeline with your chosen text model, so you can see which approach is cheaper.

How Realtime / Voice API pricing works

Voice and Realtime APIs like OpenAI’s GPT-4o Realtime and Google’s Gemini Live charge per audio token, not text token. One second of audio equals approximately 50 tokens. Audio output (agent speech) is typically 2x the cost of audio input (user speech). On top of audio costs, the full conversation context — system prompt + all prior exchanges — is resent as text tokens on every turn.

Why voice sessions get expensive fast

The core cost driver is growing context. Turn 1 sends only your system prompt (a few hundred tokens). By turn 20, the context includes all 19 previous exchanges — often 50,000+ tokens of conversation history, all billed as text input. Combined with audio tokens for the actual speech, a 30-minute session can easily cost $5–15 on GPT-4o Realtime.

Audio tokens   = seconds × 50 tokens/sec
Session cost   = audio_in_tokens × $/M_audio_in
               + audio_out_tokens × $/M_audio_out
               + Σ(context_tokens_per_turn) × $/M_text_in

Context grows each turn:
  Turn 1:  system_prompt
  Turn N:  system_prompt + all prior turns

Example: 10-min call, 60/40 talk split, 4 turns/min
  User audio:  360s × 50 = 18,000 tokens
  Agent audio: 240s × 50 = 12,000 tokens
  40 turns × avg ~15K context = 600K text tokens

Native Realtime API vs STT+LLM+TTS pipeline

You have two architectural choices for voice agents. The native Realtime API handles speech-to-speech in a single call with low latency but expensive audio tokens. The STT→LLM→TTS pipeline transcribes speech to text (Whisper at $0.006/min), processes text with any LLM (much cheaper text tokens), and synthesizes the reply (TTS at ~$0.015/min). The pipeline has higher latency (3 serial API calls) but can be significantly cheaper, especially with affordable text models.

Use the pipeline comparison in the calculator above to see which approach is more economical for your specific session profile. Short, simple interactions usually favor the pipeline. Long, complex conversations with heavy context can make the native API competitive because both approaches pay the growing context cost.

How prompt caching helps voice sessions

Since the system prompt is resent on every turn, prompt caching can reduce its cost by up to 95% (depending on the provider’s cached input rate). For a 40-turn session with a 500-token system prompt, that’s 20,000 tokens that go from full price to cached price — often 10–20x cheaper. The prompt caching calculator can help estimate savings for your specific setup.

How this calculator works

Enter your session parameters — duration, talk ratio, turns per minute, and system prompt size. The calculator uses published Realtime API pricing and our weekly-verified text model dataset to compute costs for both approaches. Context growth is modeled turn-by-turn, showing exactly how conversation history inflates cost over time. All calculations run in your browser. See the methodology page for pricing verification details.

How to Cut This Cost

80–90%

Use GPT-4o Mini Realtime instead of GPT-4o Realtime — 10x cheaper audio tokens with acceptable quality for most use cases.

30–60%

Enable prompt caching for the system prompt. It's resent every turn, so a high cache hit rate dramatically reduces text context cost.

20–50%

Summarize conversation history instead of sending raw turns. Compress 20 turns into a 200-token summary to cut context growth.

40–70%

For simple Q&A flows, use an STT→LLM→TTS pipeline with a cheap text model instead of the native Realtime API.

FAQ

Have more questions? Contact us

Last verified: 2026-11-18 · methodology · data sources