Docs
Rate limits
Limits count calls per minute. Going over one gets 429 rate_limited with a Retry-After header.
The limits
| What is counted | Limit |
|---|---|
| Every call of one account | 300 per minute |
| Every call made with one API key | 120 per minute |
| POST /v1/generate and POST /v1/edit, per account | 20 per minute |
| Calls with a wrong key, per IP address | 30 per minute, then that address is blocked until the minute ends |
- These are today's defaults. We may change them; this page will show the new ones.
- A minute is a fixed window: counts start again at the start of each window, not 60 seconds after your first call.
- A call counts against every limit that applies to it. A generate made with a key counts for the account, the key and generate-and-edit.
GET /v1/modelsneeds no key and is not counted.
When you go over
HTTP/1.1 429 Too Many Requests
Retry-After: 23
{ "error": { "code": "rate_limited", "message": "Too many requests. Try again in 23 s.", "retry_after": 23 } } Retry-After and retry_after are the seconds until the window ends (at least 1). Wait that
long, then retry. A refused call makes no job and costs nothing.
Jobs at the same time
Up to 5 of your jobs run at the same time. More are accepted and wait in the queue; this is not an error. A job that
waits for more than about 7 minutes fails with queue_timeout and is not charged.
Failed jobs
If many of your recent jobs fail (by default more than 12 in the past hour), new generate and edit calls get
429 too_many_failed_jobs for a while. It has no Retry-After header. Wait, or change the
request. See Errors.
Designs are AI-generated. Outputs can contain factual mistakes, so review every design before you use it.