HTTP errors
Every error uses one shape:
Include
request_id (also in the x-request-id header) when you contact support.
unsupported_language: the model doesn’t take that language. A5S Async v1 takes English,es,fr,de,pt,hi,ja,koorzh(notauto: set the language of the audio). See Languages.insufficient_balance(402): your free hours and prepaid credits are used up (accounts pay with prepaid credits by default). Requests that run a model (creating a transcript or diarization, enrolling or identifying a clip) get it; reading, deleting and uploading still work. Add credits in the console (or turn on auto refill) to keep going.usage_limit_reached(403): an account with a fixed usage limit instead of prepaid credits has used it up. To raise the limit, talk to sales.model_access_denied: the model isn’t enabled for your account: AirCaps Diarization-v1 (enabled on request), a model left out of an account limited to specific models, or, on the streaming WebSocket, A5S Streaming v1 (early access for select organizations). Talk to sales for access.queue_full: too many jobs waiting. To raise the limit, talk to sales.model_unavailable: the model isn’t offered in the cloud. Talk to sales about deployments.- AirCaps Speaker ID-v1 reports problems with a clip in the response itself (it is synchronous):
invalid_audio(not decodable or no audio),audio_too_short(under 0.5 s; enrollments under 1 s),audio_too_long(over 2 minutes),file_too_large(over 100 MB). These requests are not counted toward your usage.
Job errors
A transcript or diarization that fails has"status": "error" and an error object. None of these count toward your usage.
Deleting a queued or processing transcript or diarization cancels it: the
DELETE response shows error.code canceled, no webhook is sent, and the ID then returns 404.
Retries
- Retry
429,500,502,503and504with exponential backoff (for example 1 s, 2 s, 4 s … up to 60 s), honouringRetry-Afterwhen present. - Send an
Idempotency-Keyheader withPOST /v1/transcripts,POST /v1/transcribeorPOST /v1/diarizationsso a retried request never creates a second job. A retry with the same key and body returns the original job (200), even after it has finished; the same key with a different body returns409 idempotency_conflict. - Live streaming: on close code 1013, a connection that can’t be opened, one that drops without a close message, or one that goes quiet (no message for 30 seconds and no
pongwithin 10 seconds of aping), open a new session with backoff (for example 1 s, 2 s, 4 s … up to 30 s). See Live streaming. - Polling: call
GET /v1/transcripts/{id}every 3–10 seconds, or use a webhook instead. - Files over 1 GB: use an upload URL. If the connection drops during the
PUT, retry thePUTto the sameupload_url(within an hour of creating it).

