Skip to main content
← All APIs

OCR that brings documents into your workflow.

Turn documents and images into structured text your product can use.

Usage price$0.002 / page
FormatsPDF · Word · PowerPoint · Images
LimitsUp to 1,000 pages · 100 MiB
Document extractionPOST /recognize
text_recognitionrich_layout_recognition
page_countinteger
Total number of recognized pages
pages[].indexinteger
Zero-based page index mapped to source file
pages[].textstring
Recognized text or layout output for the page
pages[].finish_reasonstring
Completion or truncation indicator per page
purposestring
Recognition mode used for this request
usageobject
Page billing and token/usage summary

Published response fields from the current release.

View full response contract

Turn static files into usable application data.

Searchable document archives

Extract clean text from scanned PDFs and images for full-text search, indexing and compliance.

Structured layout preservation

Switch to rich-layout recognition when tables, headings and reading order matter downstream.

Agent & RAG ingestion

Convert uploaded Office files and PDFs into page-indexed text ready for chunking and retrieval.

Choose what to preserve, then verify every page.

Upload the original document directly over multipart form-data and pick the recognition mode that matches your downstream pipeline.

Read the guide

Text vs. rich-layout recognition

Use text_recognition for fast searchable text, or rich_layout_recognition when preserving page structure is essential.

Page-indexed results with completion markers

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).

Operations and pricing

Release v1.0.0 · 1 endpoint

API reference
PathDescriptionBilling
POST/recognizeRecognize document text$0.002 / page
Technical limits
ⓘThese limits apply unless an endpoint lists different limits.
Timeout
240 s
Request body
102464 KiB
Response body
4 MiB

Your first API request

Send requests to https://api.antapi.dev with ANTAPI_KEY in your environment.

Call directly from your AI agent

Connect over Streamable HTTP MCP with browser OAuth under your project budget.

ocr_recognize
Recognize document text$0.002 / page
POST /ocr/v1/recognize
curl --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>'

Make uploaded documents usable right away.

Create an account, issue a key, and make your first request.

Start building