# Transcription API overview

Source: [Transcription API overview](<https://docs.gptunnel.ru/en/transcription/about/>)

<a id="_top"></a>
> **Note: Authentication**
>
> You need an API key to send requests. See [Quick start](<https://docs.gptunnel.ru/en/>)

The Transcription API transcribes speech from audio or video. Use a `deepgram-whisper-*` model for asynchronous jobs. For synchronous uploads, see [OpenAI-compatible mode](<https://docs.gptunnel.ru/en/transcription/openai-compat/>) for supported models and response formats.

Follow the [audio-to-text quickstart](<https://docs.gptunnel.ru/en/transcription/quickstart/>) to submit a sample recording and retrieve the result by task ID.

<a id="how-it-works"></a>
## How it works

Both modes use `POST /v1/audio/transcriptions`. The request’s `Content-Type` selects the mode.

<a id="asynchronous-reference-main"></a>
### Asynchronous, reference (main)

Send `Content-Type: application/json` and provide a direct public URL in `audio_url`. [Create a transcription](<https://docs.gptunnel.ru/en/transcription/create/>) returns the task’s `id` immediately. [Retrieve the result](<https://docs.gptunnel.ru/en/transcription/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.

<a id="synchronous-uploading-file-openai-compatible"></a>
### 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](<https://docs.gptunnel.ru/en/transcription/openai-compat/>).

This mode uses `whisper-1`.

<a id="available-models"></a>
## 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 |

<a id="supported-formats"></a>
## 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`.

<a id="limitations"></a>
## Limitations

- **File URL** (asynchronous mode): `audio_url` must 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`.

<a id="file-hosting-requirements"></a>
## 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`, or `mka` files.
- 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.
