Rate limits
Requests per hour for each Pictograph plan, per-key caps, the headers on a 429, and how the SDK and CLI wait and retry for you.
On this page
Each API key gets its plan’s budget of requests, counted over a sliding hour. Calls to a
deployment’s or workflow’s endpoint don’t count; an endpoint has no limit unless you set
rate_limit_rpm.
Limits by plan
| Plan | Requests / hour |
|---|---|
| Free | 2,000 |
| Core | 5,000 |
| Pro | 20,000 |
| Team | 50,000 |
| Enterprise | 100,000 |
A key follows its plan, so an upgrade applies at once. An admin can cap a key below its plan
with rate_limit (requests an hour) when creating or updating it;
clear_rate_limit=True ("rate_limit": null in REST) removes the cap.
Response headers
A 429 carries the window’s state; other responses don’t.
| Header | Meaning |
|---|---|
Retry-After |
Seconds until the next call may succeed |
X-RateLimit-Limit |
The key’s limit for the window |
X-RateLimit-Remaining |
Calls left in the window (0 on a 429) |
X-RateLimit-Reset |
Unix timestamp when the next call may succeed |
What counts
Each request counts once, whatever its size, downloads included. Use
client.batch calls instead of a loop over images.
SDK auto-retry
The SDK waits and retries when a 429’s Retry-After is 120 seconds or less; a longer wait
raises RateLimitError with retry_after:
from pictograph.exceptions import RateLimitError
import time
try:
client.datasets.list(limit=100)
except RateLimitError as e:
print(f"Rate limited; retry in {e.retry_after}s")
time.sleep(e.retry_after or 5.0)
# ...then retry
The CLI waits the same way, and exits 8 on a longer wait.