Get started

Errors

Errors come back as JSON with an HTTP status code, a machine-readable type and a message that says what to fix.

View as Markdown

Error format

Every error has the same shape. Branch on type, not on the message.

Field Meaning
code The HTTP status, repeated.
message For people: it names the field or limit involved.
type What kind of error it is: one of the types below.
docs_url This page, at the section for the type.
{
  "error": {
    "code": 401,
    "message": "Missing or invalid API key",
    "type": "authentication_error",
    "docs_url": "https://www.openrobotics.dev/docs/errors#authentication_error"
  }
}

Status codes

Calls that fail are never billed.

Status type Retry?
400 invalid_request_error No
401 authentication_error No
402 insufficient_credits No
403 permission_error No
404 invalid_request_error No
404 not_found_error No
411 invalid_request_error No
413 invalid_request_error No
429 rate_limit_error Yes, after a pause
500 server_error Yes, after a pause
502 server_error Yes, after a pause
503 rate_limit_error Yes, after Retry-After
503 model_warming Yes, after Retry-After
503 model_unavailable Yes, after Retry-After

invalid_request_error

Status: 400, 404, 411, 413

The request is invalid: a field is missing or out of range (the message names it), the model isn't live yet, isn't served, or is served by another endpoint (the message names the right one), the body is missing its length (411) or is over 8 MB (413).

What to do: Fix the request, or pick a live model from GET /models. Sending it again unchanged fails the same way.

authentication_error

Status: 401

The Authorization header is missing, the key is wrong or deleted, or a sandbox key made without an account has expired (they last 24 hours).

What to do: Send Authorization: Bearer sk-orb-v1-… with a key from the API keys page, or get a free sandbox key now with POST /sandbox/keys. See Authentication.

insufficient_credits

Status: 402

The account is out of credits, or the call would take the key over its credit limit. The call isn't run.

What to do: Add credits, raise the key's limit, or use a test key while you build.

permission_error

Status: 403

The key is disabled, or it isn't allowed to do this.

What to do: Enable the key on the API keys page, or use another key.

not_found_error

Status: 404

No such route, model or job. Jobs are only visible to the key that created them.

What to do: Check the path against the API reference and the model id against GET /models.

rate_limit_error

Status: 429, 503

Too many requests at once, e.g. the key already has 8 world-model jobs queued or running, a sandbox key is over its calls per minute, or too many sandbox keys were created (429 for your IP address, 503 across everyone).

What to do: Wait for a job to finish, or honour Retry-After when it is set.

model_warming

Status: 503

A GPU is starting for this model (a cold start). The response has a Retry-After header, and the call is never billed.

What to do: Wait Retry-After seconds and send the same request again. A cold start usually takes a few minutes.

model_unavailable

Status: 503

The model can't take the call right now: it is at capacity, or no GPU workers serve it.

What to do: Retry after a short pause, or try another model for the same endpoint.

server_error

Status: 500, 502

Something went wrong on our side, or the model failed on this input (502).

What to do: Retry after a short pause; for 502, try other input. If it keeps happening, tell us the call's id.

Retrying

Retry model_warming after the Retry-After seconds, and server_error, model_unavailable or rate_limit_error after a short pause. Don't retry the other types unchanged: the same request will fail the same way. A world-model job that fails reports its own error in the job.