API reference · Audio
Transcribe a recording
POSThttps://api.useunbound.ai/v1/audio/transcriptions
Turns a recording into text. Priced by its length, measured from the file itself. Neither the recording nor its text is kept. MP3, WAV, M4A, OGG or FLAC, at most 24 MB and three hours.
Headers
AuthorizationrequiredBearer <key>, with a key from Settings → API.Idempotency-KeyAny unique string up to 200 characters. A repeat of a call that is running or has run is refused with 409 instead of being charged twice.
Body
multipart/form-data
modelrequiredAn id from
GET /v1/modelswith"type": "stt".filerequiredThe recording: MP3, WAV, M4A, OGG or FLAC, at most 24 MB.
languageIts language as a code such as
enores. Without it, the model decides.response_formatJSON, or the text alone.
Response
The text, as JSON or as plain text.
textrequiredWhat was said.
Errors
- 400The request is malformed, or a parameter is not supported by the model.
- 401The API key is missing, revoked or expired.
- 402Not enough credit, or the key reached its spending limit. Nothing was charged.
- 403The key does not have the scope this endpoint needs.
- 404The model does not exist or is not available through the API.
- 409This Idempotency-Key was already used.
- 413The recording is larger than 24 MB.
- 429Too many requests for this key. Retry after the number of seconds in the Retry-After header.
- 502The upstream provider failed. The hold was released; you were not charged.
All errors use the envelope described in the introduction. None of them result in a charge.