Switch language

Errors

Error format, status codes, and retry guidance for Bitdeer AI APIs.

Non-2xx responses return a JSON body in this shape:

429application/jsonRate limited
{
  "error": {
    "message": "Rate limit exceeded. Please retry after a brief wait.",
    "type": "rate_limit_exceeded",
    "param": null,
    "code": "rate_limited"
  }
}

HTTP status codes

HTTPRetryableMeaning
400NoMalformed request — check error.message for details
401NoMissing or invalid API key
403NoInsufficient permissions or balance
404NoResource does not exist (e.g. unknown model)
429YesRate limit exceeded (default: 100 RPM)
500NoInternal server error
503YesService temporarily unavailable

LLM-specific error codes

ErrorStatusDescription
INVALID_API_KEY401API key not provided or invalid
MODEL_NOT_FOUND404The requested model does not exist
INVALID_REQUEST_BODY400Request body format error
RATE_LIMIT_EXCEEDED429Too many requests — retry later
TOKEN_LIMIT_EXCEEDED429Token limit exceeded — retry later
NOT_ENOUGH_BALANCE403Insufficient account balance
SERVICE_NOT_AVAILABLE503Service temporarily unavailable

Rate limit

The default rate limit for all endpoints is 100 requests per minute (RPM).

When the limit is exceeded, the API returns HTTP 429 with a RATE_LIMIT_EXCEEDED error.

Error schema

error
messagestringrequired
Human-readable description of the failure.
typestring
Machine-readable error category.
codestring | null
Short code for programmatic handling.
paramstring | null
Name of the offending request field, when applicable.

Last updated on

On this page

Errors · Bitdeer AI