Create transcription
Transcribes audio into the input language.Parameters
The audio file object (not file name) to transcribe, in one of these formats:
flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.ID of the model to use. Available models:
whisper-1- Powered by OpenAI’s open source Whisper V2 modelgpt-4o-transcribe- GPT-4 optimized transcriptiongpt-4o-mini-transcribe- GPT-4 mini transcriptiongpt-4o-mini-transcribe-2025-12-15- Latest GPT-4 mini transcriptiongpt-4o-transcribe-diarize- GPT-4 transcription with speaker diarization
The language of the input audio. Supplying the input language in ISO-639-1 format (e.g.
en) will improve accuracy and latency.An optional text to guide the model’s style or continue a previous audio segment. The prompt should match the audio language. Not supported when using
gpt-4o-transcribe-diarize.The format of the output. Options:
json, text, srt, verbose_json, vtt, or diarized_json.- For
gpt-4o-transcribeandgpt-4o-mini-transcribe, onlyjsonis supported - For
gpt-4o-transcribe-diarize, supported formats arejson,text, anddiarized_json(required for speaker annotations)
The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit.
The timestamp granularities to populate for this transcription.
response_format must be set to verbose_json to use timestamp granularities. Options: word or segment.Note: There is no additional latency for segment timestamps, but generating word timestamps incurs additional latency. Not available for gpt-4o-transcribe-diarize.If set to true, the model response data will be streamed to the client as it is generated using server-sent events. Not supported for the
whisper-1 model.Controls how the audio is cut into chunks. When set to
"auto", the server first normalizes loudness and then uses voice activity detection (VAD) to choose boundaries. Required when using gpt-4o-transcribe-diarize for inputs longer than 30 seconds.Additional information to include in the transcription response.
logprobs will return the log probabilities of the tokens in the response. Only works with response_format set to json and only with the models gpt-4o-transcribe, gpt-4o-mini-transcribe, and gpt-4o-mini-transcribe-2025-12-15. Not supported when using gpt-4o-transcribe-diarize.Optional list of speaker names that correspond to the audio samples provided in
known_speaker_references[]. Each entry should be a short identifier (e.g. customer or agent). Up to 4 speakers are supported.Optional list of audio samples (as data URLs) that contain known speaker references matching
known_speaker_names[]. Each sample must be between 2 and 10 seconds, and can use any of the same input audio formats supported by file.Response
The transcribed text.
The log probabilities of the tokens in the transcription. Only returned with certain models when
logprobs is added to the include array.Token usage statistics for the request.
Examples
Basic transcription
Transcribe with language hint
Get SRT subtitles
Transcribe with timestamps
Speaker diarization
Streaming transcription
Transcribe with prompt for context
Get log probabilities
Async usage
Supported audio formats
The transcription endpoint supports the following audio formats:flac- Free Lossless Audio Codecmp3- MPEG audio formatmp4- MPEG-4 Part 14mpeg- MPEG audiompga- MPEG audiom4a- MPEG-4 audioogg- Ogg Vorbiswav- Waveform audiowebm- WebM audio
File uploads
Files are uploaded using multipart/form-data. The file object should be opened in binary mode:For more information on prompting and best practices, see the Speech to text guide.