v32

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-07-312881,4162.7 MB
Realtime

Create transcription session

Create an ephemeral API token for use in client-side applications with the Realtime API specifically for realtime transcriptions. Can be configured with the same session parameters as the transcription_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 transcription session object, plus an ephemeral key.

post/realtime/transcription_sessions

Request body

input_audio_format'pcm16' | 'g711_ulaw' | 'g711_alaw'

The format of input audio. Options are pcm16, g711_ulaw, or g711_alaw. For pcm16, input audio must be 16-bit PCM at a 24kHz sample rate, single channel (mono), and little-endian byte order.

includestring[]

The set of items to include in the transcription. Current available items are: item.input_audio_transcription.logprobs

Response

Session created successfully.

modalitiesstring[]

The set of modalities the model can respond with. To disable audio, set this to ["text"].

input_audio_formatstring

The format of input audio. Options are pcm16, g711_ulaw, or g711_alaw.