Skip to main content
Menu
Build / Audio transcription
Build

Audio transcription

Transcribe an audio file with a model of kind transcription.

3 minute readUpdated 13 November 2026curl · Python · TypeScript

Transcribe a file#

POST /v1/audio/transcriptions takes a multipart/form-data body with the audio file and the model.

No model of kind transcription is offered yet
The model catalog has no model of this kind today, so this endpoint answers 404 model_not_found for every model id. The samples below show the request for when one is offered.

Set PANWARD_TRANSCRIPTION_MODEL to the id of a model of kind transcription from the model catalog. An id that is not a canonical id answers 404 model_not_found.

Transcribe a file
curl https://api.panward.ai/v1/audio/transcriptions \
  -H "Authorization: Bearer $PANWARD_API_KEY" \
  -F file=@ward-round.mp3 \
  -F model=$PANWARD_TRANSCRIPTION_MODEL \
  -F language=en
Subtitles instead of JSON
curl https://api.panward.ai/v1/audio/transcriptions \
  -H "Authorization: Bearer $PANWARD_API_KEY" \
  -F file=@ward-round.mp3 \
  -F model=$PANWARD_TRANSCRIPTION_MODEL \
  -F response_format=srt -o ward-round.srt

Formats, size and options#

The file is flac, mp3, mp4, m4a, ogg, wav or webm, at most 25 MB. A larger body is refused with 413 request_too_large: split long recordings into parts and transcribe each.

FieldRequiredValuesLimitsNotes
fileYesstringThe audio file (flac, mp3, mp4, m4a, ogg, wav or webm), at most 25 MB.
modelYesstringCanonical id of a model of kind `transcription`.
languageNostringLanguage of the audio as an ISO 639-1 code. Improves accuracy and speed.
promptNostringText to guide style or spelling.
response_formatNojson, text, verbose_json, srt, vtt
temperatureNonumbermin 0; max 1

With response_format text, srt or vtt the answer is plain text; otherwise it is JSON.

The receipt of an upload#

The receipt's request.received hash covers the exact multipart body bytes your client sent, boundary included. To run step 4 of verification you need those bytes: build the multipart body yourself, save it to a file and send that file, because a client that builds the body for you does not keep it. Without them the verdict is verified_without_content.

What is stored and billed#

The audio is processed in memory and is not stored. Transcription is billed per audio minute.

The response carries the same headers as a chat completion, among them panward-receipt-id, panward-tier and panward-region, and the request has a receipt like any other (Receipts and verification). panward-hold-until-verified: true is accepted: the response waits until the verification level is known and the answer is 503 verification_unavailable instead of an unverified one.

Was this page helpful?Suggest an edit