Responses 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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Headers
string
enum
required

Must be websocket

Allowed:
string

Optional WebSocket subprotocol. Use openai-insecure-api-key.<key> to
authenticate when headers cannot be supplied by the client.

Responses
101

Switching Protocols — WebSocket upgrade succeeded

401

Authentication failed

429

Maximum concurrent WebSocket connections reached

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here!