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#
| Code | Status | What to do |
|---|---|---|
BALANCE_REQUIRED | 402 | Redeem more credits or lower max_tokens so the hold fits the balance. |
REDEMPTION_UNAVAILABLE | 503 | Check Models and redemption availability. Your existing credits are retained. |
BUDGET_LIMIT | 503 | The service cannot reserve provider funding. Retry only when capacity is available. |
API_SETUP | 503 | AI access is not configured for this deployment. Opening the site alone does not confirm model availability. |
Conflicts and recorded requests#
| Code | Status | What to do |
|---|---|---|
REQUEST_BUSY | 429 | Too many requests are running on this wallet at once. Retry when one finishes. |
IDEMPOTENCY_CONFLICT | 409 | Use the original input for a retry; use a new ID only for a new logical request. |
REQUEST_RECORDED | 409 | Inspect Usage. The existing request has no replayable response and is not re-dispatched. |
Authentication and model#
| Code | Status | What to do |
|---|---|---|
INVALID_API_KEY | 401 | Use an active Runlode key in the Authorization Bearer header. |
model_not_found | 404 | Use a model ID from GET /v1/models. |
MODEL_UNAVAILABLE | 503 | Select an available model or wait for that route to return. |
INVALID_JSON / BODY_TOO_LARGE | 400 / 413 | Send a JSON object within the body size limit (API_MAX_BODY_MB, 20 MB by default). |
RATE_LIMIT / DAILY_API_LIMIT | 429 | Wait 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.
| Code | Status | Meaning and next step |
|---|---|---|
upstream_auth | 502 | The provider refused Runlode’s own credentials. Nothing is charged; the operator needs to fix the provider key. |
upstream_funds | 503 | The provider account needs funding. Nothing is charged. |
upstream_unconfirmed | 502 | The 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.