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

LimitDefault
Jobs running at once2
Jobs waiting in your account queue20
Longest wait before a queued job gives up15 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.

Tip
Need higher limits? Contact Astorie support with your account ID and expected volume.

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.

429 response
{
  "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"
}