error or detail field.
Error response shape
HTTP status codes
| Code | Meaning | Common causes |
|---|---|---|
400 | Bad Request | Missing required fields, invalid JSON, schema validation failure |
401 | Unauthorized | Missing Authorization header, invalid or revoked API key |
403 | Forbidden | Attempting to access another user’s resource; plan does not permit API keys |
404 | Not Found | Deployment ID does not exist for your account |
409 | Conflict | A deployment with that ID already exists |
429 | Too Many Requests | Rate limit exceeded for your plan tier |
500 | Internal Server Error | Unexpected server-side error |
503 | Service Unavailable | Model container is not yet active or is temporarily unreachable |
Error examples
401 — Invalid API key
Authorization header.
403 — Plan upgrade required
404 — Deployment not found
deployment_id either does not exist or belongs to a different user.
409 — Duplicate deployment
429 — Rate limit exceeded
retry_after_seconds before retrying. See also the Retry-After response header.
503 — Deployment not active
ACTIVE.
503 — Container unreachable
ACTIVE but did not respond. Usually resolves within seconds — retry with exponential backoff.
Handling errors — recommended pattern
Python
Node.js