Skip to content

Common errors

When a request fails, look at the HTTP status code first, then the error’s message. Common errors are listed below by status code.

The error body’s shape depends on the API: OpenAI-compatible endpoints usually return {"error": {"message": ...}}, the Anthropic endpoint {"type": "error", "error": {"message": ...}}, and the Gemini endpoint {"error": {"code": ..., "message": ...}}. Look for the message.

MessageCause and fix
API key in query parameter is deprecated...The key is in the URL (?key=). Put it in a header instead; see Passing the key.
Failed to parse request bodyThe body isn’t valid JSON. Check quotes, commas and brackets.
Request body is emptyThe request has no body.
model is requiredThe request has no model.
Other 400 errorsUsually the model maker rejected the request — the context is over the model’s limit, a parameter isn’t supported, or the content breaks its usage policy — and the error is passed on as is. Adjust the request as the message says.
MessageCause and fix
API key is required ...No key was sent. Check that the client has a key and how the header is written.
Invalid API keyThe key doesn’t exist: it may be incomplete, or it was deleted.
API key is disabledThe key is disabled; enable it under API Keys in the Hub.
User account is not activeThe account is disabled; contact the platform.
MessageCause and fix
Insufficient account balance, insufficient balanceNot enough balance; top up.
no active subscription: ...The key is billed to a subscription that has expired. Renew, or bill the key to the balance.
daily usage limit exceeded and similarThe subscription’s daily, weekly or monthly quota is reached.
API key has expiredThe key has expired; change its expiry in the Hub.
Access deniedYour IP isn’t allowed by the key’s IP restriction.
Model <name> is not allowed for this API keyThe key’s “Lines & Models” setting doesn’t allow this model.
Your request was blocked by our content safety review...The request didn’t pass the platform’s content review; revise it and retry.
What you seeCause and fix
An HTML page titled 404 Not FoundThe base URL or path is wrong. Typically a Claude client’s address has an extra /v1 (giving /v1/v1/messages), or an OpenAI client’s address is missing /v1. See Base URL.
404 page not foundThe path is under /v1/ but no such endpoint exists. Check the spelling.
Model <name> is not availableNo line offers this model, or the line code is wrong. Check the name in the Model Plaza.
Model "<name>" is not supported by any configured account in this groupThis line can’t serve this model right now. Use another line, or the bare model name so the platform picks one.

Request body is too large: the request is over 256 MB, usually because of large images or files. Compress or split them.

429: too many requests, or a limit is reached

Section titled “429: too many requests, or a limit is reached”
MessageCause and fix
API key quota is used upThe key’s quota is used up. Raise it or reset the used amount in the Hub.
API key 5-hour spending limit reached and similarThe key’s limit for the period is used up; it clears when the period ends.
subscription quota is used up: ...The subscription quota is used up. Wait for the reset, or let the key fall back to the balance.
Too many pending requests, please retry later, Concurrency limit exceeded for user, please retry laterToo many requests at once. Retry later or run fewer in parallel.
user requests-per-minute limit exceededOver the per-minute request limit. Wait the number of seconds in the Retry-After header.
Upstream rate limit exceeded, please retry laterThe model maker is rate-limiting; the platform has already retried on other accounts. Retry later or use another line.

For the rules on quotas and limits, see How you are charged.

502, 503: upstream temporarily unavailable

Section titled “502, 503: upstream temporarily unavailable”

These mean the problem is on the model maker’s side, or the platform has no free account right now. The platform has already retried on other accounts before returning them, and failed requests are not charged.

MessageMeaning
Upstream service temporarily unavailableThe model maker’s service errored or timed out.
Upstream service overloaded, please retry laterThe model maker’s service is overloaded.
Upstream request failed, All available accounts exhaustedEvery available account was tried and failed.
No available accounts, Service temporarily unavailableThe line has no free account right now.
Upstream authentication failed, please contact administratorA platform account has an authentication problem; contact the platform.

Wait a little and retry, or use another line (see Lines). If it keeps happening, contact the platform.

Once streaming has started there’s no status code any more; an error arrives in the stream instead:

Error typeMeaning
stream_timeoutThe model produced nothing for 3 minutes, so the connection was closed.
stream_read_errorThe connection to the model maker dropped.
response.failed (Responses API)The reply failed; details are in its error.

What was already produced is charged. You can simply retry the request.

The platform waits up to 10 minutes for a model to start replying; once it has started, a reply isn’t cut off for running long as long as output keeps coming.

If your client or code sets a shorter timeout of its own (60 seconds, say), a model that thinks for a long time may be cut off by the client before it starts. For long tasks, set the client timeout to more than 10 minutes.