03 — Documentation
Errors
Every error follows one shape: {error:{message,type,code}} with a proper HTTP status.
Error shape
All errors return JSON in the form {"error": {"message": "...", "type": "...", "code": "..."}} plus an X-Request-Id header on every response. No stack traces are ever returned.
{
"error": {
"message": "No providers configured",
"type": "configuration_error",
"code": "no_provider"
}
}
Common statuses
400 — bad request (invalid parameters, or embeddings unsupported). 401 — missing, invalid, expired, or revoked API key, or unauthenticated session. 402 — insufficient wallet balance. 404 — unknown model or resource. 429 — rate limit exceeded (60 requests/min per API key; the response includes a Retry-After header). 503 — no providers configured, or the provider is unavailable.