OCRRouter

Amazon Textract vs Donut

Pick Amazon Textract if you run on AWS and need English forms, invoices or tables from large scanned PDFs through a managed API. Pick Donut if you have a narrow, fixed-layout document type such as receipts, can fine-tune a model, and want an MIT-licensed model you host yourself. The main split is a ready-to-call paid service versus a free base model that does nothing useful until you train it.

Amazon Textractaws/textractDonutnaver/donut
TypeOCR APIOpen source
Price25 credits / page1 credit / page
Per 1,000 pages$25.00$1.00
Typical speed1.2 s / page1.0 s / page
Best forForms and key-value extractionReceipt and form fields after fine-tuning
InputsPDF, imagesimages
Languages6 languagesEnglish, Chinese, Japanese, Korean
Max pages per request3,000100
Tables✓ YesNo
Handwriting✓ YesNo
MathNoNo
Bounding boxes✓ YesNo
Confidence✓ YesNo
Forms✓ Yes✓ Yes
MultilingualNoNo
On OCRRouterAvailableAvailable

Prices are what you pay on OCRRouter. Speed is the provider's typical figure, not a benchmark we ran.

Which to choose

Choose Amazon Textract if

  • It works through the AWS API with no training, and basic text detection costs $1.50 per 1,000 pages.
  • The async API takes PDFs up to 500 MB and 3,000 pages, which suits large scanned batches.
  • It extracts tables, forms and queries, and returns word and line geometry with confidence scores.

Choose Donut if

  • It is MIT licensed and free, so you pay only for your own compute and keep documents on your own infrastructure.
  • It maps document images straight to structured JSON with no separate OCR step, which suits receipt and form field extraction after fine-tuning.
  • It can be fine-tuned for classification or parsing on fixed-layout documents, and one HN practitioner reports about 200 documents can reach human-level accuracy on narrow data.

Key differences

Amazon TextractDonut
How you run itHosted AWS APISelf-hosted model
LicenceProprietaryMIT
PriceUS West (Oregon), first 1M pages/month: text $0.0015/page, Tables $0.015, Forms $0.05, Queries $0.015Free, you pay for compute
Ready to useYes, call the APINo, the base checkpoint is pretrain-only and must be fine-tuned
LanguagesText detection: English, French, German, Italian, Portuguese, Spanish. Handwriting and Queries: English onlyNot published
Table benchmark80.9% on RD-TableBench (independent)Not published
Known failureVertical Japanese and Chinese text is not supported; the sync API takes one pageMisses tiny text in large images because of input resolution limits; one HN user's results on personal documents did not match the promised scores

Sources

What each one is

Amazon Textract

AWS OCR with form key-value pairs, tables and per-word confidence scores.

Amazon Textract details

Donut

OCR-free document understanding model. Fine-tuned for receipts, forms and document Q&A.

Donut details

Try both on your own file

Run the file once with each model and compare the output.

PDF, PNG, JPG, WebP, HEIC. Up to 20 MB each, 10 files.No file?

Use one, fall back to the other

{"model": "aws/textract","fallbacks": ["naver/donut"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Amazon Textract alternativesDonut alternativesBest OCR models in 2026