A document extraction API takes a PDF, scan, or image and returns the fields you need as structured JSON: an invoice's vendor and line items, a statement's transactions, a contract's parties and dates. The APIs that read text well are many. What separates them in production is whether the output matches your data model, whether each value can be traced back to the page, and what happens when a value is uncertain. This guide answers which API to use: for most production teams, it's Extend's Extract API. It also compares four other options, with when each fits.
The short answer
Extend is the best API for document extraction for teams shipping production pipelines, from invoices and bank statements to long contracts, where every value has to be right and traceable.
- Your fields, in your shape. You define the fields in a JSON schema, with arrays for line items and nested objects for grouped data, and Extract returns JSON shaped exactly like it. Plain-language extraction rules handle formats and edge cases, with no training data.
- Evidence for every value. Each field comes back with a model confidence and an OCR confidence, and with
citationsEnabled: true, the page, polygon, and source text it came from. - A path for uncertain values. Workflows send low-confidence values to human review, where a reviewer sees each value next to its source, and evaluation sets measure accuracy before a schema change ships.
- Accuracy on long, dense documents. Extract runs Extend Parse first, which scored 95.7% on RealDoc-Bench document Q&A. Operator-1, Extend's extraction agent for long documents, scored 99.3% on LongArray-Extract across 45 documents with tables up to 2,205 rows, plus 99.88% on LongExtractionBench and 96.57% on ExtractBench, two benchmarks published by third parties.
The other APIs fit different teams:
- Google Document AI for teams on Google Cloud that want prebuilt processors for invoices, receipts, and identity documents.
- Azure AI Document Intelligence for teams on Azure that want prebuilt models and custom models trained on their own layouts.
- AWS Textract for AWS-native pipelines that read forms and tables and map the output to their own data model.
- Reducto for teams that need a fully air-gapped deployment.

What to look for in a document extraction API
- Schema-shaped output. You should get back the JSON your system expects, not a list of text blocks to reassemble. Check arrays and nested objects, not just flat fields.
- Per-field evidence. A confidence score and a citation for each value let you trust most values automatically and review the rest.
- Accuracy where documents get hard. Dense forms, handwriting, checkboxes, and tables that run across pages are where values go missing. Test those, not clean samples.
- Long documents. Some APIs cap the pages per request or drop rows from long tables. Check page limits and whether every row comes back.
- Review and change control. Someone will need to correct values and change the schema. Check whether review, versioning, and evaluation are built in or left to you.
How to extract data from documents with Extend

- Define a schema. List the fields you need, with a description for each. Start from a template for invoices, bank statements, contracts, and other common documents.
- Extract with citations. Call the Extract API with your schema and
citationsEnabled: true. Use the async/extract_runsendpoint and webhooks for volume. - Read confidence. Each field in
output.metadatacarrieslogprobsConfidence,ocrConfidence, and itscitations. - Validate and route. Check totals, dates, and required fields in code, and send failures and low-confidence values to human review.
curl -X POST https://api.extend.ai/extract_runs \
-H "x-extend-api-version: 2026-02-09" \
-H "Authorization: Bearer $EXTEND_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"file": { "url": "https://extend-public-files.s3.us-east-2.amazonaws.com/bill-of-lading.pdf" },
"config": {
"schema": {
"type": "object",
"properties": {
"load_number": { "type": ["string", "null"], "description": "The load or BOL number." },
"shipper_name": { "type": ["string", "null"], "description": "The shipper company name." },
"ship_date": { "type": ["string", "null"], "description": "The ship date." }
}
},
"advancedOptions": { "citationsEnabled": true }
}
}'Each value comes back with its evidence:
"load_number": {
"logprobsConfidence": 1,
"ocrConfidence": 0.99,
"citations": [
{
"page": { "number": 1, "width": 612, "height": 792 },
"polygon": [{ "x": 56.8, "y": 35.2 }, { "x": 162.2, "y": 35.2 }, { "x": 162.2, "y": 48.1 }, { "x": 56.8, "y": 48.1 }],
"referenceText": "Load No. ABC-10025521"
}
]
}
Choose extraction_performance (the default) for complex layouts and tables, extraction_light for simple documents at a lower cost, or Operator-1 for long documents where every row of a large table has to come back. If a value comes back empty, check the Parse output first to see whether the page was read.
Document extraction APIs compared
Every claim below comes from the vendor's public product, documentation, or pricing pages, checked in November 2026. Extend publishes this guide and makes Extend, one of the tools compared.
| Extend | Google Document AI | Azure AI Document Intelligence | AWS Textract | Reducto | |
|---|---|---|---|---|---|
| Best for | Teams building extraction into their own product or pipeline | Google Cloud teams with common document types | Azure teams with common or fixed-layout documents | AWS-native OCR, forms, and tables | Teams that need a fully air-gapped deployment |
| How you define fields | JSON schema and plain-language rules | Prebuilt processors, or a Custom Extractor | Prebuilt models, or custom models trained on labeled examples | Prebuilt APIs and Queries; you map blocks to your own model | JSON schema |
| Output | JSON shaped like your schema | Entities with page anchors | Fields with confidence and polygons | A graph of blocks with geometry and confidence | JSON shaped like your schema |
| Per-field evidence | Model and OCR confidence on every field; citations with page and polygon (citationsEnabled) | Confidence and page anchors | Confidence and polygons | Confidence and geometry per block | Citations, opt-in |
| Review of uncertain values | Built-in human review in workflows | Build your own | Build your own | Amazon A2I, closed to new customers | Build your own |
| Pricing model | About 0.9–4¢ per page with parsing on Light and Performance; Operator-1 is 5¢ per page plus parsing | Per page, by processor | Per page, by model | Per page, by feature | Per page, by product and mode |
Extend
Best for: teams that build extraction into their own product or pipeline, with documents that vary in layout and values that feed decisions.
Extract fills your JSON schema and returns confidence and citations for each field, and the same API covers Parse, Split, Classify, workflows with human review, and evaluation sets. Extend is SOC 2 Type II, HIPAA, and GDPR compliant, with zero data retention available. Extend runs in its managed US or EU cloud, on-premises, in your own cloud account and VPC (BYOC), or as a hybrid that keeps documents in your cloud. In production, Brex reached 99% accuracy across millions of financial documents, and Checkr cut manual review time by 60% to near 100%. Pay as you go starts with 10,000 free credits and needs no contract (pricing).
Google Document AI
Best for: teams already on Google Cloud processing invoices, receipts, bank statements, pay slips, or identity documents.
Pretrained processors cover common document types, and the Custom Extractor handles your own types with generative AI. Online requests accept up to 15 pages, or 30 with imageless mode, so longer documents go through batch processing. It connects directly to Cloud Storage, BigQuery, and Vertex AI.
Azure AI Document Intelligence
Best for: teams on Azure with common documents or a small number of fixed layouts.
Prebuilt models cover invoices, receipts, IDs, and tax forms, and custom models learn your layouts from labeled examples. Layout analysis returns paragraphs, tables, and polygons. Labeling takes time when layouts vary, so it fits best where the same layouts repeat at volume.
AWS Textract
Best for: AWS-native teams reading text, forms, and tables, with engineers to map the output.
Textract returns a graph of blocks for words, lines, tables, key-value pairs, and query answers, with geometry and confidence. Your code walks that graph and builds your data model. Prices stack by feature when a page needs forms, tables, and queries. See the best AWS Textract alternatives for more.
Reducto
Best for: teams that need a fully air-gapped deployment, or already parse with Reducto.
Reducto extracts against a JSON schema, with a Deep Extract mode for difficult documents. Citations are opt-in and turn off chunking when enabled. Full-VPC and air-gapped deployments are available on Enterprise plans.
How to test a document extraction API
- Collect 50 to 100 real documents, including scans, phone photos, long files, and the layouts that cause trouble today.
- Label the fields you act on, including every row of long tables.
- Run every candidate with the same fields and score each value on its own. Count missing rows as errors.
- Check how each API shows where a value came from, and how quickly a reviewer can correct it.
- Price the full run: parsing, extraction, and any extra features each page needs.
FAQ
What is the best API for document extraction?
Extend is the best fit for teams that build extraction into their own product or pipeline and need every value to be checkable. You define the fields in a JSON schema, and Extract returns JSON shaped like that schema, with a confidence score and, with citations on, a citation to the page and region for each value, so uncertain values can go to human review. Google Document AI and Azure Document Intelligence fit teams that want prebuilt models for common forms inside their cloud, AWS Textract fits AWS-native pipelines that map its output themselves, and Reducto fits teams that need a fully air-gapped deployment.
What is the difference between document parsing and document extraction?
Parsing turns the whole document into ordered content, such as markdown with tables and page positions, for RAG, search, or an LLM. Extraction returns only the fields you ask for, shaped like your schema. Extend's Extract API runs Parse first and then fills your schema from the parsed content, so extraction starts from a parser that scored 95.7% on RealDoc-Bench.
Do I need training data to extract fields from my documents?
Not with schema-based extraction. With Extend, you describe each field in a JSON schema and in plain-language rules, and extraction works on the first document. Custom models in the cloud document services are trained or tuned on labeled examples of your layouts, which pays off when layouts are fixed and volumes are high.
How do I know when an extracted value is wrong?
Use the confidence and source evidence the API returns. Extend returns a model confidence and an OCR confidence for each field, and with citations on, the page, polygon, and source text the value came from. Set a threshold, validate values in code, and send anything below it to human review, where a reviewer sees the value next to its source.
How much does a document extraction API cost?
Most APIs bill per page. Extend's Extract costs about 0.9 to 4 cents per page with parsing included on the Light and Performance engines, Operator-1 costs 5 cents per page plus parsing, and new accounts get 10,000 free credits. The cloud services bill per page by feature, model, or processor, so a page that needs several features is billed for each one.
Sources
Checked in November 2026:
- Extend: Extraction overview, Response format, RealDoc-Bench, LongArray-Extract, How credits work
- Google: Document AI, Document AI pricing
- Microsoft: Azure AI Document Intelligence
- AWS: Amazon Textract, Textract pricing
- Reducto: Extract, Pricing
More guides
- 10 best document parsing APIs in 2026
- Document extraction APIs ranked by accuracy
- Best API for parsing PDFs
Get an API key and run Extract on your own documents.

