Docs Limits
The numbers this gateway enforces, and what they mean in seconds of audio.
At a glance
| limit | default | scope | configurable |
|---|---|---|---|
| Requests per minute | 30 | Per key, rolling 60 s | Per key, at mint time (1–600) |
| Characters per month | 200,000 | Per key, calendar month UTC | Per key, at mint time (1,000–5,000,000) |
| Input length | 3,000 characters | Per request | Operator |
| Body size | 64 KB | Per request | Operator |
| Concurrent generations | 1 | Whole worker | No — it is one GPU |
| Request timeout | 120 s | Per request | Operator |
Characters to audio
The worker produces roughly real time on the RTX 3060 with Q8_0. At an average of 15 characters per second of speech:
| characters | audio | generation time (approx.) |
|---|---|---|
| 150 | 10 s | 10 s |
| 900 | 1 min | 1 min |
| 3,000 | 3 min 20 s | 3–4 min |
| 200,000 (a full monthly key) | about 3.7 hours | about 4 hours of GPU |
That last row is the real constraint: a monthly budget is also a share of the machine. Two keys with 200,000 characters each are promising eight hours of GPU time in a month with one worker.
When the limit is reached
| limit | answer | header |
|---|---|---|
| Rate | 429 rate_limited |
Retry-After: 60 |
| Budget | 429 quota_exceeded |
— |
| Busy worker | 503 worker_busy |
Retry-After: 5 |
Rate is checked before budget, and both are checked before the worker is contacted.
Choosing numbers
- One key per consumer, not per person. A consumer is an app, a bot, an agent, a render job.
- Rate = the burst you actually need. Above 30/min on a single GPU mostly buys
worker_busy. - Budget = expected monthly output × 1.5. Characters, not audio seconds; a 1,000-character script is 1,000 characters.
- Reserve a small key for health checks and smoke tests so a busy production key never blocks a deploy.
The month boundary
Budgets reset at 00:00 UTC on the first of the month. There is no carry-over and no daily slice: a key
may spend its whole budget in one hour. Rate limiting, not the budget, is what smooths traffic.
What the gateway does not limit
- Per-IP — all traffic arrives from a few hosts; per-key is the useful unit.
- Audio size — the response size follows from the text and the format.
- Voice caching — repeated identical calls are not deduplicated. Cache in the caller by a hash of
input+instructions+seed.
Changing a limit
Limits are set per key when it is minted. To change one: mint a replacement with the new numbers, point the consumer at it, then revoke the old key. That ordering keeps the consumer working; the reverse ordering is a planned outage.