Guides

Errors & retries

Responses use the standard OpenAI error shape so existing SDK retry logic keeps working.

Status reference

StatusTypeMeaning
401invalid_api_keyUnknown, revoked, or expired virtual key
402budget_exceededMonthly budget spent — resets on the 1st (UTC)
403model_not_allowedModel or provider not in this key’s allowlist
429rate_limit_errorPer-key RPM limit — retry with backoff
502upstream_errorThe provider itself is unreachable

Retry guidance

Treat 429 and 502 as transient. Do not retry 401, 402, or 403 without changing the key, budget, or model.

Next: Privacy & security