Reference
Errors
One error envelope everywhere: branch on code, retry only when retryable is true.
The envelope#
Every error response, on every endpoint, has this body:
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed.",
"request_id": "8c5a2692d7a4448a91140bfc218439af",
"retryable": false,
"details": [
{"field": "body.budget_usd", "message": "Field required"}
]
}
}
| Field | Meaning |
code | Stable machine-readable code from the table below. Branch on this, not on message. |
message | One sentence for a person, often with the remedy. |
request_id | Also sent as the X-Request-ID header on every response. Quote it when reporting a problem. |
retryable | True when the same request can succeed later unchanged. |
details | For VALIDATION_ERROR, one entry per invalid field, with a dotted path such as body.job_spec.timeout_seconds. Empty otherwise. |
The CLI prints the envelope on stderr under --json. An MCP tool error starts with CODE: message and ends with the JSON envelope. In /openapi.json, each error response lists the codes it can carry under x-error-codes.
When to retry#
- Retry only when
retryable is true. Back off; for RATE_LIMITED, wait the seconds in the Retry-After header.
- Retry a request that starts compute with the same
Idempotency-Key, so a retry after a timeout never launches twice. See Idempotency.
- For a non-retryable code, change the request: the message says what to change.
Every code#
400 Bad Request#
| Code | Retryable | Meaning |
IDEMPOTENCY_KEY_REQUIRED | No | The Idempotency-Key header is missing or empty on a call that needs one. Nothing is stored. |
CONFIRMATION_REQUIRED | No | A benchmark start without confirm: true. Nothing launches. |
401 and 403#
| Code | Status | Retryable | Meaning |
UNAUTHENTICATED | 401 | No | No credentials, or the API key is unknown or revoked, or the session ended. |
CSRF_ORIGIN_MISMATCH | 403 | No | The request's Origin header does not match the server. Requests without an Origin header, such as curl, are not affected. |
DEMO_ACCOUNT_LIMITED | 403 | No | A demo account tried something it cannot do: run its own image, or hold more than 5 API keys. |
404 Not Found#
| Code | Meaning |
NOT_FOUND | No such path or resource. |
ROUTE_NOT_FOUND | No route with this id belongs to you. |
JOB_NOT_FOUND | No job with this id belongs to you. |
RUN_NOT_FOUND | No run with this id belongs to you. |
SAMPLE_NOT_FOUND | No sample has this id. GET /v1/samples lists them. |
GPU_NOT_FOUND | Unknown catalog GPU type. |
OUTPUT_NOT_FOUND | No output file with this path in the run's volume. |
VERIFICATION_NOT_FOUND | No verification report: verification is pending, or the spec has no verifier. |
PROVIDER_CONNECTION_NOT_FOUND | No provider connection with this id belongs to you. |
API_KEY_NOT_FOUND | No API key with this id belongs to you. |
QUOTE_NOT_FOUND | No quote with this id belongs to you. |
WEBHOOK_NOT_FOUND | No webhook endpoint with this id belongs to you. |
WEBHOOK_DELIVERY_NOT_FOUND | No delivery with this id on the endpoint. |
None of the 404 codes is retryable.
405 Method Not Allowed#
| Code | Meaning |
METHOD_NOT_ALLOWED | The path exists but not with this method. |
409 Conflict#
| Code | Meaning and remedy |
ROUTE_EXPIRED | The route's rate assumption expired, 30 days after its rate was checked. Request a new route. |
ROUTE_NOT_SELECTED | The route selected no GPU, so there is nothing to launch. |
LAUNCH_NOT_SUPPORTED | The body names a provider other than modal. Only Modal candidates launch. |
PROVIDER_CONNECTION_REQUIRED | No Modal connection in status connected. Connect Modal, then retry. |
PROVIDER_CONNECTION_EXISTS | That provider is already connected. Replace its credentials instead. |
PROVIDER_CONNECTION_IN_USE | A run is still active on the connection. Cancel it and wait for it to finish. |
BENCHMARK_OVER_CAP | The benchmark's hard cap is above max_cost_usd. Raise the cap or test fewer GPUs, runs or seconds. |
JOB_OVER_BUDGET | The benchmark cap is above half of budget_usd, or the full run cannot fit what is left. Raise the budget or shortlist one GPU. |
JOB_NOT_FINISHED | The job's event was asked for before the job is done or failed. Poll GET /v1/jobs/{id}. |
RUN_LIMIT_REACHED | You already have the maximum number of active runs, or fewer than 2 free slots to benchmark. Wait or cancel a run. |
RUN_NOT_CANCELLABLE | Only a launching or running run can be cancelled. |
RUN_OUTPUTS_UNAVAILABLE | The run has no provider reference, or its output volume no longer exists. |
WEBHOOK_LIMIT_REACHED | You already have 5 webhook endpoints. Delete one first. |
WEBHOOK_DELIVERY_NOT_FAILED | Only a failed delivery can be retried. |
None of the 409 codes is retryable unchanged; each needs the remedy first.
422 Unprocessable#
| Code | Meaning |
VALIDATION_ERROR | The request does not match the schema or a server rule, such as a timeout above the server limit or a webhook URL that is not public https. details lists each field. |
NO_COMPATIBLE_GPU | No catalog GPU has enough VRAM, or none that fits has a listed rate. |
GPU_INCOMPATIBLE | A named GPU does not fit the job, is not a candidate of the route, or has no listed rate to cap its runs. |
PROVIDER_CREDENTIALS_INVALID | The provider rejected the credentials. Nothing is stored. |
429 Too Many Requests#
| Code | Retryable | Meaning |
RATE_LIMITED | Yes | Too many mutating requests in the last minute. Retry-After gives the whole seconds to wait. Nothing was changed. |
500, 502 and 503#
| Code | Status | Retryable | Meaning |
INTERNAL_ERROR | 500 | No | An unexpected failure. Report the request_id. |
AUTH_PROVIDER_REJECTED | 502 | No | The authentication provider refused the request. |
ASSIST_FAILED | 502 | Depends | The job description assistant failed; retryable says whether to try again. |
PLATFORM_RUN_LIMIT_REACHED | 503 | Yes | The whole platform is at its active run limit. Nothing is stored. |
PROVIDER_UNAVAILABLE | 503 | Yes | The provider could not be reached. |
AUTH_PROVIDER_UNAVAILABLE | 503 | Yes | The authentication provider is unavailable. |
NOT_READY | 503 | Yes | From GET /ready: the database is not writable or the run poller is behind. |
AUTH_NOT_CONFIGURED | 503 | No | This server has no sign-in configured. |
ASSIST_NOT_CONFIGURED | 503 | No | This server has no job description assistant configured. |
Other statuses#
| Code | Meaning |
HTTP_ERROR | Any other HTTP error, with the standard reason phrase as the message. |
Codes agents usually branch on#
| Code | Next step |
UNAUTHENTICATED | Ask for a new key from the Developer access page. |
PROVIDER_CONNECTION_REQUIRED | Connect Modal (connect_provider), then retry. |
JOB_OVER_BUDGET | Ask the user for a higher budget or a one-GPU shortlist. |
BENCHMARK_OVER_CAP | Show the new quote and ask before raising the cap. |
ROUTE_EXPIRED | Route the job again. |
RUN_LIMIT_REACHED | Wait for a run to finish, or cancel one. |
JOB_NOT_FINISHED | Keep waiting. |
RATE_LIMITED | Sleep Retry-After seconds. |