DocsReferenceErrors
Errors
Find the message you got. Each entry gives the HTTP status, the exact text, when it happens and how to fix it.
On this page
Read an error
Every response carries an X-Oneapi-Request-Id header, and most error messages end with (request id: …). Quote it when you contact support.
Errors use the OpenAI shape. The exception is an error that comes back while a Messages request is being handled, which uses the Anthropic shape:
- Messages are in English, and amounts are in US dollars, such as
$0.00. - Below, values stand for what is filled in at run time, and the
(request id: …)ending is left out. - If an error has no request id, for example an HTML page or an event inside a stream, send us the
X-Oneapi-Request-Idresponse header instead.
400 Bad request
The request itself is malformed.
Invalid request: Invalid request: invalid JSON request body
- When
- The request body is not valid JSON.
- Fix
- Check quotes and commas. In a shell, keep the JSON in single quotes, or send it from a file.
Model name not specified, model name cannot be empty
- When
- The body has no
model, or it was not sent as JSON. - Fix
- Add
model. SendContent-Type: application/json; without it,curl -dsends form data.
field messages is required
- When
- A required field is missing. The message names the field.
- Fix
- Add the field.
Model model has no price configured yet, so it cannot be used. Contact support if you need it enabled.
- When
- The model is not available yet.
- Fix
- Use another model, or write to us.
responses to chat conversion does not support stateful fields: previous_response_id
- When
- A Responses request uses
previous_response_id, which this model does not support. - Fix
- Send the whole conversation in
inputwith each request.
The request was rejected as invalid. Check the request parameters and try again.
- When
- The model’s provider rejected a parameter. The code is the provider’s own.
- Fix
- Check the parameters you send for that model, such as
tool_choiceormax_tokens.
Other 400 errors come from the model’s provider, in its own words. Its own request id is removed and ours is added. Fix the parameter the message names.
401 Unauthorized
The key is missing or not accepted.
Invalid token
- When
- No key, a wrong key, or a key that is disabled, expired or out of quota. All of these return the same text.
- Fix
- Copy the full key again from API Keys and check its status, expiration and quota there. In Claude Code, also remove any old
ANTHROPIC_API_KEY.
403 Forbidden
The key works, but your balance or the key’s settings stop the request.
Insufficient balance: amount remaining. New requests are declined until you add balance
- When
- Your balance is $0.00 or less. These requests are not recorded in Usage Logs.
- Fix
- Add balance in Wallet. Your keys work again as soon as the balance is positive.
Insufficient balance: amount remaining, and this request needs amount reserved before it starts. Add balance or send a smaller request
- When
- Your balance is low and does not cover this request’s estimated cost. When your balance and the key’s quota are both above $10, nothing is reserved in advance.
- Fix
- Add balance, or send fewer input tokens.
token quota is not enough, token remain quota: amount, need quota: amount
- When
- The key’s own quota cannot cover this request.
- Fix
- Raise the key’s Quota (USD) or turn on Unlimited Quota on API Keys, or use another key.
This token has no access to model model
- When
- The key has Model Limits and this model is not on the list.
- Fix
- Add the model to the key’s Model Limits, or clear the list to allow every model.
Your IP address ip is not on this key's IP allowlist
Your IP address could not be determined, so this key's IP allowlist cannot be checked
- When
- The key has an IP Whitelist (supports CIDR).
- Fix
- Add the IP address shown, or a CIDR range, to the key’s IP Whitelist, or clear it.
Selecting a channel with a key suffix is reserved for administrators; use the API key exactly as shown in the console
- When
- Extra characters follow the key after a hyphen.
- Fix
- Copy the key again exactly as shown.
This key's group 'group' is not available to your account
The group 'group' on this key has been retired; edit the key and choose another group
- When
- The key’s group cannot be used.
- Fix
- Edit the key on API Keys and choose another group.
User has been banned
- When
- The account is suspended.
- Fix
- Write to developer@acctoken.com.
404 Not found
A wrong model ID or a wrong path.
No available channel for model model under group group (distributor). Models available here: a, b, …. Set your client to one of these (and make sure the name has no stray spaces)
- When
- The model ID does not exist here, often because a tool kept its built-in default. On the Messages API the same text arrives as
not_found_error. Claude Code shows it asThere's an issue with the selected model. - Fix
- Set the model to one of the IDs listed in the message. See Model IDs.
Invalid URL (METHOD path)
- When
- The path is wrong:
/v1twice, the wrong method, or an endpoint that is not served, such ascount_tokens. - Fix
- Check the base URL for your tool’s format in Quickstart.
No response found with id 'id'.
- When
GET /v1/responses/{id}. Responses are not stored.- Fix
- Keep the response on your side, and send the full input with each request.
429 Too many requests
Slow down and retry. A 429 is never about your balance; an empty balance is a 403.
The upstream model service is at capacity and could not take this request. This is a shared upstream limit, not your balance, your key or your parameters. Please retry shortly.
- When
- The model provider is at capacity.
- Fix
- Retry with exponential backoff, or try another model.
This model is at capacity. Requests above your fair share are rate limited so that everyone keeps access; this is not about your balance or your key. Retry in n seconds or use another model.
- When
- A busy model is shared fairly between accounts. A
Retry-Afterheader is sent. - Fix
- Wait the number of seconds given, or use another model.
Rate limit reached: up to n successful requests every m minutes. Please retry later
Rate limit reached: up to n requests every m minutes, failed ones included. Check that your requests are valid, then retry later
- When
- Your account sent too many requests to a model.
- Fix
- Slow down. If many requests fail, fix those first: failed ones count.
Too many requests from your IP address. Please wait and retry; the Retry-After header says how long
- When
- Too many requests from one IP address.
- Fix
- Wait for the time in
Retry-After.
A provider’s own 429 is passed on as it is, with our request id added.
500, 501, 503
Something failed on our side or at the model provider.
upstream error: do request failed
- When
- The model provider could not be reached, or a streaming request got no response within 180 seconds.
- Fix
- Retry. If it keeps happening, send us the request id.
Failed to get available channel for model model under group group (retry): detail
No available channel for model model under group group (retry)
- When
- No route for the model was available while retrying.
- Fix
- Retry later, or use another model.
not implemented
- When
- A Responses request to a model whose provider does not support it.
- Fix
- Use Chat Completions for that model.
Database error, please contact the administrator
- When
- An internal error on our side.
- Fix
- Retry, then write to us with the request id.
API not implemented
- When
- Files, fine-tuning and image variations are not available.
- Fix
- Use another way to do the task; these endpoints are not served.
No available channel for model model under group group (distributor). Models available here: …
- When
- The model exists but is temporarily unavailable.
- Fix
- Retry later, or use another model from the list.
Failed to get available channel for model model under group group (distributor): detail
- When
- Choosing a route for the request failed.
- Fix
- Retry. If it persists, write to us with the request id.
system cpu overloaded (current: x%, threshold: y%)
- When
- The gateway is shedding load. Memory and disk have the same kind of message.
- Fix
- Retry after a short wait.
This model is temporarily unavailable. This is a service-side problem, not your API key or your balance; please retry later or use another model.
- When
- The model’s provider cannot serve it right now. On the Messages API the type is
overloaded_error. - Fix
- Retry later, or use another model. It is never about your key or your balance.
The model service returned an error. Please retry shortly.
- When
- The model’s provider returned some other error. The status code is the provider’s.
- Fix
- Retry shortly. If it keeps happening, send us the request id.
A 502 or 504 that arrives as an HTML page comes from the web server in front of the gateway and has no request id. Retry; if it persists, tell us the time and the endpoint.
Errors inside a stream
The upstream ended the response without any content, usually an early stop when it is at capacity. You were not charged; please retry.
- When
- A Responses stream ended without output. It arrives as a
response.failedevent. - Fix
- Retry.
Other errors inside a Chat Completions or Messages stream are the provider’s own events, passed on as they are.
No error message
Unexpected token '<'
- When
- Your client received an HTML page: the base URL is missing
/v1, so the request reached the website. - Fix
- Use
https://intl.acctoken.com/v1for OpenAI-format tools.
The reply is empty
- When
- Some models think before they answer, and the thinking counts toward
max_tokens. A small limit can run out before any text. - Fix
- Raise
max_tokensto 4096 or more, or leave it unset.
The request times out
- When
- Some models, GPT models in particular, can take up to about three minutes to return a long reply without streaming, and your client stopped waiting first.
- Fix
- Set the client timeout to at least 300 seconds, or use streaming.
Still stuck
- Your balance is above $0.00.
- The key is complete, with nothing before or after it.
- The key’s Model Limits allow the model, or are empty.
- The base URL matches your tool’s format: the root URL, or the root URL plus
/v1. - The model ID matches the Models page.
- The cURL command in Quickstart works with the same values. If it does, the problem is in the tool’s settings.
Write to developer@acctoken.com with the full response and its request id. We reply within 24 hours.