Request rate limits
A workspace also runs at most agent sessions at once, counting those its members run in the app (
429 too_many_running_sessions). The count is read when each request arrives, so parallel requests can briefly go past it.
Every authenticated response carries the IETF RateLimit headers:
r is what remains in the current window of the request’s bucket, t the seconds until it resets. Over the limit you get 429 rate_limited with Retry-After. Rejected requests count too: retrying early does not help.
A Prefer: wait request counts once, however long it waits. A workspace holds at most such requests open at once; past that, the answer comes at once, without Preference-Applied, and you poll as usual.
Request size
A JSON body is at most MB, and a file sent in the request at most MB, with aContent-Length (411 length_required without one); past that, 413 payload_too_large. Larger files go through a signed upload.
Generations in flight
Model capacity is shared across Argil, and some models run few jobs at a time:- Queueing. A generation that cannot start yet is
queuedwithstatus_detail: "waiting_for_capacity"and aqueue.position; its credits are reserved. Generations start by plan priority, then in creation order. - Queue cap. Once generations are waiting in your workspace, creation returns
429 too_many_queued_generations. The count is read when each request arrives, so a burst of parallel requests can briefly go past it. Submit batches progressively, for example as webhooks come back. - URL imports.
POST /v2/assetswith aurlreturns429 too_many_asset_importswhile assets of your workspace are still processing. URLs given as generation inputs are not limited this way. - Webhook endpoints. A workspace has at most ; past that,
409 too_many_webhook_endpoints.
Good practice
- Respect
Retry-Afteron429and on pollingGETs. - Prefer webhooks or
Prefer: waitto tight polling loops.
