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.
400: something is wrong with the request
Section titled “400: something is wrong with the request”| Message | Cause 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 body | The body isn’t valid JSON. Check quotes, commas and brackets. |
Request body is empty | The request has no body. |
model is required | The request has no model. |
| Other 400 errors | Usually 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. |
401: something is wrong with the key
Section titled “401: something is wrong with the key”| Message | Cause 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 key | The key doesn’t exist: it may be incomplete, or it was deleted. |
API key is disabled | The key is disabled; enable it under API Keys in the Hub. |
User account is not active | The account is disabled; contact the platform. |
403: not allowed
Section titled “403: not allowed”| Message | Cause and fix |
|---|---|
Insufficient account balance, insufficient balance | Not 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 similar | The subscription’s daily, weekly or monthly quota is reached. |
API key has expired | The key has expired; change its expiry in the Hub. |
Access denied | Your IP isn’t allowed by the key’s IP restriction. |
Model <name> is not allowed for this API key | The 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. |
404: not found
Section titled “404: not found”| What you see | Cause and fix |
|---|---|
An HTML page titled 404 Not Found | The 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 found | The path is under /v1/ but no such endpoint exists. Check the spelling. |
Model <name> is not available | No 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 group | This line can’t serve this model right now. Use another line, or the bare model name so the platform picks one. |
413: request too large
Section titled “413: request too large”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”| Message | Cause and fix |
|---|---|
API key quota is used up | The key’s quota is used up. Raise it or reset the used amount in the Hub. |
API key 5-hour spending limit reached and similar | The 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 later | Too many requests at once. Retry later or run fewer in parallel. |
user requests-per-minute limit exceeded | Over the per-minute request limit. Wait the number of seconds in the Retry-After header. |
Upstream rate limit exceeded, please retry later | The 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.
| Message | Meaning |
|---|---|
Upstream service temporarily unavailable | The model maker’s service errored or timed out. |
Upstream service overloaded, please retry later | The model maker’s service is overloaded. |
Upstream request failed, All available accounts exhausted | Every available account was tried and failed. |
No available accounts, Service temporarily unavailable | The line has no free account right now. |
Upstream authentication failed, please contact administrator | A 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.
Output stopped halfway
Section titled “Output stopped halfway”Once streaming has started there’s no status code any more; an error arrives in the stream instead:
| Error type | Meaning |
|---|---|
stream_timeout | The model produced nothing for 3 minutes, so the connection was closed. |
stream_read_error | The 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.
Timeouts
Section titled “Timeouts”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.