# clearOCR > OCR API for extracting text and optional barcode data from PDF documents and images. ## Documentation for AI agents - [Agent instructions](https://clearocr.com/api/AGENTS.md): authentication, safe usage, limits, and response handling. - [API integration guide](https://clearocr.com/api/API.md): endpoints, request fields, response schemas, and examples. - [Use cases](https://clearocr.com/api/USE_CASES.md): common workflows and guidance for choosing API options. - [README](https://clearocr.com/api/README.md): documentation overview. ## API references - [OpenAPI JSON](https://clearocr.teamquest.pl:60213/openapi.json) - [ReDoc](https://clearocr.teamquest.pl:60213/api-docs/redoc) - [Usage examples](https://clearocr.teamquest.pl:60213/api-docs/example-usage) ## Account, billing, and data handling - [clearOCR account and API key management](https://clearocr.com) - Pricing: [website](https://clearocr.com/pricing) ยท [Markdown](https://clearocr.com/pricing.md) - [Terms, privacy, and DPA](https://clearocr.com/page/regulations) ## Important integration facts - API keys are generated from a clearOCR account; an account may have multiple keys. - Authenticate with `Authorization: Bearer ` (recommended) or `CLEAR-OCR-API-KEY: ` (supported alternative); use one method per request. - `CLEAR-OCR-API-USER` is optional. - The documented API version header is `CLEAR-OCR-API-VERSION: 0.1` and is optional. - The default concurrent processing limit is 4; the standard document page limit is 5. - `GET /tokens` returns the remaining account token balance, the token cost per page, and how many pages the balance can still cover. Read these values at runtime; do not hardcode a token cost. - The standard document page limit is 5, separate from `ocr.pages_allow`, which reports account capacity based on remaining tokens. - Check [pricing on the website](https://clearocr.com/pricing) or its [Markdown version](https://clearocr.com/pricing.md) for monetary prices and current offers.