Rate limits
| What | Limit | Over it | Retry-After |
|---|---|---|---|
| Requests per key | 120 a minute | 429 rate_limited |
60 |
| Design starts per key | 20 a minute | 429 rate_limited |
60 |
| Uploads per key | 20 a minute, 200 an hour, 1,000 a day (refused attempts count too) | 429 rate_limited |
Until that window ends: 60, 3,600 or 86,400 |
| Uploads in progress, all keys together | 8 at once | 429 rate_limited |
5 |
| API designs rendering at once, per account | 8 (the app has its own 8, so a script never locks people out of the app) | 429 too_many_active |
None: start another when one finishes |
| Upload size | 25 MB, 20,000 pixels a side | 400 upload_too_large |
The SDKs wait out Retry-After and retry on their own, twice by default. For too_many_active there is no Retry-After: wait for a design to finish (a webhook, or Prefer: wait) before you start the next.
Headers
Section titled “Headers”Every answer to a key says where it stands:
RateLimit-Limit: 120RateLimit-Remaining: 117RateLimit-Policy: 120;w=60X-Request-Id: 01a1ebfd-49a1-7c3e-8b1f-6d2a0e5c7f10RateLimit-Remaining counts down within the current minute.
Staying within them
Section titled “Staying within them”- One held request with
Prefer: wait=60counts once, however long it waits. Prefer it, or webhooks, to polling. - For large batches, start designs at a steady 15 to 20 a minute rather than all at once; the account’s limit on designs rendering at once is usually what you meet first.
- Need more? Use one key per service, or write to us about higher limits.