Rate limits
Organization request quotas, concurrency, polling, and retries.
Limits apply per organization and are shared by all API keys in that organization. The defaults below apply unless your organization has a custom limit.
| Operation | Default request limit | Counter |
|---|---|---|
| Create a generation | 20 requests per 60 seconds | Separate |
| Retrieve a generation | 20 requests per 60 seconds | Separate |
| Upload an asset | 20 requests per 60 seconds | Separate |
| Retrieve or delete an asset | 20 requests per 60 seconds combined | Shared |
HTTP 429 indicates a rate limit: rate_limit_exceeded for v2, error.code=RateLimitExceeded for Ark, and 00009 for v1 assets. v2 and Ark share the organization’s create and read quotas.
Concurrency and polling
By default, an organization can run up to 5 generations concurrently. Concurrency and request rate are separate limits. Accepted generations wait for capacity when the concurrency limit is reached.
Poll a single generation every 10 seconds. When tracking several generations, stagger requests across the organization. For example, with the default quota and five active generations, poll each one every 20 seconds, spacing requests four seconds apart. This uses about 15 reads per minute.
Stop polling at a terminal status. For v2, these are succeeded, failed and canceled. For Ark, they are succeeded, failed, cancelled and expired.
Retries
- Failed reads — For network errors,
429,500, or503, back off with jitter, for example after 10, 20 and 40 seconds, capped at 60 seconds. Set an overall timeout. On429, also reduce the organization’s combined polling rate. - Invalid input or access errors: correct the input, API key, or permissions before retrying.
- Generation creation: requests are not guaranteed to be idempotent. Do not automatically resend after a timeout, a lost response, or a
5xxresponse; this may create duplicate generations. If you have a generation ID (includingdetails.generation_idin a v2 error), resume polling. Without an ID, the retrieval endpoint cannot locate that request. - Asset uploads: repeated uploads may create separate assets. Save each returned asset ID.
A client-side polling timeout does not cancel a generation. Use the saved ID to retrieve its status later.
Higher limits
Contact us if you need higher request limits or more concurrent generations.