Skip to main content

Endpoint

Transcribes audio into text using speech-to-text models.

Request

Headers

string
required
Must be multipart/form-data
string
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 vtt
number
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 of transcription segments with timestamps
integer
Segment ID
number
Start time in seconds
number
End time in seconds
string
Transcribed text for this segment
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)
Full language list

Best Practices

  1. Specify Language: Improves accuracy and reduces latency
  2. Audio Quality: Use clear audio with minimal background noise
  3. File Size: Keep files under 25 MB (split longer audio if needed)
  4. Use Prompts: Provide context for technical terms or proper nouns
  5. Format Selection: Use verbose_json for timestamps, srt/vtt for 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