A valid request URL is required to generate request examplesResponses API over WebSocket
Upgrades the connection to a WebSocket and runs the OpenAI Responses API
in WebSocket Mode. Clients send response.create events on the socket and
receive streamed events through the standard inference pipeline (PreLLMHook,
key selection, provider call, PostLLMHook).
Auth is identical to the HTTP POST variant — Bearer/Basic/Virtual Key/API Key
may be supplied as request headers on the upgrade request. The OpenAI SDK can
also pass an API key via the openai-insecure-api-key.<key> WebSocket
subprotocol.
This GET endpoint shares its path with the POST inference endpoint; route
selection is based on the Upgrade: websocket request header.
A valid request URL is required to generate request examplesAuthorizations
Bearer token authentication. Use your provider API key or Bifrost authentication token.
Virtual keys (prefixed with sk-bf-) can also be passed here.
Headers
Must be websocket
websocket Optional WebSocket subprotocol. Use openai-insecure-api-key.<key> to
authenticate when headers cannot be supplied by the client.
Response
Switching Protocols — WebSocket upgrade succeeded
Was this page helpful?

