Skip to content
API reference

Errors

Every error has a status, a code and a message.


{ "error": { "code": "INSUFFICIENT_CREDITS", "message": "No credits left; top up in the dashboard" } }
StatusCodeMeaning
400VALIDATION_FAILEDA field is missing or wrong; the message says which.
400CONTENT_BLOCKEDThe text breaks the usage policy (scam scripts).
400INVALID_AUDIO_INPUTThe audio could not be read.
401UNAUTHORIZEDMissing or invalid API key.
402INSUFFICIENT_CREDITSThe workspace has no credits left.
402KEY_SPENDING_LIMITThis key reached its monthly spending limit.
403ACCOUNT_SUSPENDEDThe account is suspended; contact us.
413PAYLOAD_TOO_LARGEThe request body is too large.
429RATE_LIMITEDToo many requests; wait retry-after seconds.
502PROVIDER_FAILEDThe speech provider failed; try again.
503PROVIDER_UNAVAILABLEThe model is not available right now.
504PROVIDER_TIMEOUTThe speech provider took too long.

Retry 429 and 5xx errors with a short wait; the SDKs do this twice by default.