Documentation menu · errors

Errors

Errors use the OpenAI envelope. Branch on code, not on the message.

json
{
  "error": {
    "message": "Offers for deepseek-ai/DeepSeek-V4.1-Flash exist, but none match your routing policy.",
    "type": "api_error",
    "code": "no_eligible_offers",
    "rejected": [{ "offer_id": "off_…", "seller": "s_7f3a", "reason": "verification_below_policy" }]
  }
}
codeMeaning
invalid_requestMalformed body, bad parameter, or an unknown policy-path token.
unauthorizedMissing or invalid API key / session.
forbiddenAuthenticated, but not allowed to do this.
not_foundNo such resource.
insufficient_balanceYour balance can't cover the call.
budget_exceededA key budget (daily or monthly) is used up.
key_frozenThe anomaly guard froze the key. Unfreeze it in the dashboard.
no_offers_for_modelNobody sells this model right now.
no_eligible_offersOffers exist, but your policy excluded all of them. Includes rejected.
upstream_failedEvery attempt failed. You were not charged.
rate_limitedToo many requests. Back off and retry.
not_configuredA feature (e.g. card payments) isn't enabled on this deployment.
conflictThe request conflicts with current state.

HTTP status codes follow the usual meanings; the code field is the contract.