Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

OpenAI Realtime API

OpenAI's API for speech-to-speech voice agents.

By OpenAIChecked
Visit developers.openai.com(opens in a new tab)
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark

What 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.

    TutorialIntermediate1 h 15 min

  • Amazon Bedrock

    AWS service for foundation models, RAG and agents.

    Usage-basedAmazon Web Services

  • Groq

    Fast inference API on Groq's own LPU chips.

    FreemiumGroq

  • OpenRouter

    One API and bill for models from many providers, with routing and fallbacks.

    Usage-basedOpenRouter

  • DeepSeek

    Chat app and API for DeepSeek's open-weight models.

    Usage-basedDeepSeek

  • Hugging Face

    Hub for models, datasets and Spaces, plus open-source ML libraries.

    FreemiumHugging Face

  • Jan

    Open-source desktop chat app that runs local models offline or connects to hosted ones.

    Open source

All Models and local inference