Amazon Ergo rate limits
Amazon Ergo rate limits depend on where you call the model. On the Ergo Model hosted API the limit is 30 requests per minute per API key; go over it and you get a standard 429 with a Retry-After header. This page covers that limit, how a 429 differs from a 402, 503 or 400, backoff code you can copy, the free playground's limits, and what is and is not public about Amazon Bedrock and OpenRouter quotas.
Ergo Model is an independent service, not affiliated with Amazon or AWS. The numbers in the first sections are ours; they are not Amazon's.
The per-key request limit
Every call to our OpenAI-compatible endpoint (POST https://ergomodel.net/api/v1/chat/completions) is counted against the ergo_live_ key in the Authorization header.
- Limit: 30 requests / minute / API key.
- Scope: counted per key, on the chat-completions endpoint.
- Over the limit: HTTP
429, coderate_limit_exceeded, with aRetry-Afterheader giving the seconds to wait. - Token limits: there is no tokens-per-minute cap on our side. A single request can use the model's full 1,048,576-token context window and up to 131,072 output tokens.
So the limit is a request-rate cap. How much you can spend is bounded by your prepaid balance (see below), not by the 30/min figure.
What a 429 looks like
A rate-limited request comes back in the OpenAI error shape, so existing SDK retry logic already understands it:
HTTP/1.1 429 Too Many Requests
Retry-After: 42
{
"error": {
"message": "Rate limit exceeded: 30 requests per minute per API key. Retry in 42s.",
"type": "rate_limit_error",
"code": "rate_limit_exceeded"
}
}Read the Retry-After value (seconds) and wait at least that long before retrying. A rate-limited request is rejected before it reaches the model, so it is not billed.
429 vs 402 vs 503 vs 400 — which did you hit?
Different conditions produce different status codes, and only some of them are worth retrying. Check the code first:
| Status | Code | Meaning | What to do |
|---|---|---|---|
| 429 | rate_limit_exceeded | You sent more than 30 requests in a minute on this key. | Wait for Retry-After seconds, then retry. Lower your concurrency. |
| 402 | insufficient_credits | Your prepaid balance is at zero. The response includes a top-up link. | Top up at /dashboard. Retrying without credit won't help. |
| 503 | — | The upstream provider is busy. | Retry after a short, growing delay. |
| 502 | — | The upstream provider is unavailable. | Retry with backoff; if it persists, stop and try later. |
| 400 | — | Bad request, or the model rejected the request — for example invalid JSON, an empty messages array, or an attempt to disable reasoning. | Fix the request. The same body will fail again. |
| 401 | missing_api_key / invalid_api_key | No key was sent, or the ergo_live_ key is wrong or revoked. | Check the Authorization: Bearer ergo_live_… header; create a new key if needed. |
The common trap is treating a 402 like a 429 and retrying in a loop. A 402 means you are out of prepaid credit, not going too fast; waiting does not clear it. A second trap is specific to this model: a 200 with empty content and finish_reason: "length" is not a rate limit. Ergo always reasons before it answers and reasoning tokens come out of max_tokens, so raise max_tokens (at least 2048 for short answers) instead of retrying.
Backoff examples
The rule is short: on 429 wait for Retry-After; on 502/503 back off exponentially with jitter; on 400, 401 and 402 stop. In Python:
import os, time, random
import requests
URL = "https://ergomodel.net/api/v1/chat/completions"
HEADERS = {"Authorization": f"Bearer {os.environ['ERGO_API_KEY']}"}
def chat(payload, max_attempts=6):
for attempt in range(max_attempts):
r = requests.post(URL, headers=HEADERS, json=payload, timeout=600)
if r.status_code == 429:
# our limiter tells you exactly how long to wait
time.sleep(int(r.headers.get("Retry-After", "5")))
continue
if r.status_code in (502, 503):
# upstream busy or unavailable: exponential backoff with jitter
time.sleep(min(2 ** attempt, 30) + random.random())
continue
if r.status_code >= 400:
# 400, 401, 402: retrying will not help
raise RuntimeError(r.json()["error"]["message"])
return r.json()
raise RuntimeError("still failing after retries")
reply = chat({
"model": "ergo-1.0",
"max_tokens": 4096,
"messages": [{"role": "user", "content": "Hello Ergo"}],
})And in JavaScript or TypeScript with fetch:
const URL = "https://ergomodel.net/api/v1/chat/completions";
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
async function chat(payload, maxAttempts = 6) {
for (let attempt = 0; attempt < maxAttempts; attempt++) {
const res = await fetch(URL, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.ERGO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
if (res.status === 429) {
await sleep(Number(res.headers.get("retry-after") ?? 5) * 1000);
continue;
}
if (res.status === 502 || res.status === 503) {
await sleep(Math.min(2 ** attempt, 30) * 1000 + Math.random() * 1000);
continue;
}
const data = await res.json();
if (!res.ok) throw new Error(data.error.message); // 400, 401, 402
return data;
}
throw new Error("still failing after retries");
}If you use the openai SDKs, their built-in retry (the max_retries / maxRetries client option) already retries rate-limit and server errors with backoff, so you often only need to raise that number.
Staying under the limit
- Cap concurrency. 30 requests/minute is one every two seconds on average; a parallel agent loop with 10 workers can pass that quickly. Keep in-flight requests modest, or add a small client-side queue.
- Prefer fewer, bigger calls. The 1M-token context window lets you send a lot in one request, and one large call uses one request slot.
- Use one key per integration. The limit is counted per key, so a batch job and an editor on separate keys do not eat each other's budget.
- Don't retry a
400,401or402. Surface them to the user instead.
How the balance bounds usage
Beyond the request rate, the real bound on usage is your prepaid balance. Input and output are metered separately, and reasoning tokens count as output:
ergo-1.0input — $1.50 per 1M tokens.ergo-1.0output — $4.50 per 1M tokens.
Creating a key is free, but calls need a balance: at zero the API returns 402 insufficient_credits with a link to top up. Credit packs start at $5 and credits never expire. So the 30/min rate limit controls burst speed; your balance controls total spend. See the pricing page for the current packs.
Free playground limits
The free playground on the home page has its own, tighter limits. It is for trying the model in a browser, not for programmatic use:
- 6 requests per minute and 40 requests per day, counted per IP address.
- 12,000 characters of input per request.
- Up to 3,072 output tokens per reply.
If you run into those, an API key is the next step: it lifts the daily cap and gives you the full context window.
Amazon Bedrock and OpenRouter limits
Everything above describes our hosted endpoint only. If you call the model somewhere else, the Amazon Ergo rate limits are set by that provider:
- Amazon Bedrock. Bedrock applies per-account quotas to Ergo-1.0. The default values are not public here, and we will not guess at them. Open the Service Quotas console in your AWS account to see the numbers that apply to you and to request an increase.
- OpenRouter. OpenRouter applies its own limits to
amazon/ergo-1.0, tied to your OpenRouter account rather than to our 30/min per-key figure. See the OpenRouter setup page for that route.
The Amazon Ergo API comparison lists the providers side by side. Bedrock and OpenRouter are cheaper per token; our endpoint offers one ergo_live_ key, a published request limit and no AWS account.
Need a higher limit?
The Amazon Ergo rate limits on this site are the same for every key: 30 requests per minute. If a production workload needs more, write to contact@ergomodel.net with your key prefix and expected throughput.
Quick FAQ
What are the Amazon Ergo rate limits?
On the Ergo Model hosted API: 30 requests per minute per ergo_live_ API key. Exceeding it returns a 429 with a Retry-After header. Amazon Bedrock and OpenRouter set their own limits.
Why am I getting a 429 from the API?
You sent more than 30 requests in a minute on one key. Wait for the seconds given in Retry-After, lower your concurrency, and retry. It is not a billing error — that's a 402.
Is the rate limit per key or per account?
Per key. Each ergo_live_ key is counted on its own.
Does a 429 cost credits?
No. Rate-limited requests are rejected before the model runs, so they aren't billed.
What are the Amazon Bedrock quotas for Ergo?
The default Bedrock quotas for the model are not public here. Check the Service Quotas console in your own AWS account; it shows the values applied to your account and region.
How do I handle rate limits in opencode or Cursor?
Keep concurrency modest and let the client retry. If you see repeated 429s, reduce parallel requests; if you see a 402, top up. See the opencode, Cursor and how-to-use guides.