token_quota_exceeded — key token quota used up
What happened
The order was not created. This is the only 429 with window fields: window (the first window exceeded), limit, used, requested, reset_at, retry_after. Windows that reset over time (per_minute … per_month) also send a Retry-After header. For the token pool without a reset (window: "quota"), reset_at and retry_after are null and there is no header.
Why
The quota counts tokens, not requests. A token is the accounting unit for the amount of work a service does. It is not money and not LMC. The per_minute, per_hour, per_day, and per_month windows are set in the key limits.tokens.*. The check runs before the order is created. POST /orders is checked against the estimate, POST /orders/{order}/retry against the sum of the original order chunks, and regenerate against the new text.
What to do right now
Wait until reset_at. It is the same moment as retry_after seconds from now. With window: "quota", waiting does not help: the pool does not refill on its own, an administrator tops it up. The reason and the window fields in the body tell this case apart from rate_limit_exceeded. If you cannot wait, reduce requested: split the text so that each part fits into what is left in the window (limit − used).
Which request to send next
The same request after Retry-After. The key windows (limits.tokens.*) are shown in the developer section. A key without token limits has no volume limit.
Where to go next
This page for AI
API version 1.0.0