Sample - OpenAI API
POST/live/sessions

Create session

Create a Live WebRTC session. Start with the Live prompting guide.

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

2 body fields
sessionobjectrequired
Startup configuration for the Live session.
transportobjectrequired
WebRTC transport with the browser's SDP offer.

1 status code
201Live session created with a WebRTC answer.
sessionobjectrequired
The newly created Live session. Use its ID for session controls and sideband connections.
transportobjectrequired
WebRTC transport with the SDP answer.