Errors

An error has the HTTP status, a message to read, and a type to act on:

Response
{
  "error": {
    "code": 403,
    "message": "This API key has reached its spending limit of $25.00 this month (UTC).",
    "metadata": {
      "error_type": "spend_limit",
      "limit_source": "key_month"
    }
  }
}
FieldTypeDescription
errorobject
error.codeintegerThe HTTP status.
error.messagestringWhat went wrong, to read.
error.metadataobject
error.metadata.error_typestringWhat went wrong, to act on.
error.metadata.limit_sourcestringWith spend_limit only.

Error types

Statuserror_typeMeaning
400invalid_requestA field is missing or wrong. The message says which.
400unsupported_audio_formatNot WAV, M4A or PCM.
401missing_api_keyNo key in the Authorization header.
401invalid_api_keyThe key is wrong or revoked.
401expired_api_keyThe key is past its expiry.
402payment_requiredAdd a payment method in the dashboard.
403forbiddenThe key isn't allowed to use this model.
403ip_not_allowedThe request came from outside the key's IP allowlist.
403spend_limitThe key reached its spending limit. metadata.limit_source says which: key_lifetime, key_week or key_month.
404not_foundNo such endpoint or model.
405method_not_allowedThe wrong method for the endpoint.
408timeoutA stream went quiet for 20 seconds before its commit.
413payload_too_largeOver 10 minutes or 24 MB of audio.
429rate_limitedOver 120 requests a minute for the key. Wait for Retry-After.
500internal_errorSomething went wrong on our side. Try again.
502transcription_failedThe audio couldn't be transcribed this time. Try again. You aren't charged.
503unavailableThe service is briefly unavailable. Try again after Retry-After.

Retrying

Retry 429 after Retry-After, and 500, 502 and 503 with backoff. The rest need a change to the request, the key or the account: show their message. Failed and refused requests aren't charged.

View as Markdown