Skip to content

Troubleshooting

Errors use the same format as the OpenAI API:

{
"error": {
"message": "Invalid token (request id: 2026...)",
"type": "new_api_error",
"code": ""
}
}

When you contact support, include the request id from message.

The gateway localizes error messages based on the Accept-Language header, so a client running in another language may show translated text. The status codes below stay the same.

Status / message Cause Fix
401 Invalid token No token was sent, the header name is wrong, the token is wrong, or the token has expired, used up its quota or been disabled. Check the header: x-api-key for the Anthropic format, x-goog-api-key for the Gemini format, Authorization: Bearer sk-... for everything else, with no extra spaces or quotes. Then check the token’s status on the console’s Tokens page and create a new one if needed.
403 Your IP address is not on this token's allowlist The token has an IP allowlist and your current outbound IP is not on it. Add your outbound IP to the allowlist, or clear the allowlist.
403 This token has no access to model ... The token has model limits enabled and this model is not selected. Edit the token and select the model, or turn model limits off.
403 No permission to access group ... The token’s group is not available to your account or has been retired. Edit the token and choose an available group.
403 content_moderation_blocked (This request was blocked by content moderation...) The request did not pass content moderation and was blocked by the gateway. It was not forwarded upstream and was not charged. Revise the input before sending it again, and do not retry automatically. If you think it is a mistake, see Content safety to appeal.
403 User has been banned Your account has been disabled, for example automatically after repeated flags by content moderation. Email us for a review; see Content safety.
403 insufficient balance (Insufficient user quota or Not enough quota to pre-consume) Your account balance does not cover the amount reserved for this request. Add funds on the Wallet page. (When a token’s own quota runs out you get 401 Invalid token instead.)
429 You have reached the request limit Too many requests in a short time. Reduce concurrency, retry with exponential backoff, and try again later.
429 / 503 (upstream rate limit or busy) The upstream is rate-limiting or out of capacity, and the gateway passed the error on. Try again later, or use a token in a different group.
503 / 400 No available channel for model X under group Y That model has no available channel in your group right now. Check on the pricing page whether the model is offered in your group; switch models, or use an auto-group token.
Model X has not been priced by the administrator yet The model name does not exist, or the model is not offered yet. Check the spelling, case and date suffix against the pricing page.
Model name not specified The request body has no model field, or the JSON is malformed. Check the request body.
404 Invalid URL Wrong path. Usually the base URL has an extra or missing /v1, or the endpoint is not supported (for example /v1/usage). Compare the path with Endpoints and authentication.
5xx or connection timeout A temporary upstream fault or an unstable network. Retry later. For long requests, use streaming (stream: true).
  1. Test with curl using the command from the Quick start, to rule out client configuration.
  2. Check the logs. The console’s Logs page records the model, group, token and charge for every request. If a request is missing there, it never reached the gateway; usually the base URL or the network is the problem.
  3. Check the model and group. Use model names exactly as shown on the pricing page, and confirm the model is offered in your token’s group.
  4. Check your balance. See Balance and usage.

We do our best to keep the service available, but there is no SLA, and no guarantee that any model is always available or free of rate limits. If you see a prolonged outage, email [email protected] with the request id and the time it happened (with time zone).