Realtime
Exchange Realtime WebRTC SDP
POST
Exchanges a WebRTC SDP offer for an OpenAI Realtime SDP answer. Set the model in session.model of the multipart session field, or in the model query parameter.
ApiKeyAuthheader
Authorization<token>model?stringModel ID used when the multipart session field omits model.
multipart/form-data- body
sdp*stringWebRTC SDP offer.
session?stringJSON-encoded Realtime session object.
The SDP answer.
response?stringapplication/sdpcurl -X POST 'https://api.ohmygpt.com/v1/realtime/calls' \ -F 'sdp=string'示例响应
"string"List models GET
Returns available models in an OpenAI-compatible format. Filters are limited to facts derivable from the catalog and enabled route pricing; category and arch are conservative derived mappings, so an unknown value is not treated as a match.
Create Realtime client secret POST
Creates an ephemeral client secret for an OpenAI Realtime session. Set the model in `session.model` or the top-level `model` field.