Core concepts
Rate limits
How many jobs run at once and how to handle 429.
Limits apply to the whole account, across every key and every client, including the MCP server and the CLI.
Running and waiting jobs
| Limit | Default |
|---|---|
| Jobs running at once | 2 |
| Jobs waiting in your account queue | 20 |
| Longest wait before a queued job gives up | 15 minutes |
When all running slots are busy, a new job is still accepted and waits with wait_reason: "account_capacity". It starts as soon as a slot frees up. If it hasn't started by waiting_expires_at, it fails with queue_expired and the full amount goes back to your wallet.
When the waiting queue is also full, new jobs are refused with 429 queue_full. Nothing is created or charged.
Request rate
Reads and writes each have a request budget, per key and per account. Going over it returns 429 rate_limited.
Handling 429
Both 429 codes include a Retry-After header in seconds. Wait that long, then send the same request with the same Idempotency-Key. The clients do this for you, up to 3 times.
{
"api_version": "v1",
"error": {
"code": "queue_full",
"message": "Too many jobs are queued on this account. Retry when a job finishes.",
"retryable": true,
"details": [],
"retry_after_seconds": 5
},
"request_id": "req_9e3c1a7f-2b6d-4f8e-a5c4-7d1b9e2f6a38"
}