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.
| Audio tokenization | 50 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 growth | System 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 tokensNative 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
Use GPT-4o Mini Realtime instead of GPT-4o Realtime — 10x cheaper audio tokens with acceptable quality for most use cases.
Enable prompt caching for the system prompt. It's resent every turn, so a high cache hit rate dramatically reduces text context cost.
Summarize conversation history instead of sending raw turns. Compress 20 turns into a 200-token summary to cut context growth.
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