Realtime sessions
Authorization: Bearer $ORQ_API_KEY in the upgrade request. model is required: a missing value returns 400, an unknown model 404, and a model without a realtime protocol 400.
The endpoint routes xAI Grok Voice models: xai/grok-voice-3.0 and xai/grok-voice-latest.
A session counts against the workspace’s rate limits and budgets when it connects. An exhausted limit rejects the upgrade; see Errors.
OpenAI Realtime
The gateway proxies the OpenAI Realtime event protocol: JSON events in both directions and binary frames for audio. The Grok Voice constraints, audio formats, and billing are listed under Realtime models.Responses over WebSocket
openai-beta.responses.v1 subprotocol and Authorization: Bearer $ORQ_API_KEY. Each client message creates or steers a response; the server streams the same events as an HTTP streaming request.
- One turn at a time. Send the next
response.createafter the previous turn’s terminal event. stream_idlabels the turn and correlates the events that belong to it.response.steertakes aprevious_response_idandinput, and steers the live turn that produced that response. A failure arrives as aresponse.steer.failedevent with a code such asresponse_not_foundorsteering_not_supported.- Connection lifetime is 30 minutes; the server sends a
connection_duration_exceedederror event and closes the socket. Reconnect and continue withprevious_response_id, which fails withprevious_response_not_foundwhen the response has expired.