Get started
Rate limits
Per-tier limits — both requests-per-minute (RPM) and requests-per-day (RPD).
| Tier | RPM | RPD | Credits/month |
|---|---|---|---|
| Free | 10 | 500 | 1,000 |
| Starter | 120 | 20,000 | 25,000 |
| Growth | 300 | 60,000 | 100,000 |
| Pro | 600 | 150,000 | 400,000 |
| Enterprise | Custom | Custom | Custom |
Response headers
Metered endpoints return these headers on calls that pass the tier check. Use them to track what is left.
HTTP/2 200
content-type: application/json
x-request-id: 6f1c2a9e-4b7d-4c1e-9a53-2f0d8b1e7c44
x-subscription-tier: starter
x-ratelimit-limit-day: 20000
x-ratelimit-remaining-day: 19873
x-ratelimit-reset-day: 1792368000
x-ratelimit-limit-minute: 120
x-ratelimit-remaining-minute: 117- x-subscription-tier — the plan used for this call
- x-ratelimit-limit-minute / x-ratelimit-limit-day — per-minute and per-day ceilings for your plan
- x-ratelimit-remaining-minute / x-ratelimit-remaining-day — calls left in the current minute window and UTC day
- x-ratelimit-reset-day — UNIX timestamp (seconds) of the next UTC midnight, when the daily quota refills. There is no minute reset header; use Retry-After on 429.
- x-request-id — an opaque string on every response (echoes your X-Request-Id header if you sent one, otherwise a generated ID); pass it to support to debug a specific call
Handling 429 Too Many Requests
Responses include Retry-After in seconds — recommended pattern is exponential backoff (1s, 2s, 4s, 8s) before giving up.
// Exponential backoff on 429
async function callWithRetry(url: string, init: RequestInit, max = 4) {
let attempt = 0
while (true) {
const res = await fetch(url, init)
if (res.status !== 429) return res
if (attempt >= max) return res
const retryAfter = Number(res.headers.get('Retry-After') ?? 1)
const waitMs = (retryAfter || 2 ** attempt) * 1000
await new Promise((r) => setTimeout(r, waitMs))
attempt++
}
}Idempotent retries
Send an Idempotency-Key header (up to 128 letters, digits, _ : . -) on any POST. For 24 hours, a retry with the same key and the same body returns the stored response with idempotency-replayed: true and is not charged again. Reusing the key with a different body returns 409 idempotency_conflict. Server errors (5xx) are not stored.