Connect to the Realtime API

Establish a WebSocket connection for realtime conversation. Note: This is a WebSocket endpoint and requires the WebSocket protocol. Example connection URL: wss://api.example.com/v1/realtime?model=gpt-4o-realtime

GET /v1/realtime

Service root: https://getrouter.ai

Protocol: OpenAI Realtime

Authentication: Authorization: Bearer YOUR_API_KEY

Parameters

ParameterLocationTypeRequiredDescription
modelquerystringNoModel to use

Example request

curl --request GET \
  --url https://getrouter.ai/v1/realtime \
  --header "Authorization: Bearer YOUR_API_KEY"

Responses

StatusDescription
101Switching protocols to WebSocket
400Invalid request

This page is generated from the public Relay OpenAPI specification. Browse the complete specification in the API Explorer.