Overview
The Realtime Audio API provides session-based voice interaction. A session defines the model, voice, modalities, and turn-detection behavior. Clients connect to a session over WebSocket and stream audio or text in real time.Base URL
Endpoints
Authentication
REST endpoints require a virtual key in theAuthorization header. The WebSocket endpoint accepts the same key as a query parameter or header, depending on client support. See Authentication.
Create a session
Request body
Voices
Turn detection
Example request
Example response
List sessions
Retrieve a session
Delete a session
WebSocket events
Connect to the session WebSocket and exchange events:Example WebSocket connection
Error codes
Related pages
- Chat Completions — text-based conversational AI
- Files — store audio files for offline processing