Skip to content

Errors

Every error has the same shape and a plain-English message:

{
  "error": {
    "type": "billing_error",
    "code": "insufficient_credits",
    "message": "Your balance is too low for this request."
  }
}

Codes

HTTPCodeWhat to do
401invalid_api_keyCheck the key. It may be revoked.
402insufficient_creditsAdd credits or turn on auto top-up.
404not_foundThe model or task ID doesn't exist in your organisation.
422invalid_requestA field is missing or wrong. The message names it.
429rate_limitedWait for the seconds in Retry-After, then retry.
500internal_errorOur fault. Retry with the same Idempotency-Key. Not charged.
502provider_errorThe provider failed and no fallback worked. Not charged.

Failed tasks

A task can also fail after it was accepted. It then has status: "failed", an error object as above, and charged_micro: 0.

Retrying safely

Send an Idempotency-Key header with every POST. If you retry with the same key within 24 hours, you get the original result and are charged once.

Questions? or write to support@tovano.ai Machine-readable: openapi.json · llms.txt