CheaperGen

Guides

Rate limits

How CheaperGen rate limits and concurrency work, what a 429 rate_limited response means, and how to back off and scale throughput safely.

Two limits keep latency predictable for everyone: a request rate limit on authenticated calls, and a concurrency limit on generations running at once. Past the request rate, a call gets 429 rate_limited and nothing is charged. Past the concurrency limit, nothing is refused: the generation waits in your account's queue and starts as soon as one of yours finishes.

Default limits#

LimitDefaultApplies to
Request rate10 requests/second, bursts up to 20Each API key (or signed-in session), across all authenticated endpoints — submits, polling, listing, uploads.
Concurrent generations20 running at onceYour whole account, across all keys and the Studio. Finished generations and those waiting in your queue don't count.
QueueUp to 10 × your concurrency limitGenerations past your concurrency limit wait here and start first come, first served.
Public endpointsFair useGET /models, GET /models/{id} and POST /quote are cached; please don't poll them in tight loops.

The request rate is a token bucket: you can send up to 20 requests at once, and capacity refills at 10 per second. Steady traffic below 10 requests per second is never limited.

The queue#

  • A generation past your concurrency limit is accepted as usual: you get its id at once, its price is held, and its status is queued. It starts by itself as soon as one of your generations finishes, oldest first.
  • Waiting doesn't count towards a generation's time limit: a queued generation is never failed or timed out for waiting.
  • A generation still waiting in your queue can be canceled (POST /generations/{id}/cancel) or deleted at any time, and its hold is refunded at once. Once it has started, the usual cancel rules apply.
  • Your queue holds up to 10 × your concurrency limit (200 for a new account). Past that, a request gets 429 rate_limited and nothing is created or charged.
  • Each account has its own queue, and waiting generations take no capacity: a long queue never holds up other accounts' generations.

See your limits#

The table shows the defaults. Your account's own limits, and how many of its generations are in progress, are in Dashboard → Settings and in the limits field of GET /api/v1/account (and of the MCP tool get_account):

GET /api/v1/account
{
  "object": "account",
  "balance_usd": 42.5,
  "limits": {
    "unlimited": false,
    "concurrent_generations": 20,
    "in_flight": 3,
    "requests_per_second": 10,
    "burst": 20,
    "tier": null
  }
}

concurrent_generations is how many generations may run at once (more wait in your queue) and in_flight how many are in progress now, queued ones included; requests_per_second and burst are the request rate and the burst, for the account and for each of its API keys.

When you hit a limit#

429 Too Many Requests
{
  "error": {
    "code": "rate_limited",
    "message": "Your queue is full: 200 generations are already waiting for your 20 concurrent slots (up to 200 can wait). Nothing was submitted or charged. Retry when some have finished (webhook_url tells you when), or cancel queued ones; GET /api/v1/account shows your limits. For a higher limit, contact us: contact@cheapergen.com."
  }
}

Every 429 carries a Retry-After header (seconds to wait). When a limit was hit, the message states it; when your queue is full, it also says how many generations are waiting.

  • Request rate: wait briefly and retry with exponential backoff and jitter (start around one second). See Retrying safely.
  • Queue full: the concurrency 429 comes only when your queue is full. Wait for some generations to finish (a webhook_url tells you when) or cancel queued ones, then submit more.

Staying under the limits#

Use webhooks instead of tight polling#

Polling dozens of jobs every second burns through the request budget. Pass a webhook_url and let us call you instead — see Webhooks. If you poll, back off to every 5–10 seconds for video.

Queue submissions on your side#

Short bursts are fine: your queue absorbs them. For batches larger than your queue, keep the backlog on your side and submit as generations finish (webhooks tell you when), so you never hit the queue-full 429.

Share one key per service#

Request rate is counted per key, but concurrency is counted per account. Splitting traffic across more keys does not raise the number of generations you can run at once.

Need more throughput?

Enterprise plans include higher request rates, higher concurrency and dedicated capacity sized to your peak traffic. Talk to sales or email contact@cheapergen.com.

Something unclear or missing? Email support@cheapergen.com — we read everything.