Errors

Read the error code, identify what happened and choose the next action.

Error format#

Errors use the OpenAI format, so SDKs raise their usual exceptions. Errors from the model provider are returned with their own status and body.

{
  "error": {
    "message": "<string: what happened>",
    "type": "<string: e.g. invalid_request_error>",
    "param": null,
    "code": "<string: Runlode or provider code>"
  }
}

Error format.

Balance and funding#

CodeStatusWhat to do
BALANCE_REQUIRED402Redeem more credits or lower max_tokens so the hold fits the balance.
REDEMPTION_UNAVAILABLE503Check Models and redemption availability. Your existing credits are retained.
BUDGET_LIMIT503The service cannot reserve provider funding. Retry only when capacity is available.
API_SETUP503AI access is not configured for this deployment. Opening the site alone does not confirm model availability.

Conflicts and recorded requests#

CodeStatusWhat to do
REQUEST_BUSY429Too many requests are running on this wallet at once. Retry when one finishes.
IDEMPOTENCY_CONFLICT409Use the original input for a retry; use a new ID only for a new logical request.
REQUEST_RECORDED409Inspect Usage. The existing request has no replayable response and is not re-dispatched.

Authentication and model#

CodeStatusWhat to do
INVALID_API_KEY401Use an active Runlode key in the Authorization Bearer header.
model_not_found404Use a model ID from GET /v1/models.
MODEL_UNAVAILABLE503Select an available model or wait for that route to return.
INVALID_JSON / BODY_TOO_LARGE400 / 413Send a JSON object within the body size limit (API_MAX_BODY_MB, 20 MB by default).
RATE_LIMIT / DAILY_API_LIMIT429Wait for the applicable allowance to reset.

Provider errors#

When the model provider refuses a request (for example a model that does not support tools or images, or an invalid parameter), its error is returned unchanged with the same HTTP status, and your balance is not charged.

CodeStatusMeaning and next step
upstream_auth502The provider refused Runlode’s own credentials. Nothing is charged; the operator needs to fix the provider key.
upstream_funds503The provider account needs funding. Nothing is charged.
upstream_unconfirmed502The provider did not answer or sent an unreadable result. Your balance is not charged. Inspect Usage before retrying.

See Retries and request status for safe retry behavior and Troubleshooting for checks inside Terminal.

Search documentation

Start typing to search the documentation.