Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Audio

ModelsExpand Collapse
audio_model: "whisper-1" or "gpt-transcribe" or "gpt-4o-transcribe" or 3 more
audio_response_format: "json" or "text" or "srt" or 3 more

The format of the output, in one of these options: json, text, srt, verbose_json, vtt, or diarized_json. For gpt-4o-transcribe and gpt-4o-mini-transcribe, the only supported format is json. For gpt-4o-transcribe-diarize, the supported formats are json, text, and diarized_json, with diarized_json required to receive speaker annotations.

AudioSpeech

Turn audio into text or text into audio.

Create speech
$ openai audio:speech create
POST/audio/speech
ModelsExpand Collapse
speech_model: "tts-1" or "tts-1-hd" or "gpt-4o-mini-tts" or "gpt-4o-mini-tts-2025-12-15"

AudioTranscriptions

Turn audio into text or text into audio.

Create transcription
$ openai audio:transcriptions create
POST/audio/transcriptions
ModelsExpand Collapse
transcription: object { text, languages, logprobs, usage }

Represents a transcription response returned by model, based on the provided input.

transcription_diarized: object { duration, segments, task, 2 more }

Represents a diarized transcription response returned by the model, including the combined transcript and speaker-segment annotations.

transcription_diarized_segment: object { id, end, speaker, 3 more }

A segment of diarized transcript text with speaker metadata.

transcription_include: "logprobs"
transcription_language: object { code }

A language detected in transcribed audio.

transcription_segment: object { id, avg_logprob, compression_ratio, 7 more }
transcription_stream_event: TranscriptionTextSegmentEvent { id, end, speaker, 3 more } or TranscriptionTextDeltaEvent { delta, type, logprobs, segment_id } or TranscriptionTextDoneEvent { text, type, languages, 2 more }

Emitted when a diarized transcription returns a completed segment with speaker information. Only emitted when you create a transcription with stream set to true and response_format set to diarized_json.

transcription_text_delta_event: object { delta, type, logprobs, segment_id }

Emitted when there is an additional text delta. This is also the first event emitted when the transcription starts. Only emitted when you create a transcription with the Stream parameter set to true.

transcription_text_done_event: object { text, type, languages, 2 more }

Emitted when the transcription is complete. Contains the complete transcription text. Only emitted when you create a transcription with the Stream parameter set to true.

transcription_text_segment_event: object { id, end, speaker, 3 more }

Emitted when a diarized transcription returns a completed segment with speaker information. Only emitted when you create a transcription with stream set to true and response_format set to diarized_json.

transcription_verbose: object { duration, language, text, 3 more }

Represents a verbose json transcription response returned by model, based on the provided input.

transcription_word: object { end, start, word }

AudioTranslations

Turn audio into text or text into audio.

Create translation
$ openai audio:translations create
POST/audio/translations
ModelsExpand Collapse
translation: object { text }
translation_verbose: object { duration, language, text, segments }

AudioVoice Consents

Turn audio into text or text into audio.

AudioVoices

Turn audio into text or text into audio.