The OpenAI Realtime API lets one model hear a caller's audio and speak back directly, which makes voice agents sound more natural and handle interruptions better than a chain of speech-to-text, LLM and text-to-speech. Getting a demo working takes an afternoon. Running it for thousands of real calls means solving session limits, tool failures, compliance, cost and quality, which this guide covers.
What the Realtime API offers in 2026
One speech-to-speech model family, three transports, and per-minute companion models for translation and transcription.
Item | Detail |
Core model | gpt-realtime-2 (May 7, 2026), followed by gpt-realtime-2.1 and a cheaper mini tier |
Audio pricing | $32 per 1M input tokens, $0.40 cached, $64 per 1M output tokens |
Translate | gpt-realtime-translate, 70+ input to 13 output languages, $0.034 per minute |
Transcription | gpt-realtime-whisper, $0.017 per minute |
Transports | WebRTC, WebSocket and SIP |
Per-minute via LiveKit Inference | GPT Realtime 2.1 about $0.0676; mini about $0.0216 |
Token pricing makes per-minute cost depend on talk ratio, prompt length and caching. Long, stable system prompts benefit most from cached input at $0.40 per million tokens. Measure your own calls before you forecast.
Realtime vs cascade: which should you use?
Realtime wins on naturalness and interruptions; a cascade still wins on tool reliability, auditability, provider choice and cost for most business calls.
Factor | OpenAI Realtime (speech-to-speech) | Cascade (STT + LLM + TTS) |
Naturalness and emotion | Best; keeps tone and handles barge-in gracefully | Depends on the TTS |
Benchmark task scores (Regal, Nov 2026) | GPT Realtime 2 scored 653 | Top cascaded model (GPT-6 Sol) scored 786 |
Tool calling and multi-step flows | Good, but weaker than top text models in benchmarks | Strongest with models like GPT-5.2 |
Auditability | Need a separate transcript for records | Text at every stage |
Provider flexibility | Locked to one provider per session | Swap STT, LLM or TTS independently |
Cost per minute | About $0.022 (mini) to $0.068 (2.1) in model usage | About $0.013 to $0.040 for common stacks |
Best for | Concierge, coaching, companionship, translation, premium support | Booking, support, regulated and high-volume calls |
Benchmark scores from Regal's Voice CX Benchmark, updated Nov 16, 2026. Cascade costs from LiveKit Inference list prices.
Many production teams use both: realtime for the conversational front door and a cascade for tool-heavy or regulated steps, switching within the same session.
Choosing a transport: WebRTC, WebSocket, SIP or a media server
WebRTC for direct client apps, WebSocket for server-side bridges, SIP for direct phone access, and a media server when you need rooms, recording, fallbacks or multiple providers.
Transport | Use it when | Watch out for |
WebRTC (client to OpenAI) | A browser or mobile app talks to one agent | Ephemeral keys, network traversal, no multi-party |
WebSocket (server to OpenAI) | Your server bridges audio from telephony or another stack | You handle audio framing, buffering and jitter |
SIP (trunk to OpenAI) | Phone calls go straight to the model | Limited control over the media path; fewer hooks for recording and transfers |
Media server (LiveKit) in front | You need telephony, transfers, recording, multi-party, monitoring or a fallback model | One more component to run, or use a managed cloud |
For most production phone agents, we put a media server such as LiveKit between callers and the model. It handles SIP, warm transfers, recordings, observability and lets you switch to a cascade without rebuilding. With LiveKit Agents, the realtime model is one setting:
The 7 Production Gaps
Seven problems show up only after launch; solve them before you scale.
We call these the 7 Production Gaps: the things a Realtime API demo doesn't show you.
Gap | What goes wrong | Production fix |
1. Session lifecycle | Sessions hit time limits, drop on network changes, or leak when callers hang up | Reconnect logic, session resumption with conversation state, hard caps per call |
2. Turn-taking | Agent interrupts slow speakers or waits too long | Tune voice activity settings per use case; test on real phone audio |
3. Tool calls | Slow APIs leave the caller in silence; failed calls aren't retried | Timeouts, spoken fillers, retries and fallbacks for every tool |
4. Guardrails | The model rephrases required disclosures or drifts off-policy | Keep disclosures, consent checks and opt-outs in deterministic code, not the prompt |
5. Audit trail | No reliable text record of what was said | Run parallel transcription and store both sides with timestamps |
6. Cost control | Long silences, huge prompts and runaway sessions inflate token bills | Prompt caching, silence handling, max session length, per-call budgets |
7. Quality drift | Model or prompt updates silently change behavior | Regression evals on recorded calls before every change |
Latency in practice
Realtime models remove the hand-offs between models, but end-to-end delay still depends on network, region and reasoning settings.
Speech-to-speech removes the speech-to-text and text-to-speech hand-offs, but it doesn't remove network distance or thinking time. Coval's 2026 testing put the fastest sign-up speech-to-speech model, Gemini 3.8 Live, at about 1,253 ms voice-to-voice at the 95th percentile, and reported end-to-end figures for gpt-realtime-2 run around 1.5 to 2 seconds in some tests. Our production target for phone agents is 800 ms from caller silence to agent speech, so:
Set reasoning effort to the lowest level that passes your evals.
Keep the media server and model region close to your callers.
Use a short spoken acknowledgment before slow tool calls.
Measure p95 as well as the median.
Production launch checklist
Ten checks before a Realtime API agent takes real calls.
Reconnect and session-resume logic tested with forced network drops.
Max call length and per-call cost cap enforced.
Every tool has a timeout, a spoken filler and a fallback.
Required disclosures and opt-outs run as fixed audio or code.
Parallel transcripts stored for both sides.
Prompt caching configured for long system prompts.
Warm transfer to a human with a summary.
p50 and p95 latency measured on real phone calls.
Regression eval suite built from recorded calls.
A cascade fallback ready if the realtime model degrades or is deprecated.
Final Take
RTC LEAGUE builds production voice agents on the OpenAI Realtime API and on cascades, usually behind LiveKit for telephony, transfers, recording and model flexibility. We close the 7 Production Gaps before launch and test every change against recorded calls.






