Create session
Changed onCreate an ephemeral API token for use in client-side applications with the Realtime API. Can be configured with the same session parameters as the session.update client event.
It responds with a session object, plus a client_secret key which contains a usable ephemeral API token that can be used to authenticate browser clients for the Realtime API.
Returns the created Realtime session object, plus an ephemeral key.
Request
- Base URLhttps://api.openai.com/v1
- URLhttps://api.openai.com/v1/realtime/sessions
- AuthHTTP bearer
Request body
Example request
{
"voice": {
"id": "voice_1234"
}
}Response
Session created successfully.
Changes
- info
added the new optional request property
/////// - info
added the new optional request property
/////// - info
added the new optional request property
///////
- info
- breaking
the response property
//became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
became nullable for the status
- breaking