# Limits

> Request rates, concurrent jobs, file sizes, schema size and other limits.

| Limit | Value | When exceeded |
|---|---|---|
| Requests per minute | 600 per API key or console session | `429 rate_limited` with `Retry-After` |
| Open live extractions | 5 per account | `429 concurrency_limit` |
| Open test extractions | 25 per account | `429 concurrency_limit` |
| `wait` on create or get | 60 seconds | `422 invalid_request` |
| API keys | 20 active per account | `409 key_limit_reached` |
| Webhook endpoints | 16 per account | `409 webhook_limit_reached` |
| Upload size | 200 MiB | `413 upload_too_large` |
| PDF pages | 1,000 | `422 document_limit_exceeded` |
| Spreadsheets | 128 sheets, 2,000,000 cells | `422 document_limit_exceeded` |
| Schema | 256 KiB, depth 6, 100 properties per object | `422 invalid_schema` |
| Instructions | 16,000 characters | `422 invalid_request` |
| Metadata | 20 keys; keys up to 40 and values up to 500 characters | `400 invalid_metadata` |
| Page size (`limit`) | 100 | `422 invalid_request` |
| Schema suggestions | 1–5 documents; default cost cap $0.05 (`max_cost_usd`) | `400 invalid_documents` |

"Open" means `pending` or `running`. Instead of starting many jobs and polling them,
queue work on your side and start new jobs as webhooks report finished ones.

## File formats

PDF, Word (DOCX), images (PNG, JPEG, TIFF) and Excel (XLSX, XLSM, XLS, XLSB). The type
is detected from the file's content, not its name; anything else, including legacy
Word `.doc`, returns `415 unsupported_media_type`.

## Retention

Documents are deleted automatically **30 days after upload**, together with everything
made from them: pages, extractions, results, evidence and schema suggestions. Store the
results you need within that time; after it, the `document_id` and its `job_id`s return
`404`, and their idempotency keys can be reused.

Delete a document sooner with `DELETE /v1/documents/{document_id}` (`204`). This
removes the same data at once. It returns `409 document_in_use` while an extraction or
schema suggestion on the document is still running.

Charges stay in your usage and credit history after a document is deleted (date,
amount, schema and key), without the document or its results. Webhook delivery logs are
kept for 30 days. Schemas, API keys and webhook endpoints stay until you delete them.

## Credit

Live extractions and schema suggestions are charged by model usage; the charge of each
job is in `charge_usd`. The console shows the balance and spending under **Usage**. When
the balance reaches zero, new live work fails with `402 insufficient_credits`; test
mode keeps working.
