API_KEY_REQUIRED
No API key in the request
What to doSend Authorization: Bearer sk-… in a header; Anthropic-style clients can use x-api-key.
When the API returns an error, the HTTP status narrows down the kind of problem, and code or error.type in the body names the cause. Rather than reading the whole list, paste the full error into the search box below and the matching entry is picked out for you.
Entries come from what the spiderai gateway really returns · last checked 2026-11-29
Requests stopped at our end (a wrong key, too little balance) get the left-hand shape. Errors after the request has gone on to the model service come back in the format of the API you called, so clients and SDKs parse them as usual.
{
"code": "INVALID_API_KEY",
"message": "Invalid API key"
}{
"type": "error",
"error": {
"type": "rate_limit_error",
"message": "Concurrency limit exceeded for user, please retry later"
}
}{
"error": {
"type": "insufficient_quota",
"message": "api key 额度已用完"
}
}A request that fails without using anything costs nothing. If a streamed reply breaks off, what was already output is billed at actual usage, and every charge can be matched in Usage.
No matching error. Try another word, or send us the full error. Contact us
The key is mistyped, turned off or past its expiry, or the account itself is unavailable.
API_KEY_REQUIRED
What to doSend Authorization: Bearer sk-… in a header; Anthropic-style clients can use x-api-key.
INVALID_API_KEY
What to doCopy the full key again from API keys and check there are no spaces or line breaks around it.
API_KEY_DISABLED
What to doTurn it back on in API keys, or create a new one.
API_KEY_EXPIRED
What to doExtend it in API keys, or create a key that does not expire.
ACCESS_DENIED
What to doChange the key’s IP limits in API keys. The IP in the message is the address we saw.
USER_INACTIVE
What to doAsk us about the account through Contact.
permission_error
What to doCreate a new key in API keys and pick a group when you create it.
api_key_in_query_deprecated
What to doSend it in a header instead, as in the first entry of this section.
INVALID_AUTH_RATE_LIMITED
What to doCheck the key, then wait about a minute.
The money in your account, and the caps and period limits you set on a single key.
INSUFFICIENT_BALANCE
What to doTop up; it works as soon as the payment arrives.
API_KEY_QUOTA_EXHAUSTED · insufficient_quota
What to doRaise or remove the key’s cap in API keys.
rate_limit_exceeded
What to doWait for the period to reset, or change the limits in API keys.
More requests at once than allowed, or the model service is throttling.
gateway_concurrency_limit
What to doWait for earlier requests to finish, or lower the concurrency in your client. For higher concurrency, contact us.
gateway_queue_full
What to doTry again shortly; if the response has a Retry-After header, wait that many seconds.
rate_limit_error
What to doRetry later and double the wait after each failure. Retrying straight away gets a 503 next (see Model service and connection). If it keeps happening, switch to another group from the same provider.
Something in the request itself: parameters, model name, API address or size.
invalid_request_error
model, an empty body or invalid JSONWhat to doFix what the message says and send again.
invalid_request_error
What to doCompact the conversation or start a new one; for longer contexts, use a model with a higher limit.
not_found_error
What to doCheck Status first; use another model in the group, or try again later.
404
What to doUse https://api.spiderai.fun/v1 for OpenAI formats and https://api.spiderai.fun for Anthropic; avoid …/v1/v1.
405
What to doThe API lives at https://api.spiderai.fun, not https://spiderai.fun.
413
What to doUse smaller images, fewer attachments, or split it into several requests.
This group does not accept this kind of call: switch groups, or use a client and API format it supports.
permission_error
What to doFor other clients, use a key from Claude Economy, Claude General or Claude Official API.
permission_error
/v1/messages)What to doCall GPT groups in the OpenAI format (/v1/chat/completions or /v1/responses); for Claude Code, use a key from a Claude group.
INVALID_ARGUMENT
/v1beta/…) was called with a key that is not in a Gemini groupWhat to doUse a key from a Gemini group, or switch to the OpenAI format /v1/chat/completions.
permission_error · invalid_request_error
What to doUse a group that can generate images; see the group notes on Pricing.
not_found_error
/v1/images/…) was called with a key from a group that cannot generate imagesWhat to doUse a key from a group that can generate images.
The content did not pass the model service’s review. It has nothing to do with your key or balance.
invalid_request_error · upstream_error
What to doChange or remove what triggered it and retry. If every request is refused, check your client’s plugins, system prompt or persona, turn them off and start a new conversation. Other groups usually refuse it too.
Trouble at the model service or on our connection to it; nothing to do with your key or account.
upstream_error
What to doRetry later; if it persists, check Status or switch to another group from the same provider.
upstream_error
What to doRetry later; if it keeps happening, start a new conversation or switch to another group from the same provider.
overloaded_error
What to doWait a few seconds to a few minutes and retry.
server_error · api_error
What to doCheck on Pricing that the group has the model and that the model ID is right; if it is, wait a little or switch to another group from the same provider.
upstream_error
What to doPlease contact us with the time of the request and the model.
billing_service_error
What to doRetry later; if it persists, contact us.
Whatever was output before the break is billed at actual usage; simply send again. For long-running work such as Claude Code or Codex, leave streaming on (stream: true): an idle connection is not dropped, and errors show up right away.
Send us the error code and full message, the X-Request-Id response header, and the time and model. Once signed in, you can see each failure under Failed requests in Usage. Don’t send the whole API key; its name or first few characters are enough.