Transcription API overview
The Transcription API transcribes speech from audio or video. Use a deepgram-whisper-* model for asynchronous jobs. For synchronous uploads, see OpenAI-compatible mode for supported models and response formats.
Follow the audio-to-text quickstart to submit a sample recording and retrieve the result by task ID.
How it works
Section titled “How it works”Both modes use POST /v1/audio/transcriptions. The request’s Content-Type selects the mode.
Asynchronous, reference (main)
Section titled “Asynchronous, reference (main)”Send Content-Type: application/json and provide a direct public URL in audio_url. Create a transcription returns the task’s id immediately. Retrieve the result by ID or receive it via a webhook at callback_url.
Use a deepgram-whisper-* model. This mode supports long recordings and webhook delivery.
Synchronous, uploading file (openAI-compatible)
Section titled “Synchronous, uploading file (openAI-compatible)”Send Content-Type: multipart/form-data and upload the file. The same request returns the transcription. To use the official OpenAI SDK, set base_url as shown in OpenAI-compatible mode.
This mode uses whisper-1.
Available models
Section titled “Available models”| Model | Description |
|---|---|
deepgram-whisper-tiny |
Tiny model for asynchronous transcription |
deepgram-whisper-medium |
Medium model for asynchronous transcription |
deepgram-whisper-large |
Large model for asynchronous transcription |
whisper-1 |
OpenAI Whisper, synchronous mode only |
Supported formats
Section titled “Supported formats”Asynchronous mode: mp3, mp2, wav, flac, aac, ogg, oga, opus, m4a, mp4, mov, 3gp, alac, webm, mka, wma, wmv, amr, aiff, ac3, avi, flv, ts, mpg, au.
Synchronous mode: flac, m4a, mp3, mp4, mpeg, mpga, oga, ogg, wav, webm.
Both modes identify the format from the file contents. Unsupported formats are rejected without a charge. Asynchronous mode returns 415 / code 11, and synchronous mode returns 400 / unsupported_format.
Limitations
Section titled “Limitations”- File URL (asynchronous mode):
audio_urlmust be a direct public HTTP or HTTPS link to the audio or video. - File size (synchronous mode): up to 25 MB. Asynchronous mode has no size limit.
- Maximum duration: 2 hours. Longer files are rejected with
Audio is too long. - Minimum duration: 1 second. Shorter files are rejected with
Audio is too short.
File hosting requirements
Section titled “File hosting requirements”The file host must:
- Serve the file at a direct public URL without cookies, authentication, user-agent filtering, or bot protection.
- Support HTTP Range requests. They are required to determine the duration of
ogg,opus,webm, ormkafiles. - Return the correct
Content-Length. - Be accessible from outside your network. Intranet hosts, localhost, and private IP addresses are unreachable.
Use public object storage or a CDN that meets these requirements.
If GPTunneL cannot reach the file, the request fails immediately with 400 / code 12 and makes no charge. If the transcription provider cannot reach it, the task ends with error_title: "SOURCE_UNREACHABLE" and the funds are automatically refunded.