OCRRouter

Amazon Textract vs GOT-OCR 2.0

Pick Amazon Textract for English forms, invoices and large scanned PDF batches on AWS, where you want a managed API and per-page pricing. Pick GOT-OCR 2.0 for formulas, sheet music, chemical structures or English and Chinese documents that you can run on your own GPU. The main split is hosted API with language limits versus a self-hosted model with a wider range of outputs and known failure modes.

Amazon Textractaws/textractGOT-OCR 2.0stepfun/got-ocr-2
TypeOCR APIOpen source
Price25 credits / page1 credit / page
Per 1,000 pages$25.00$1.00
Typical speed1.2 s / page1.5 s / page
Best forForms and key-value extractionFormatted text, formulas and charts
InputsPDF, imagesimages
Languages6 languagesChinese, English
Max pages per request3,000100
Tables✓ Yes✓ Yes
Handwriting✓ YesNo
MathNo✓ Yes
Bounding boxes✓ Yes✓ Yes
Confidence✓ YesNo
Forms✓ YesNo
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 is a hosted AWS API, so there is no model to host, and basic text detection costs $0.0015 per page ($1.50 per 1,000 pages).
  • The async API handles 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 GOT-OCR 2.0 if

  • It reads formulas, charts, sheet music and chemical structures, and outputs Markdown, LaTeX, TikZ, SMILES and kern.
  • It is free to run on your own hardware, and the code is Apache-2.0, so you pay only for compute.
  • It supports region OCR guided by box coordinates or color, and it covers English and Chinese documents.

Key differences

Amazon TextractGOT-OCR 2.0
How you run itHosted AWS APISelf-hosted, available in Hugging Face Transformers
LicenceProprietaryCode Apache-2.0; training data CC BY-NC 4.0
PriceUS West (Oregon), first 1M pages/month: text $0.0015/page, Tables $0.015, Forms $0.05, Queries $0.015Free; you pay for compute
Output formatsJSON, plain text, bounding boxesPlain text, Markdown, LaTeX, TikZ, SMILES, kern
LanguagesText detection: English, French, German, Italian, Portuguese, Spanish. Handwriting and Queries: English only. Vertical Japanese and Chinese not supportedEnglish and Chinese documents
Published benchmark80.9% on RD-TableBench table accuracy (independent)Not published
Known failure modesSync API takes one pageOutput can loop characters midway (issue #226), returns wrong text on images with no text (issue #235), and format mode is much worse than plain OCR mode (issue #317)

Sources

What each one is

Amazon Textract

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

Amazon Textract details

GOT-OCR 2.0

Unified OCR model that reads plain text, tables, formulas, sheet music and charts.

GOT-OCR 2.0 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": ["stepfun/got-ocr-2"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Amazon Textract alternativesGOT-OCR 2.0 alternativesBest OCR models in 2026