Endpoint
Request
Headers
string
required
Must be
multipart/form-datastring
required
The AI provider to use (e.g.,
openai)string
required
Your API key for the specified provider
Form Parameters
file
required
The audio file to transcribe. Supported formats: mp3, mp4, mpeg, mpga, m4a, wav, webm. File size limit: 25 MB.
string
required
The model to use for transcription (e.g.,
whisper-1)string
Language of the audio in ISO-639-1 format (e.g.,
en, fr, es). Providing the language improves accuracy and latency.string
Optional text to guide the model’s style or continue a previous audio segment. Must match the audio language.
string
default:"json"
Format of the response:
json, text, srt, verbose_json, or vttnumber
default:0
Sampling temperature between 0 and 1. Higher values produce more random output.
array
Timestamp granularities:
word and/or segment (only with verbose_json format)Response
JSON Format (default)
string
The transcribed text
Verbose JSON Format
string
Type of task (
transcribe)string
Detected language
number
Duration of audio in seconds
string
The transcribed text
array
array
Array of words with timestamps (when
timestamp_granularities includes word)Examples
Basic Transcription
Response
Python SDK
JavaScript SDK
With Language Specification
Verbose JSON with Timestamps
Word-Level Timestamps
SRT Subtitle Format
VTT Subtitle Format
With Prompt for Context
Process Multiple Files
Real-time Transcription
Supported Audio Formats
- mp3: MPEG audio
- mp4: MPEG-4 audio
- mpeg: MPEG audio
- mpga: MPEG audio
- m4a: MPEG-4 audio
- wav: Waveform audio
- webm: WebM audio
Supported Languages
Whisper supports 90+ languages including:- English (en), Spanish (es), French (fr), German (de)
- Chinese (zh), Japanese (ja), Korean (ko)
- Arabic (ar), Hindi (hi), Portuguese (pt)
- Russian (ru), Italian (it), Dutch (nl)
Best Practices
- Specify Language: Improves accuracy and reduces latency
- Audio Quality: Use clear audio with minimal background noise
- File Size: Keep files under 25 MB (split longer audio if needed)
- Use Prompts: Provide context for technical terms or proper nouns
- Format Selection: Use
verbose_jsonfor timestamps,srt/vttfor subtitles
Use Cases
- Meeting Transcriptions: Convert meeting recordings to text
- Subtitles: Generate subtitles for videos
- Voice Notes: Transcribe voice memos and notes
- Accessibility: Create text versions of audio content
- Content Analysis: Process podcasts and interviews
- Call Center: Transcribe customer service calls