OpenAI Realtime API logo

OpenAI Realtime API

OpenAI API for building low-latency voice agents over WebRTC, WebSocket or SIP

With the OpenAI Realtime API, developers build voice agents that listen and speak with low latency. Applications connect over WebRTC, WebSockets or SIP telephony, which covers browser clients, server backends and phone…

OpenAI Realtime API screenshot

With the OpenAI Realtime API, developers build voice agents that listen and speak with low latency. Applications connect over WebRTC, WebSockets or SIP telephony, which covers browser clients, server backends and phone calls. The documentation starts with a quickstart for a browser voice agent built with the Agents SDK, then moves on to prompting, managing conversations, voice activity detection, and tools with MCP support. Live transcription and live translation are available, custom voices can be configured, and separate guides cover latency, cost optimization and deployment checklists written for voice workloads.

Software engineers, solutions architects and AI engineers use it to add spoken interaction to products, from support assistants and tutors to interpreters. Using it requires developer integration and API usage; there is no standalone app.

OpenAI Realtime API alternatives

See all →

Frequently asked

5 questions
Which connection types does the Realtime API support?
Applications can connect over WebRTC, WebSockets or SIP telephony. WebRTC suits browser clients, WebSockets suit server-side applications, and SIP lets a voice agent take part in phone calls. The documentation has a separate guide for each of these connection routes, so developers can pick the one that fits.
How does the Realtime API know when a speaker has finished?
Voice activity detection handles turn-taking in a conversation, detecting when speech starts and stops so the agent can respond at the right moment. The documentation covers it next to guides on prompting, managing conversations and connecting tools, including MCP servers.
Can the Realtime API translate or transcribe speech as it happens?
Yes. Live transcription and live translation are part of the Realtime API, alongside voice agents. Developers can use them to build features such as live captions or an interpreter that converts speech between two languages while the conversation continues without pauses.
What does the Realtime API documentation offer for production?
Production guides cover latency optimization, cost optimization and deployment checklists specific to voice. A quickstart walks through a browser voice agent made with the Agents SDK, and further pages explain custom voices, so the path from first prototype to launch is documented step by step.
Is the Realtime API a ready-made voice assistant?
No. It is a developer interface, so building with it requires integration work and API usage. Developers write the agent, choose the connection type and add tools, while the API handles live speech in both directions between the caller and the model.

Reviews (0)

Write review

No reviews yet. Be the first to share your experience.