SuperAPIAI Directory

OpenAI Realtime API

openai.com · AI developer platforms

OpenAI's Realtime API enables low-latency speech-to-speech conversations with its models, without the delay of a separate transcription, language model, and speech synthesis pipeline. Developers build voice agents and live assistants with it.

Open website Alternatives
PlatformsWeb · API

About this tool

Purpose

OpenAI Realtime API is aimed at developers, for building fast, low-latency speech-to-speech experiences in applications. OpenAI positions it as a capability similar to ChatGPT's Advanced Voice Mode, supporting natural voice conversations using the six preset voices already available in the API.

In the past, to create a similar voice assistant experience, developers first had to transcribe audio using automatic speech recognition models such as Whisper, then pass the text to a text model for inference, and finally play the result using a text-to-speech model. This chained approach often caused the loss of emotion, stress, and accent, and introduced noticeable latency. The Realtime API improves on this by directly streaming audio input and output, delivering a more natural conversational experience and automatically handling interruptions like ChatGPT's Advanced Voice Mode.

Key capabilities

  • Speech-to-speech conversation: OpenAI states that it supports low-latency, multimodal experiences, using the six preset voices already supported by the API.
  • Persistent connection: Under the hood, it exchanges messages by creating a persistent WebSocket connection to GPT-4o.
  • Function calling: The API supports function calling, which voice assistants can use to respond to user requests, trigger actions, or fetch new context. OpenAI gives examples such as a voice assistant placing an order on the user's behalf, or retrieving relevant customer information to personalize responses.
  • Automatic interruption handling: Similar to ChatGPT's Advanced Voice Mode, it can automatically handle conversational interruptions.
  • Audio input and output in the Chat Completions API: For scenarios that do not need the low-latency advantages of the Realtime API, OpenAI introduced audio input and output in the Chat Completions API, allowing developers to input any text or audio to GPT-4o and have the model reply in text, audio, or both.

Versions and updates

  • October 1, 2024: The Realtime API public beta was released, open to all paying developers; the audio capabilities are provided by the new GPT-4o model gpt-4o-realtime-preview. The audio capabilities of the Chat Completions API will be rolled out in the following weeks with the new model gpt-4o-audio-preview.
  • October 17, 2024: Audio input and output in the Chat Completions AAvailable in PI.
  • October 30, 2024: Five new voices added, with greater range and expressiveness; cached pricing is offered for text and audio input, with cached text input reduced to $2.50 per million tokens and cached audio input reduced to $20 per million tokens.
  • February 3, 2025: The limit on the number of concurrent sessions for the Realtime API was removed; see the official documentation for the latest rate limits.
  • August 28, 2025: The Realtime API was announced as generally available.

How to use

Developers can start building in the Playground, or use the official documentation and reference clients. OpenAI has also partnered with LiveKit and Agora to provide audio component client libraries covering echo cancellation, reconnection, and voice isolation; and with Twilio to integrate the Realtime API into Twilio's Voice API, enabling developers to build and deploy AI virtual agents and connect with customers through voice calls.

The plans OpenAI listed while advancing toward general availability include: supporting more modalities (initially voice, with plans to gradually add vision and video); increasing rate limits (at launch, roughly 100 concurrent sessions for Tier 5 developers, and lower for Tiers 1–4); integrating Realtime API support into the OpenAI Python and Node.js SDKs; adding Prompt Caching so that previous conversation turns can be reprocessed at a discounted price; and expanding model support, with the Realtime API also to support GPT-4o mini.

Pricing

The Realtime API uses both text tokens and audio tokens: text input $5 per million tokens, output $20 per million tokens; audio input $100 per million tokens, output $200 per million tokens. This works out to approximately $0.06 per minute for audio input and $0.24 per minute for audio output. Audio in the Chat Completions API is priced the same.

Use cases

The early use cases cited by OpenAI include: the nutrition and fitness coaching app Healthify uses the Realtime API to let users have natural conversations with its AI coach Ria, and brings in a human dietitian when personalizedsupport is needed; the language learning app Speak uses it to power role-play features that encourage users to practice conversations in a new language. OpenAI believes it can be used for many use cases ranging from education to translation, customer support, and accessibility.

Safety and privacy

The Realtime API uses multiple layers of safety protection to reduce the risk of API abuse, including automated monitoring and human review of flagged model inputs and outputs. It is built on the same GPT-4o version as ChatGPT's Advanced Voice Mode, and OpenAI conducted automated and human evaluations based on the Preparedness Framework and other measures; it also reuses the audio safety infrastructure built for Advanced Voice Mode. OpenAI policy prohibits reusing or distributing service outputs to send spam, mislead, or harm others, and requires developers to clearly inform users that they are interacting with AI (unless this is obvious from context). Before launch, OpenAI tested through an external red-team network and concluded that no high-risk gaps not covered by existing mitigations were introduced. Like other API services, this service is subject to enterprise privacy commitments, and inputs or outputs from the service will not be used to train models without explicit permission.

Limitations

The limitations explicitly mentioned in official materials include: at launch, rate limits were approximately 100 concurrent sessions for Tier 5 developers, and lower for Tiers 1–4 (this concurrency limit was removed on February 3, 2025; consult the official documentation for the latest rate limits); initially only voice was supported, with vision and video as planned capabilities; support in the official Python and Node.js SDKs, Prompt Caching, and GPT-4o mini support were all planned items at launch. Other specific available platforms, usage steps, and limitations are not yet provided in the available materials.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools