Overview
Use this endpoint for realtime sessions such as streaming speech recognition, speech synthesis, speech translation, or realtime multimodal models. Non-WebSocketGET requests return endpoint metadata; WebSocket upgrade requests proxy the realtime upstream session.
For agents, discover realtime-capable models with
/v1/models and choose a model whose supported endpoints include realtime before opening the socket.Connection
Realtime model ID. Use a model whose public contract lists realtime support.
Bearer API key. WebSocket clients should send
Authorization: Bearer sk-your-api-key during the upgrade request.Messages
TokenLab forwards WebSocket messages between your client and the routed realtime provider. Keep provider-specific event shapes for the selected realtime model, and includemodel in the query string rather than in each event.