Skip to main content
Transcribes audio into text in the language of the audio.

Request Body

This endpoint accepts multipart/form-data.
file
required
The audio file to transcribe. Supported formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm. Maximum file size is 25MB.
string
required
The model to use for transcription (e.g., whisper-1).
string
The language of the audio in ISO-639-1 format (e.g., en, es, fr). Providing the language improves accuracy.
string
Optional text to guide the model’s style or continue a previous transcript. Should match the audio language.
string
default:"json"
The output format. Options: json, text, srt, verbose_json, vtt.
number
default:"0"
Sampling temperature between 0 and 1. Higher values make output more random.

Response

Varies based on response_format:

JSON Response (default)

string
The transcribed text.

Verbose JSON Response

string
The task performed (transcribe).
string
The detected language.
number
Duration of the audio in seconds.
string
The transcribed text.
array
Array of transcript segments with timestamps.

Examples

Basic Transcription

With Language Hint

SRT Subtitles

Verbose JSON with Timestamps

Response Examples

JSON Response

Verbose JSON Response

SRT Response

Tips

Providing the language parameter improves accuracy, especially for non-English audio or audio with accents.
The prompt parameter can help with proper nouns, technical terms, or specific formatting expectations.
Use srt or vtt for subtitles, verbose_json when you need timestamps, or plain text for simple transcripts.