Browse docs ▾
API reference

Speech to text

Turn recordings into text - calls, voice notes, interviews. The request is the same as OpenAI's, so the OpenAI SDKs' audio.transcriptions.create and other Whisper clients work with a changed base URL. To ask questions about a recording instead of transcribing it, send it to an audio-capable chat model.

POST/v1/audio/transcriptions

Request

Send multipart/form-data with these fields:

FieldTypeDescription
file*fileThe audio, up to 7 MB and 5 minutes: mp3, m4a, wav, webm, ogg, opus, flac, aac, amr or mp4.
model*stringA speech-to-text model id from the table below, e.g. qwen/qwen-audio-3.1-asr-flash.
languagestringThe spoken language as an ISO-639-1 code, e.g. en. Omit it to detect the language.
response_formatstringjson (default), text (the transcript as plain text) or verbose_json (adds the duration).

Example

bash
curl https://boldrouter.com/v1/audio/transcriptions \
  -H "Authorization: Bearer $BOLD_API_KEY" \
  -F model=qwen/qwen-audio-3.1-asr-flash \
  -F [email protected]
json
{
  "text": "Hi, I'm calling about my order from last week...",
  "usage": { "type": "tokens", "input_tokens": 410, "output_tokens": 38, "total_tokens": 448 }
}

Models & pricing

Billed per token: the audio in and the transcript out. BYOK keys work here too.

Model idIn / out per 1M tokens
qwen/qwen-audio-3.1-asr-flash
Alibaba's speech recognition for recordings up to 5 minutes - Mandarin, English, Chinese dialects and 20+ more languages, with automatic language detection.
$0.15 / $0.47