Skip to main content
Upload an audio file as multipart form data, get a JSON transcript back.

Quickstart

Request

The body is multipart/form-data with the following fields:
file
required
Audio file. Up to 25 MB. Supported formats: wav, mp3, m4a, mp4, webm, ogg, opus, flac.
string
required
STT model ID (e.g. whisper-1, deepgram-nova-3).
string
ISO-639 language hint (e.g. "en", "es"). Skips auto-detection where supported.
string
Force a specific provider for this request. Bypasses the router — use sparingly, only when you need parity with a baseline.

Response

string
Full transcript.
number
Audio duration in seconds.
string | null
Detected (or supplied) language code.
number | null
Overall confidence between 0 and 1, when the provider exposes it.
array | null
Per-word timestamps and confidences, when the provider supports them.

Streaming

For real-time transcription, open a WebSocket to wss://gateway.llm-stats.com/v1/stt/stream and stream PCM audio frames. The batch HTTP endpoint above is the right choice for files you already have on disk.

Errors

Failures use the shared error envelope. Common ones: