DOCUMENT AI · FOR EVERY TEAM

Turn invoices, IDs and forms into structured JSON.

A document extraction API that reads key-value fields and full tables, then returns clean JSON with named fields and bounding boxes. Efficient by design, fewer server cycles and less data moved per page, so accurate extraction stays affordable for startups, integrators and enterprises alike.

Key-value + table extraction Clean JSON with bounding boxes Priced for every team
SUPPORTED DOCUMENT TYPES

Pre-trained for the documents you process every day

Invoices

Bank statements

Receipts

KYC forms

Contracts

Payslips

Lab reports

ID documents

Don't see your document type? Document Analysis supports custom rule-based review, available on committed plans. Read more →

EXAMPLE RESPONSE

Clean JSON, ready for your ERP / DB

python
result = client.extraction.basic(
    file="bank_statement.pdf",
    document_type="bank_statement"
)

print(result.fields)
response.json
{
  "account_holder": "Rakesh Sharma",
  "account_number": "XXXX1234",
  "bank": "HDFC Bank",
  "ifsc": "HDFC0000123",
  "period": {
    "from": "2026-04-01",
    "to": "2026-05-31"
  },
  "opening_balance": 45000.00,
  "closing_balance": 82340.50,
  "transactions": [...112 records]
}
USE CASES

Where document extraction ships

AP automation

Vendor invoice → JSON → ERP. Cuts manual data entry. Pairs with Tally / Zoho / SAP.

Lending underwriting

Bank statement extraction → 60+ data points for credit scoring. Sub-30-sec turnaround.

Expense management

Mobile-captured receipt → structured expense entry. T&E automation made simple.

CKYC onboarding

Pre-fill customer onboarding from KYC document. CKYC 2.0-ready.

Contract intake

Pull party names, dates, payment terms from contracts before legal review.

Insurance claims

Hospital bill structure → claim line items. Speed up TPA processing.

PRICING

Extraction: 1 credit per page. Pro: 2.

One credit is one extracted page. Extraction draws 1 credit per page and Extraction Pro draws 2, the same weight regardless of document type or field count, with multi-page documents counted per page. Pay as you go at per extracted page with no commitment, or commit to a monthly minimum for a lower rate — you pay the greater of your minimum and what you actually processed, billed after you process. Pricing shown in your local currency, change country in the top-right to switch.

All prices exclude tax. In India, GST is added at the prevailing rate.All prices exclude VAT, sales tax and any withholding tax.

See plans →

Affordable to all

The credit weight stays low because the extraction pipeline is optimized for time and space first, fewer server cycles and less data moved and stored per page. The cost savings follow the efficiency, with no drop in output quality, so any team can run production extraction. See the full Document AI API range →

Extraction Pro

Extraction Pro adds confidence scores, validation rules, and guardrails, for fintech and regulated workflows where false positives are costly. Same JSON contract, more assurance per field, at 2 credits per page instead of 1. See Extraction Pro →

FAQ

Common questions

What does the document extraction API do?
It reads documents and returns their data as structured JSON. The API pulls key-value fields and full tables from documents such as invoices, IDs, and forms, and returns clean JSON with named fields and bounding boxes, so the output drops straight into an ERP or database without manual data entry.
How do I extract data from an invoice or PDF into JSON?
You send the file along with its document type, and the API returns the extracted fields as JSON. For a bank statement, for example, it returns named fields such as account holder, account number, opening and closing balances, and the full list of transactions. Multi-page PDFs are processed and counted per page.
Which document types can it extract out of the box?
The API is pre-trained for invoices, bank statements, receipts, KYC forms, contracts, payslips, lab reports, and ID documents. You choose the document type and it returns the relevant fields for that document. For types outside this set, Document Analysis supports custom rule-based review, available on committed plans.
Does it extract tables and line items, or only single fields?
It extracts both key-value fields and full tables. Multi-row data such as invoice line items or bank-statement transactions is returned as an array of records in the same JSON response, alongside the top-level named fields.
What format is the extracted data returned in?
Clean JSON with named fields and bounding boxes. Each extracted value comes back under a named field, and fields carry the bounding box of where they were found on the page, so results are ready for an ERP or database and easy to verify against the source document.
How is the document extraction API priced?
Per extracted page. One credit is one extracted page: Extraction draws 1 credit per page and Extraction Pro draws 2, regardless of document type or the number of fields extracted, and multi-page documents are counted per page. Pay as you go with no minimum — a month with no usage costs nothing — or commit to a monthly minimum for a lower rate: you pay the greater of your minimum and what you actually processed, billed after you process. Nothing is bought in advance, nothing expires, and there is no overage rate. See the Document AI pricing page for current rates.
What does Extraction Pro add?
Extraction Pro adds confidence scores, validation rules, and guardrails on top of the same JSON contract. It targets fintech and regulated workflows where false positives are costly, giving more assurance per field without changing the field structure, at 2 credits per page instead of 1.
How can I test the document extraction API before integrating?
You can try it with the free trial, which gives you 1,000 credits for 30 days with no card and no integration required. Upload a sample document and see the real JSON output, then use the API reference to wire it into your workflow.
THE FULL TOOLKIT

Explore the rest of Document AI

Cloud APIs for extraction and analysis, on-premise for OCR and masking.

Test document extraction with the free trial

1,000 free credits, no card. Upload a sample, see real JSON output.