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"}
    ]
  }
}
FieldMeaning
codeStable machine-readable code from the table below. Branch on this, not on message.
messageOne sentence for a person, often with the remedy.
request_idAlso sent as the X-Request-ID header on every response. Quote it when reporting a problem.
retryableTrue when the same request can succeed later unchanged.
detailsFor 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#

CodeRetryableMeaning
IDEMPOTENCY_KEY_REQUIREDNoThe Idempotency-Key header is missing or empty on a call that needs one. Nothing is stored.
CONFIRMATION_REQUIREDNoA benchmark start without confirm: true. Nothing launches.

401 and 403#

CodeStatusRetryableMeaning
UNAUTHENTICATED401NoNo credentials, or the API key is unknown or revoked, or the session ended.
CSRF_ORIGIN_MISMATCH403NoThe request's Origin header does not match the server. Requests without an Origin header, such as curl, are not affected.
DEMO_ACCOUNT_LIMITED403NoA demo account tried something it cannot do: run its own image, or hold more than 5 API keys.

404 Not Found#

CodeMeaning
NOT_FOUNDNo such path or resource.
ROUTE_NOT_FOUNDNo route with this id belongs to you.
JOB_NOT_FOUNDNo job with this id belongs to you.
RUN_NOT_FOUNDNo run with this id belongs to you.
SAMPLE_NOT_FOUNDNo sample has this id. GET /v1/samples lists them.
GPU_NOT_FOUNDUnknown catalog GPU type.
OUTPUT_NOT_FOUNDNo output file with this path in the run's volume.
VERIFICATION_NOT_FOUNDNo verification report: verification is pending, or the spec has no verifier.
PROVIDER_CONNECTION_NOT_FOUNDNo provider connection with this id belongs to you.
API_KEY_NOT_FOUNDNo API key with this id belongs to you.
QUOTE_NOT_FOUNDNo quote with this id belongs to you.
WEBHOOK_NOT_FOUNDNo webhook endpoint with this id belongs to you.
WEBHOOK_DELIVERY_NOT_FOUNDNo delivery with this id on the endpoint.

None of the 404 codes is retryable.

405 Method Not Allowed#

CodeMeaning
METHOD_NOT_ALLOWEDThe path exists but not with this method.

409 Conflict#

CodeMeaning and remedy
ROUTE_EXPIREDThe route's rate assumption expired, 30 days after its rate was checked. Request a new route.
ROUTE_NOT_SELECTEDThe route selected no GPU, so there is nothing to launch.
LAUNCH_NOT_SUPPORTEDThe body names a provider other than modal. Only Modal candidates launch.
PROVIDER_CONNECTION_REQUIREDNo Modal connection in status connected. Connect Modal, then retry.
PROVIDER_CONNECTION_EXISTSThat provider is already connected. Replace its credentials instead.
PROVIDER_CONNECTION_IN_USEA run is still active on the connection. Cancel it and wait for it to finish.
BENCHMARK_OVER_CAPThe benchmark's hard cap is above max_cost_usd. Raise the cap or test fewer GPUs, runs or seconds.
JOB_OVER_BUDGETThe 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_FINISHEDThe job's event was asked for before the job is done or failed. Poll GET /v1/jobs/{id}.
RUN_LIMIT_REACHEDYou already have the maximum number of active runs, or fewer than 2 free slots to benchmark. Wait or cancel a run.
RUN_NOT_CANCELLABLEOnly a launching or running run can be cancelled.
RUN_OUTPUTS_UNAVAILABLEThe run has no provider reference, or its output volume no longer exists.
WEBHOOK_LIMIT_REACHEDYou already have 5 webhook endpoints. Delete one first.
WEBHOOK_DELIVERY_NOT_FAILEDOnly a failed delivery can be retried.

None of the 409 codes is retryable unchanged; each needs the remedy first.

422 Unprocessable#

CodeMeaning
VALIDATION_ERRORThe 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_GPUNo catalog GPU has enough VRAM, or none that fits has a listed rate.
GPU_INCOMPATIBLEA 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_INVALIDThe provider rejected the credentials. Nothing is stored.

429 Too Many Requests#

CodeRetryableMeaning
RATE_LIMITEDYesToo many mutating requests in the last minute. Retry-After gives the whole seconds to wait. Nothing was changed.

500, 502 and 503#

CodeStatusRetryableMeaning
INTERNAL_ERROR500NoAn unexpected failure. Report the request_id.
AUTH_PROVIDER_REJECTED502NoThe authentication provider refused the request.
ASSIST_FAILED502DependsThe job description assistant failed; retryable says whether to try again.
PLATFORM_RUN_LIMIT_REACHED503YesThe whole platform is at its active run limit. Nothing is stored.
PROVIDER_UNAVAILABLE503YesThe provider could not be reached.
AUTH_PROVIDER_UNAVAILABLE503YesThe authentication provider is unavailable.
NOT_READY503YesFrom GET /ready: the database is not writable or the run poller is behind.
AUTH_NOT_CONFIGURED503NoThis server has no sign-in configured.
ASSIST_NOT_CONFIGURED503NoThis server has no job description assistant configured.

Other statuses#

CodeMeaning
HTTP_ERRORAny other HTTP error, with the standard reason phrase as the message.

Codes agents usually branch on#

CodeNext step
UNAUTHENTICATEDAsk for a new key from the Developer access page.
PROVIDER_CONNECTION_REQUIREDConnect Modal (connect_provider), then retry.
JOB_OVER_BUDGETAsk the user for a higher budget or a one-GPU shortlist.
BENCHMARK_OVER_CAPShow the new quote and ask before raising the cap.
ROUTE_EXPIREDRoute the job again.
RUN_LIMIT_REACHEDWait for a run to finish, or cancel one.
JOB_NOT_FINISHEDKeep waiting.
RATE_LIMITEDSleep Retry-After seconds.