Errors & rate limits

ZekronAI uses conventional HTTP status codes and a consistent JSON error shape so failures are easy to handle programmatically.

Error shape

json
{
  "error": {
    "type": "insufficient_balance",
    "message": "Your balance is too low to start this task.",
    "code": 402
  }
}

Status codes

HTTPTypeMeaning
400invalid_requestThe request body was malformed or a required input field was missing.
401authentication_errorThe API key is missing, malformed, or has been revoked.
402insufficient_balanceYour account balance cannot cover the estimated task cost. Top up to continue.
403permission_deniedThe key is not allowed to use this model category.
404not_foundThe task ID or model does not exist.
422unsupported_parameterAn input parameter is not supported by the chosen model.
429rate_limitedToo many requests. Slow down and retry after the indicated delay.
500server_errorAn unexpected error occurred. Failed tasks are never charged.

Rate limits

  • Limits are applied per account and returned in the X-RateLimit-Remaining response header.
  • When you exceed a limit you receive a 429 with a Retry-After header — back off and retry.
  • Need higher throughput? Request a limit increase from your dashboard or support.