Amazon Textract vs Surya
Pick Amazon Textract for English forms, invoices and large scanned PDF batches if you already run on AWS and want a managed API with per-page pricing. Pick Surya for local or self-hosted OCR with layout, reading order and bounding boxes across 90+ languages, when you can run your own inference server. The main split is language coverage and deployment: Textract is a hosted API limited to six Latin-script languages, while Surya is open source and self-hosted.
Amazon Textractaws/textract | Suryadatalab/surya | |
|---|---|---|
| Type | OCR API | Open source |
| Price | 25 credits / page | 2 credits / page |
| Per 1,000 pages | $25.00 | $2.00 |
| Typical speed | 1.2 s / page | 1.5 s / page |
| Best for | Forms and key-value extraction | Layout and line-level OCR |
| Inputs | PDF, images | PDF, images |
| Languages | 6 languages | 90+ languages |
| Max pages per request | 3,000 | 500 |
| Tables | ✓ Yes | ✓ Yes |
| Handwriting | ✓ Yes | No |
| Math | No | No |
| Bounding boxes | ✓ Yes | ✓ Yes |
| Confidence | ✓ Yes | No |
| Forms | ✓ Yes | No |
| Multilingual | No | ✓ Yes |
| On OCRRouter | Available | Available |
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
- Text detection costs $0.0015 per page ($1.50 per 1,000 pages) in US West (Oregon) for the first 1M pages a month, with no servers to run.
- The async API takes PDFs up to 500 MB and 3,000 pages, which suits large scanned batches.
- It extracts forms ($0.05/page), tables ($0.015/page) and Queries ($0.015/page), and returns word and line geometry with confidence scores.
Choose Surya if
- It covers 90+ languages, while Textract text detection supports only English, French, German, Italian, Portuguese and Spanish.
- Code is Apache-2.0 and the software is free to self-host, so you pay only for compute, as long as your funding or revenue stays under $5M.
- One 689M-parameter model returns layout labels, reading order, OCR, HTML tables and KaTeX math with per-block bounding boxes, and it can run on CPU or Apple Silicon through llama.cpp.
Key differences
| Amazon Textract | Surya | |
|---|---|---|
| Deployment | Hosted AWS API | Self-host; needs a separate vLLM or llama.cpp inference server |
| Licence | Proprietary | Code Apache-2.0; weights under modified AI Pubs Open Rail-M, free below $5M funding/revenue |
| Price | Text detection $0.0015/page; Tables $0.015; Forms $0.05; Queries $0.015 (first 1M pages/month, US West Oregon) | Free software; you pay for compute; commercial licence needed above $5M revenue or funding |
| Languages | Text detection in 6 Latin-script languages; handwriting and Queries English only; vertical Japanese and Chinese not supported | 90+ languages, but only 21 of 91 reach a 90% pass rate and multilingual tables score 58.1 |
| Tables | 80.9% on RD-TableBench (independent) | Surya 2.5 table output lacks row/column geometry; simple table mode errors and needs the older Surya 2 checkpoint |
| Output formats | JSON, plain text, bounding boxes | JSON, HTML, LaTeX, bounding boxes, plain text |
| Limits and speed | Sync API takes one page; async handles up to 3,000 pages | 4.52 pages/s at 192 DPI on one H100 with vLLM; 0.198 pages/s on an M4 Max with llama.cpp at 96 DPI |
Sources
- Textract pricing
- Textract quotas
- Reducto RD-TableBench
- Surya GitHub README
- Datalab pricing and license FAQ
What each one is
Amazon Textract
AWS OCR with form key-value pairs, tables and per-word confidence scores.
Amazon Textract detailsSurya
Open-source OCR toolkit with line detection, layout analysis, reading order and tables.
Surya detailsTry both on your own file
Run the file once with each model and compare the output.
Use one, fall back to the other
{"model": "aws/textract","fallbacks": ["datalab/surya"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
Amazon Textract alternativesSurya alternativesBest OCR models in 2026