Skip to content

Rate limits and quotas

Three separate limits apply: a per-key request rate, a per-project job concurrency, and the plan’s page quota. Test keys add a daily page cap.

Requests per minute are counted per API key over a sliding 60-second window. The limit depends on the organization’s plan:

Plan Requests / minute Concurrent jobs per project Pages processed in parallel per job
Free 60 1 2
Pro 300 4 8
Scale 1,200 16 16
Enterprise 5,000 64 32

Every authenticated response carries:

X-RateLimit-Limit: 300
X-RateLimit-Remaining: 287
X-Request-Id: req_01JE4KE9F2G3H4J5K6L7M8N9P0

When the limit is hit you get 429 rate_limited with a Retry-After header in seconds:

HTTP/1.1 429 Too Many Requests
Retry-After: 7
Content-Type: application/json
{"error":{"type":"rate_limit_error","code":"rate_limited","message":"Rate limit exceeded for this key.","doc_url":"https://docs.deskew.dev/errors#rate_limited"}}

Wait at least Retry-After seconds, then retry with exponential backoff and jitter. Polling GET /v1/jobs/:id counts towards the limit; prefer webhooks at volume.

The number of jobs a project processes at once is bounded by plan. Additional jobs are accepted (202) and wait in queued until a slot frees up; nothing is rejected. Inside a job, pages run in parallel up to the per-job figure above.

Test keys never bill, and in exchange each key may process 50 pages per calendar day (UTC). The cap is reserved against the page count when a request is accepted, so a 60-page document on a test key is rejected outright with 429 test_daily_cap and Retry-After: 3600. Use several test keys for several developers; the cap is per key.

Live usage is measured in credits per billing cycle (see Concepts). Before a live request is accepted, its estimated credits are checked against the plan:

Plan Included pages / month Over the allowance
Free 1,000 Hard stop: rejected with 402 quota_exceeded until the next cycle
Pro 10,000 Billed at $0.004 per page
Scale 100,000 Billed at $0.002 per page
Enterprise Custom Custom

GET /v1/usage returns the current cycle’s pages, credits, premium credits and jobs alongside included_pages.

Paid organizations can set a monthly spend cap under Usage and billing. Before a live request is accepted, the projected bill (plan price plus overage so far plus this request) is compared with the cap; if it would exceed it, the request is rejected with 402 quota_exceeded. Raise the cap or wait for the next cycle. No cap means overage is unlimited.

Limit Value
Synchronous request ≤ 12 work units and ≤ 20 MB
Any upload or URL fetch ≤ 500 MB (413 file_too_large)
PDF pages per document ≤ 2,000 (422 too_many_pages)
Image frames per file 200 (extra frames dropped with a warning)
Spreadsheet rows per sheet 20,000 (truncated with a warning)
Email attachments 10, each ≤ 50 MB
URL fetch 30 s timeout, up to 5 redirects