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

StatusCodeMeaningWhat to do
401unauthorizedThe API key is missing, malformed or revoked.Check the Authorization: Bearer wv_sk_… header. Create a new key if yours was revoked.
402insufficient_creditsYour organization's available balance (credits minus holds) can't cover the request.Add credits in the console. Nothing was charged.
402budget_exceededThe project's monthly budget cap would be passed.Raise the cap in project settings, or wait for the next month.
403read_only_keyA read-only key called an endpoint that creates or spends.Use a key with all permission.
403account_suspendedSpending is suspended on this account, for example after a payment dispute.Contact support.
404not_foundThe id (voice, transcription, job, batch, batch item) doesn't exist or belongs to another project.Check the id and the key's project.
409idempotency_in_progressA request with the same Idempotency-Key is still running.Wait and retry with the same key.
422idempotency_mismatchThe Idempotency-Key was already used with a different body or endpoint.Use a new key for a new request.
422validation_errorThe 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.
429rate_limitedToo many requests per minute or per day for your account.Wait for Retry-After seconds. Limits can be raised on request.
429concurrency_limitToo 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

StatusCodeMeaning
400unknown_modelmodel isn't a speech-to-text model.
400unsupported_languagelanguage isn't supported by the model, e.g. lg with v2.
400too_many_boost_termsMore than 200 key terms (100 on a live session).
400boost_term_too_longA key term is longer than 100 characters.
400empty_fileAn uploaded file is empty.
400unsupported_audioA file couldn't be decoded as audio.
400audio_too_short / audio_too_longA file is shorter than 0.1 s or longer than 30 minutes.
413file_too_largeA file is larger than 128 MB.
502transcription_unavailableThe model service couldn't return a result. Nothing was charged.
504transcription_timeoutTranscription 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

StatusCodeMeaning
400no_files / too_many_filesA job needs 1 to 50 files in the files field.
400invalid_webhook_urlwebhook_url isn't a public https:// URL.
413job_too_largeThe job's files add up to more than 1 GB.
409job_finishedCancel 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

CodeMeaning
unsupported_model / unsupported_language / unsupported_latencyAn option on the socket URL isn't valid (close code 4400).
token_mismatchA stream token was used with a different model, language or latency (4400).
concurrency_limitThe account already has its maximum of live sessions open (close code 4429).
account_suspendedSpending is suspended on this account (4403).
insufficient_creditsNo 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_timeoutThe session was open for 20 minutes, or received no audio for 30 seconds.
audio_limit / too_longThe session reached 15 minutes of audio, or sent an odd number of bytes.
busyAll live capacity is in use. Retry in a few seconds.
model_unavailable / model_stalled / finish_timeoutThe connection to the model failed and couldn't be recovered.

See the realtime reference for close codes.

Text to speech

StatusCodeMeaning
404not_foundUnknown voice_id, batch id or item ref, or the item's audio isn't ready yet.
422validation_errorEmpty 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 5xx responses (and busy on live sessions) with exponential backoff. They're transient. Send an Idempotency-Key on POSTs so a retry is never charged twice.
  • Honour Retry-After on 429 before trying again.
  • Don't retry 4xx responses unchanged: they'll fail the same way. 402 errors 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.

On this page