Sample - OpenAI API
POST/realtime/calls

Create call

Create a new Realtime API call over WebRTC and receive the SDP answer needed to complete the peer connection.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 body fields
sdpstringrequired
WebRTC Session Description Protocol (SDP) offer generated by the caller.
sessionobjectoptional
Optional session configuration to apply before the realtime session is created. Use the same parameters you would send in a [`create client secret`](https://developers.openai.com/api/reference/resources/realtime/subresources/client_secrets/methods/create) request.

1 status code
201Realtime call created successfully.