FrogDino

Error codes: what each status and code means and how to fix it

When a request fails, the HTTP status tells you what kind of problem it is, and the error code in the response body tells you the exact cause. Check the status first, then look up the code in the tables below.

What an error response looks like

Rejected during the key check

Key, IP, balance and key quota checks happen before the request is forwarded. Errors at this step use this format whatever protocol you use, with the code in code:

{
  "code": "INVALID_API_KEY",
  "message": "Invalid API key"
}

Anthropic protocol (/v1/messages)

The code is in error.type. When error.code is present, it gives the more specific cause:

{
  "type": "error",
  "error": {
    "type": "rate_limit_error",
    "code": "gateway_concurrency_limit",
    "message": "Concurrency limit exceeded for user, please retry later"
  }
}

OpenAI protocol (/v1/chat/completions, /v1/responses)

Look at error.type, or error.code when present:

{
  "error": {
    "type": "upstream_error",
    "message": "Upstream service temporarily unavailable"
  }
}

Example when the model is not available:

{
  "error": {
    "message": "Model \"my-model\" is not available for this group",
    "type": "invalid_request_error",
    "code": "model_not_found"
  }
}

If the error happens after a streaming response has started, the HTTP status is already 200 and the error arrives as an error event. Read its type and message and look them up below.

Key and account

CodeHTTP statusMeaningWhat to do
API_KEY_REQUIRED401The request has no key.Send the key in an Authorization: Bearer YOUR_KEY or x-api-key header. If you set it through an environment variable, check that the variable is set in the current terminal.
INVALID_API_KEY401The key does not exist or was mistyped.Copy the full key again from API Keys, with no spaces or quotes around it. A deleted key cannot be restored; create a new one.
api_key_in_query_deprecated400The key was put in the URL (?key= or ?api_key=).Send it in a header instead.
INVALID_AUTH_RATE_LIMITED429Too many requests with a wrong key from the same source in a short time, so they are blocked for a while.Fix the key first, then wait the number of seconds in the Retry-After header. Do not let a program retry in a loop with a wrong key.
API_KEY_DISABLED401The key is disabled.Enable it on API Keys, or use another key.
API_KEY_EXPIRED403The key is past the expiry time you set.Extend it on API Keys, or create a new key.
ACCESS_DENIED403Your IP is not on the key's IP whitelist, or is on its blacklist. The message is Access denied. Your IP is … followed by the IP the gateway saw.Edit the IP restriction on API Keys: add the IP from the message to the whitelist, or remove it from the blacklist.
USER_INACTIVE401Your account is disabled.Contact support (see the end of this page).
GROUP_DISABLED GROUP_DELETED403The key's group has been disabled or deleted.Move the key to an available group on API Keys, or create a new key.
GROUP_NOT_ALLOWED403The key's exclusive group no longer allows your account.Move the key to another group.
permission_error403The key has no group. The message is API Key is not assigned to any group and cannot be used….Edit the key and choose a group.

Balance and quota

CodeHTTP statusMeaningWhat to do
INSUFFICIENT_BALANCE403Your account balance is used up (zero or below).Top up on Recharge / Subscription.
billing_error403With the message insufficient balance: your balance does not cover this request. With api key 额度已用完: the key's quota is used up (see the next row).For the first, top up. For the second, see the next row.
API_KEY_QUOTA_EXHAUSTED429The key's Quota Limit is used up. The message is API key 额度已用完 ("API key quota used up"). On /v1/responses the response uses the OpenAI format, with type and code insufficient_quota.Raise the key's quota or reset its used amount on API Keys. Account balance and key quota are separate, so this can happen even with money in your account.
SUBSCRIPTION_NOT_FOUND403The key uses a subscription group, but you have no active subscription for it.Buy a subscription on Recharge / Subscription, or move the key to a pay-as-you-go group.
USAGE_LIMIT_EXCEEDED429The subscription's daily, weekly or monthly allowance is used up. The message contains daily usage limit exceeded, weekly … or monthly ….Wait for the next period, or move the key to a pay-as-you-go group.
SUBSCRIPTION_INVALID403The subscription has expired or is suspended (the message contains subscription has expired or subscription is suspended).Renew it, or change groups.

Too fast or too many requests

CodeHTTP statusMeaningWhat to do
rate_limit_exceeded429The key's spending limit is reached. The message is api key 5小时限额已用完, api key 日限额已用完 or api key 7天限额已用完 (5-hour, daily or 7-day limit used up).Wait for the window to pass, or raise the matching limit under Rate limit on API Keys. You can also reset the usage there.
rate_limit_exceeded429Too many requests per minute. The message is user requests-per-minute limit exceeded or group requests-per-minute limit exceeded.Wait the number of seconds in Retry-After, then send again.
rate_limit_exceeded429Your account's daily, weekly or monthly usage cap for this platform is reached. The message is Daily usage quota exhausted for this platform. (or Weekly, Monthly).Wait until it resets; Retry-After gives the seconds.
gateway_concurrency_limit429More requests at once than the concurrency limit allows, and no slot freed up while waiting. The message is Concurrency limit exceeded for user, please retry later (or for account).Send fewer requests at the same time, for example lower the number of parallel tasks in your tool, and retry later.
gateway_queue_full429Too many requests waiting in line. The message is Too many pending requests, please retry later.Lower concurrency and retry later.

Wrong request or wrong URL

CodeHTTP statusMeaningWhat to do
404 page not found (plain text)404The URL is wrong and the gateway has no such path. The usual cause is an extra /v1, giving …/v1/v1/messages.Use https://frogdino.com for the Anthropic protocol and https://frogdino.com/v1 for the OpenAI protocol. See Base URLs below.
invalid_request_error400Something is wrong with the request body: Request body is empty, Failed to parse request body (not valid JSON) or model is required.Check the body and the content-type: application/json header.
not_found_error model_not_found404The key's group does not offer the model you asked for. The message is Model "…" is not available for this group or Model "…" is not supported by any configured account in this group. The Anthropic format uses type not_found_error; the OpenAI format uses code model_not_found.Check the model name on Models & pricing and make sure the key's group has it. Claude models need a key in the Claude group; GPT models need a key in the GPT group.
content_policy_violation403 by defaultThe request was blocked by content moderation. The default message is 内容审计命中风险规则,请调整输入后重试 ("content matched a risk rule, please change the input and retry").Change the input and try again.
Passed through from upstream400The model service rejected the request parameters, for example the context is too long or a parameter is not supported. The gateway passes the 400 error through as is.Read the message and fix the request.

Model service (upstream)

When the model service fails, the gateway first retries on another route. You only see these errors when that also fails.

CodeHTTP statusMeaningWhat to do
rate_limit_error429The model service is rate limiting. The message is Upstream rate limit exceeded, please retry later.Wait a bit and retry.
overloaded_error503The model service is overloaded. The message is Upstream service overloaded, please retry later. In the OpenAI format the type is upstream_error.Wait a bit and retry.
upstream_error502The model service failed or is temporarily unavailable. The message is Upstream service temporarily unavailable or Upstream request failed.Retry later. If it keeps happening, contact support.
upstream_error502An upstream route on the gateway side failed authentication or was refused. The message is Upstream authentication failed, please contact administrator or Upstream access forbidden, please contact administrator. Your key is not the problem.Contact support.
api_error503No upstream route is available right now. The message starts with No available accounts.Retry later. If it keeps happening, contact support.
server_error502Every available route was tried and all failed. The message is All available accounts exhausted (OpenAI format).Retry later.
billing_service_error503The billing service is temporarily unavailable. The message is Billing service temporarily unavailable. Please retry later.Retry later.
API_KEY_AUTH_OVERLOADED503Key checking is temporarily busy.Retry later.

Am I charged for failed requests?

Every charge is listed under Usage.

Base URLs

ProtocolBase URLNotes
Anthropichttps://frogdino.comNo /v1. The client adds /v1/messages itself.
OpenAIhttps://frogdino.com/v1Include /v1. The client adds /chat/completions or /responses.

See the guides for how to set this up in each tool.

FAQ

What do I do about 401 INVALID_API_KEY?

The key does not exist or was mistyped. Copy the full key again from API Keys with no spaces or quotes; a deleted key has to be recreated. Do not retry in a loop with a wrong key, or you will be blocked for a while (429 INVALID_AUTH_RATE_LIMITED).

I have balance left. Why do I get 429?

Usually it is a limit on the key itself: API_KEY_QUOTA_EXHAUSTED means the key's quota is used up, and rate_limit_exceeded with a 5-hour, daily or 7-day limit message means the key's spending limit is reached. You can raise or reset these on API Keys. gateway_concurrency_limit and gateway_queue_full mean too many requests at the same time.

What does 404 page not found mean?

The URL is wrong. The Anthropic base URL is https://frogdino.com, without /v1. The OpenAI base URL is https://frogdino.com/v1. The most common mistake is an extra /v1.

Am I charged for failed requests?

Requests the gateway rejects (key, balance, limits, concurrency, model not available) and requests where the model service returns an error are not recorded and not charged. If a streaming response breaks off midway, the usage the model service had already counted before the break is charged as usual.

What do I do about 503 No available accounts?

No upstream route is available right now. It is usually temporary, so retry later. If it keeps happening, contact support with the error and the time of the request.

Still stuck?

Send us:

  1. The error code and HTTP status.
  2. The full error message (the whole response body).
  3. The time of the request, to the minute, with your time zone.
  4. The model name you requested.

Do not send your full key. The first and last few characters are enough, for example sk-abc…xyz.

Email: [email protected] · QQ support group: 897090815