For the complete documentation index, see llms.txt. This page is also available as Markdown.

Realtime

Create Realtime Session (WebSocket)

get

Establishes a WebSocket connection for real-time audio and text conversations using OpenAI's Realtime API models.

Connection URL:

wss://api.fastrouter.ai/v1/realtime?model=MODEL_ID

Authentication: Pass your FastRouter API key via Authorization: Bearer header during the WebSocket handshake.

Required header: OpenAI-Beta: realtime=v1

Supported models: openai/gpt-4o-realtime-preview-2024-12-17 and other OpenAI realtime models.

Authorizations
AuthorizationstringRequired

FastRouter API Key. Get yours at https://fastrouter.ai

Format: Authorization: Bearer YOUR_API_KEY

Query parameters
modelstringOptional

The realtime model to use.

Default: gpt-4o-realtime-preview-2024-12-17Example: openai/gpt-4o-realtime-preview-2024-12-17
Responses
200

WebSocket connection established. Communicate using OpenAI Realtime API event format.

No content

get/v1/realtime

No content

Last updated