Skip to content

Errors

Errors follow the OpenAI-compatible error envelope:

{
"error": {
"message": "insufficient credits",
"type": "insufficient_quota",
"param": null,
"code": "insufficient_quota"
}
}
StatusTypeMeaningRetry guidance
400invalid_request_errorThe request body, model, endpoint, parameters, or tool schema is invalid.Fix the request; do not retry unchanged.
401invalid_request_errorThe API key is missing, malformed, revoked, or invalid.Check the API key.
402insufficient_quotaThe balance cannot cover the request reservation.Top up the organization balance.
408upstream_errorThe provider did not respond before the gateway timeout.Retry with backoff; check usage before repeating long requests.
429rate_limit_errorThe provider or gateway rate limit was reached.Retry after a delay with exponential backoff.
499request_canceledThe client disconnected or canceled the request.Retry only if the operation is safe to repeat.
500server_errorAn unexpected gateway error occurred.Retry with backoff and include X-Request-ID when contacting support.
501invalid_request_errorThe requested capability or endpoint is not implemented.Use a supported endpoint or model.
502upstream_errorThe provider rejected the request or returned a provider-side error.Fix request/model compatibility or retry only when appropriate.
503upstream_errorThe provider is temporarily unavailable.Retry with exponential backoff.
504upstream_errorThe provider request timed out.Retry with backoff; check usage before repeating.

Every response carries X-Request-ID. Include it in support requests; the same ID keys your usage history and the provider call.

A provider response after the request was accepted may still consume tokens and affect your balance. Check the Usage & Audit Log before retrying.