Searchable document archives
Extract clean text from scanned PDFs and images for full-text search, indexing and compliance.
Turn documents and images into structured text your product can use.
page_countintegerpages[].indexintegerpages[].textstringpages[].finish_reasonstringpurposestringusageobjectPublished response fields from the current release.
Extract clean text from scanned PDFs and images for full-text search, indexing and compliance.
Switch to rich-layout recognition when tables, headings and reading order matter downstream.
Convert uploaded Office files and PDFs into page-indexed text ready for chunking and retrieval.
Upload the original document directly over multipart form-data and pick the recognition mode that matches your downstream pipeline.
Read the guideUse text_recognition for fast searchable text, or rich_layout_recognition when preserving page structure is essential.
Each page carries its own index and finish_reason. Check completion and truncation markers before treating a long document as complete (up to 1,000 pages and 100 MiB).
Release v1.0.0 · 1 endpoint
| Path | Description | Billing |
|---|---|---|
POST/recognize | Recognize document text | $0.002 / page |
Send requests to https://api.antapi.dev with ANTAPI_KEY in your environment.
Connect over Streamable HTTP MCP with browser OAuth under your project budget.
ocr_recognizecurl --request POST 'https://api.antapi.dev/ocr/v1/recognize' \
--header "Authorization: Bearer $ANTAPI_KEY" \
--form 'file=@<PATH_TO_FILE>' \
--form-string 'purpose=text_recognition' \
--header 'Idempotency-Key: <YOUR_SAVED_OPERATION_KEY>'Create an account, issue a key, and make your first request.