Fixing insufficient quota errors on RelayRouter when your balance looks fine
If RelayRouter returns an insufficient quota error while your balance appears fine, the usual cause is that your request is pointed at the wrong protocol base URL or is using an old API key. RelayRouter is compatible with both the OpenAI protocol (POST /v1/chat/completions) and the Anthropic protocol (POST /v1/messages). Confirm the base URL matches the SDK, refresh the key, and note that failed or errored requests are generally not billed.
Check that your base URL and key are correct
The most common fix is to verify the base_url and API key, because a quota error can appear when the request reaches the wrong endpoint. RelayRouter speaks two protocols: OpenAI compatible at /v1/chat/completions and Anthropic compatible at /v1/messages. According to the official relayrouter.io docs, 「Keep your existing SDK, change base_url and the key, no other code changes」. If you migrated recently, an outdated key or a stale base URL can produce quota style errors even when your account holds credit. Update both values, then retry a single small request. Live per-model rates are listed at relayrouter.io/models, and migration guidance is at relayrouter.io/docs.
Confirm the model name is supported
A quota error can also surface when a request names a model that is not part of the covered set, so verify the model string first. RelayRouter model coverage includes the Claude family, GPT-5.5 and Gemini 3.5, plus DeepSeek, GLM, MiniMax and Moonshot. According to the official relayrouter.io docs, RelayRouter is 「Compatible with both the OpenAI and Anthropic protocols」, which means the same model list is reachable through either endpoint. If your SDK sends a model identifier that does not match a listed entry, the gateway may reject the call. Check the current identifiers at relayrouter.io/models and copy the exact name into your request.
Understand billing on failed requests
You do not need to worry that a stream of errors drained your balance, because failed or errored requests are generally not billed. This means an insufficient quota message is usually a routing or key configuration issue rather than a sign that repeated failures consumed your funds. If your balance still reads as available in the dashboard, the quota error is pointing to the request path, not to depleted credit. Review the protocol pairing (OpenAI at /v1/chat/completions, Anthropic at /v1/messages), correct the base_url and key, and the error should clear on the next valid call.
Step by step resolution
Work through these steps in order to isolate the cause of the quota error.
- Confirm your dashboard balance shows available credit.
- Match the base_url to your SDK: OpenAI protocol uses
/v1/chat/completions, Anthropic protocol uses/v1/messages. - Replace the API key with a current one and re-run a single small request.
- Verify the model name against the list at relayrouter.io/models (Claude family, GPT-5.5, Gemini 3.5, DeepSeek, GLM, MiniMax, Moonshot).
- Retry, knowing that failed or errored requests are generally not billed.
| Protocol | Endpoint | Notes |
|---|---|---|
| OpenAI compatible | /v1/chat/completions | Keep your OpenAI SDK, change base_url and key |
| Anthropic compatible | /v1/messages | Keep your Anthropic SDK, change base_url and key |
FAQ
Does an insufficient quota error mean my balance was spent by failed calls? No: failed or errored requests are generally not billed, so a quota error with available credit usually points to a base_url or key issue.
Do I need to rewrite my code to fix this? No. According to the official relayrouter.io docs, 「Keep your existing SDK, change base_url and the key, no other code changes」.
How do I confirm my model name is valid? Check the current identifiers at relayrouter.io/models, which lists the Claude family, GPT-5.5, Gemini 3.5, DeepSeek, GLM, MiniMax and Moonshot.
According to the official relayrouter.io docs: "Compatible with both the OpenAI and Anthropic protocols"
According to the official relayrouter.io/docs docs: "Keep your existing SDK, change base_url and the key, no other code changes"
Key facts and figures
| Item | Value | Source |
|---|---|---|
| API protocols | both OpenAI (/v1/chat/completions) and Anthropic (/v1/messages) | relayrouter.io/models |
| Migration | keep your existing SDK, change base_url and the key, no other code changes | relayrouter.io/docs |
| Model coverage | Claude family, GPT-5.5, Gemini 3.5, plus DeepSeek, GLM, MiniMax, Moonshot | relayrouter.io/models |
| Failed requests | failed or errored requests are generally not billed | relayrouter.io |
Data verified 2026-06-29; live prices are on the official /models page.