OpenAI Realtime API
OpenAI's API for speech-to-speech voice agents.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkWhat it is
The Realtime API streams audio to and from an OpenAI speech model in one session, so a voice agent can listen, answer aloud, call tools and stop when the user interrupts, without a separate transcription and text-to-speech step. Browsers connect over WebRTC and servers over WebSocket, and the session keeps the conversation state between turns. Session settings choose the voice, instructions and tools, and the server sends events such as audio deltas and transcripts as the reply is generated. Google's Gemini Live API is the closest alternative.
Best for
Developers building voice agents that answer fast and handle interruptions.
Skills it helps with
Learn OpenAI Realtime API by doing
- Build a voice agent you can talk to
Stream your microphone to a realtime speech model, call a tool mid-conversation, measure latency and let the user interrupt it.
Related tools
Amazon Bedrock
AWS service for foundation models, RAG and agents.
Groq
Fast inference API on Groq's own LPU chips.
OpenRouter
One API and bill for models from many providers, with routing and fallbacks.
DeepSeek
Chat app and API for DeepSeek's open-weight models.
Hugging Face
Hub for models, datasets and Spaces, plus open-source ML libraries.
Jan
Open-source desktop chat app that runs local models offline or connects to hosted ones.