Skip to content

Errors

Every error code and what to do about it.

Every error has the same shape: a stable code to branch on, a message for a human, and the request_id to quote to support. Some also carry a details object. Branch on code, never on the message, which may be reworded.

json
{
  "error": {
    "code": "insufficient_credits",
    "message": "This organization has no credits left.",
    "request_id": "req_0Nq8c1xWv3kR"
  }
}

Charged or not

No error in this table is charged. The only call that costs credits is one that returns a 200 with a transcript.

Which errors to retry

  • Retry with backoff: 429, 503 and 504. Honour Retry-After when present. With an Idempotency-Key this is always safe.
  • Retry once, then report: 502 and 500.
  • Do not retry: other 4xx. They need a change on your side (a key, a balance, a field).
  • 409 idempotency_key_used is not a failure. The first attempt succeeded and was billed.

All error codes

401missing_api_keyNo Authorization header and no x-api-key header.Send the key as a bearer token.
401invalid_api_keyThe key is not recognised, or does not start with hohe_.Check the key, including the hohe_ prefix.
401api_key_revokedThe key existed and was disabled.Use a different key. Revocation takes effect on the next request, never later.
401api_key_expiredThe key passed its expiry.Use a key that has not expired.
402no_credit_accountThe organization has no credit account.Add credits. Nothing ran and nothing was charged.
402insufficient_creditsBalance plus overdraft is zero or less.Add credits. Nothing ran and nothing was charged. The details object carries balance and overdraftLimit.
400invalid_requestA field or header failed validation, or the multipart body could not be parsed. The message names the field.Fix the field named in the message. The details array lists each failing path.
413file_too_largeThe upload is over the size limit.Split the audio. The limit is stated in the message (25 MiB by default).
415unsupported_content_typeThe body was not multipart/form-data.Send the audio as a multipart field named file, not as a raw body or base64 JSON.
415unsupported_audioThe model host could not read the container or codec.Re-encode the audio to a common format and retry. Nothing was charged.
422invalid_audioThe file was readable but cannot be transcribed. The message says why.Check it is the file you meant to send. Nothing was charged.
409idempotency_key_usedThat Idempotency-Key was already billed.Read the details object: it carries the original usage event, units and credits charged. Use a new key to run the audio again.
409request_in_progressA request with the same Idempotency-Key is running right now.Wait, then retry with the same key.
429rate_limitedThe key's rate limit was exceeded.Wait the number of seconds in Retry-After.
413request_too_largeOne request exceeded the per-request cap for this operation.Read the details object for the limit and what was counted, then split the input.
429organization_busyYour organization already has as many requests in flight as it is allowed.Wait for one to finish, or ask support to raise the limit.
429daily_limit_reachedYour organization's rolling 24 hour credit cap is spent.Raise or clear the cap in the dashboard, or wait for the window to roll.
503server_busyToo many uploads in flight on this server.Retry after the Retry-After seconds. Nothing was charged.
503inference_unavailableThe model host could not be reached or returned a server error.Retry after the Retry-After seconds. Nothing was charged.
504inference_timeoutThe model host took too long.Retry, or send a shorter clip. Nothing was charged.
502bad_upstream_responseThe model host returned something unusable.Retry. Nothing was charged.
503pricing_unavailableNo price is configured for the operation.Retry later, or contact support. Nothing was charged.
503metering_unavailableThe call could not be billed, so the result was withheld.Retry with the same Idempotency-Key. Nothing was charged.
404not_foundNo such endpoint.Check the path.
500internal_errorAn unexpected failure on our side. The message is always generic.Quote the request_id to support.
All guides