Errors
The error format, every error code, and how to handle them.
The API uses conventional HTTP status codes, and every error response has the same JSON shape:
{
"error": {
"code": "insufficient_credits",
"message": "Your organization's credit balance is insufficient for this request. Add credits to continue.",
"request_id": "9b2f4c1e6a8d4e0fb3c7a5d2e1f09a64"
}
}request_id matches the response's X-Request-Id header; include it when you contact support.
Branch on error.code, not on the message: messages may change, codes don't. The SDKs raise a typed error per status (for example InsufficientCreditsError for 402) carrying the same code; see SDK errors.
On the live transcription WebSocket, errors arrive as {"type": "error", "code": "…", "message": "…"} messages instead; see Realtime errors. A bad key or token never gets that far: the handshake is refused with HTTP 403.
Every endpoint
| Status | Code | Meaning | What to do |
|---|---|---|---|
401 | unauthorized | The API key is missing, malformed or revoked. | Check the Authorization: Bearer wv_sk_… header. Create a new key if yours was revoked. |
402 | insufficient_credits | Your organization's available balance (credits minus holds) can't cover the request. | Add credits in the console. Nothing was charged. |
402 | budget_exceeded | The project's monthly budget cap would be passed. | Raise the cap in project settings, or wait for the next month. |
403 | read_only_key | A read-only key called an endpoint that creates or spends. | Use a key with all permission. |
403 | account_suspended | Spending is suspended on this account, for example after a payment dispute. | Contact support. |
404 | not_found | The id (voice, transcription, job, batch, batch item) doesn't exist or belongs to another project. | Check the id and the key's project. |
409 | idempotency_in_progress | A request with the same Idempotency-Key is still running. | Wait and retry with the same key. |
422 | idempotency_mismatch | The Idempotency-Key was already used with a different body or endpoint. | Use a new key for a new request. |
422 | validation_error | The request body or query failed validation. The message names the field. | Fix the field, e.g. text length, speed range, expires_in range, a missing file. |
429 | rate_limited | Too many requests per minute or per day for your account. | Wait for Retry-After seconds. Limits can be raised on request. |
429 | concurrency_limit | Too many things running at once: file transcriptions, live sessions or active batch jobs. | Wait for one to finish, or Retry-After seconds. |
Speech to text
| Status | Code | Meaning |
|---|---|---|
400 | unknown_model | model isn't a speech-to-text model. |
400 | unsupported_language | language isn't supported by the model, e.g. lg with v2. |
400 | too_many_boost_terms | More than 200 key terms (100 on a live session). |
400 | boost_term_too_long | A key term is longer than 100 characters. |
400 | empty_file | An uploaded file is empty. |
400 | unsupported_audio | A file couldn't be decoded as audio. |
400 | audio_too_short / audio_too_long | A file is shorter than 0.1 s or longer than 30 minutes. |
413 | file_too_large | A file is larger than 128 MB. |
502 | transcription_unavailable | The model service couldn't return a result. Nothing was charged. |
504 | transcription_timeout | Transcription took too long. Nothing was charged. |
For batch jobs, a file-level error names the file in its message, and nothing is queued.
Batch transcription jobs
| Status | Code | Meaning |
|---|---|---|
400 | no_files / too_many_files | A job needs 1 to 50 files in the files field. |
400 | invalid_webhook_url | webhook_url isn't a public https:// URL. |
413 | job_too_large | The job's files add up to more than 1 GB. |
409 | job_finished | Cancel was called on a job that has already finished. |
A failed item inside a job carries its own error (for example transcription_failed, transcription_timeout or insufficient_credits) and is never charged.
Live transcription
| Code | Meaning |
|---|---|
unsupported_model / unsupported_language / unsupported_latency | An option on the socket URL isn't valid (close code 4400). |
token_mismatch | A stream token was used with a different model, language or latency (4400). |
concurrency_limit | The account already has its maximum of live sessions open (close code 4429). |
account_suspended | Spending is suspended on this account (4403). |
insufficient_credits | No credits at the start (4402), or the next minute couldn't be reserved mid-session; the session then ends gracefully with its transcript so far. |
wall_clock_limit / audio_idle_timeout | The session was open for 20 minutes, or received no audio for 30 seconds. |
audio_limit / too_long | The session reached 15 minutes of audio, or sent an odd number of bytes. |
busy | All live capacity is in use. Retry in a few seconds. |
model_unavailable / model_stalled / finish_timeout | The connection to the model failed and couldn't be recovered. |
See the realtime reference for close codes.
Text to speech
| Status | Code | Meaning |
|---|---|---|
404 | not_found | Unknown voice_id, batch id or item ref, or the item's audio isn't ready yet. |
422 | validation_error | Empty or too-long text, unknown model, speed out of range, bad format, or an invalid batch (empty, more than 100 items, duplicate refs). |
Handling errors
- Retry
5xxresponses (andbusyon live sessions) with exponential backoff. They're transient. Send anIdempotency-Keyon POSTs so a retry is never charged twice. - Honour
Retry-Afteron429before trying again. - Don't retry
4xxresponses unchanged: they'll fail the same way.402errors resolve once credits are added or the budget cap is raised. - Failed requests are never charged. Credit checks run before any work starts.
- Log the ids (
X-Request-Id,X-Transcription-Id,X-Generation-Id, job and batch ids) and include them when you contact support.