Start a Realtime WebRTC call
Exchanges a WebRTC SDP offer for an OpenAI Realtime SDP answer. Audio and the oai-events data channel then flow between the client and the model; each response is billed as it finishes. Authenticate with an API key or a client secret. Send the offer as multipart/form-data with sdp and session fields, or as application/sdp with the model in the model query parameter. With a client secret, the model and session settings come from the secret.
ApiKeyAuthAuthorization<token>model?stringModel ID used when the session field omits model.
body*stringWebRTC SDP offer.
The SDP answer. Location is /v1/realtime/calls/{call_id}.
response?stringapplication/sdpcurl -X POST 'https://api.ohmygpt.com/v1/realtime/calls'"string"Realtime
Speech-to-speech and text conversations over one WebSocket with the OpenAI Realtime API.
Create Realtime client secret POST
Creates a short-lived client secret for browsers and mobile apps: open a session at `wss://api.ohmygpt.com/v1/realtime` with it in place of your API key. The model and session settings are fixed when it is created and applied when the session opens. Set the model in `session.model` or the top-level `model` field.