OCRRouter

Surya vs Donut

Pick Surya if you need OCR, layout detection, reading order and bounding boxes for 90+ languages that works without training, including on a laptop. Pick Donut only if you have a narrow, fixed-layout document type such as receipts or forms and can fine-tune the model on your own data. The main difference is that Surya is a ready OCR toolkit, while Donut is a base model that must be trained before use.

Suryadatalab/suryaDonutnaver/donut
TypeOpen sourceOpen source
Price2 credits / page1 credit / page
Per 1,000 pages$2.00$1.00
Typical speed1.5 s / page1.0 s / page
Best forLayout and line-level OCRReceipt and form fields after fine-tuning
InputsPDF, imagesimages
Languages90+ languagesEnglish, Chinese, Japanese, Korean
Max pages per request500100
Tables✓ YesNo
HandwritingNoNo
MathNoNo
Bounding boxes✓ YesNo
ConfidenceNoNo
FormsNo✓ Yes
Multilingual✓ YesNo
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 Surya if

  • It works without training: one model returns layout labels, reading order, OCR, HTML tables and KaTeX math with per-block bounding boxes.
  • It scores 83.7% on olmOCR-bench (reported by the authors) with 689M parameters, and runs at 4.52 pages/s at 192 DPI on one H100 with vLLM.
  • It runs on CPU and Apple Silicon through llama.cpp, with peak memory of about 4-6 GB on an M4 Max.

Choose Donut if

  • It needs no separate OCR step: it maps a document image straight to structured JSON, which suits receipt and form field extraction after fine-tuning.
  • It is MIT licensed, with no revenue or funding cap, and loads in Hugging Face Transformers.
  • A Hacker News practitioner reports that about 200 documents of fine-tuning can reach human-level accuracy on narrow data.

Key differences

SuryaDonut
LicenceCode Apache-2.0; weights under a modified AI Pubs Open Rail-M, free for research, personal use and companies under $5M funding/revenueMIT
Ready to useYes, runs as a client against a vLLM or llama.cpp serverNo, the base checkpoint is pretrain-only and must be fine-tuned first
OutputJSON, HTML, LaTeX, bounding boxes, plain textJSON, plain text
HardwareNVIDIA GPU via vLLM, or CPU/Apple Silicon via llama.cpp; peak memory about 4.3-5.9 GB on an M4 MaxNot published
BenchmarksolmOCR-bench 83.7%, OmniParseBench 85.9, 91-language pass rate 74.9% (all by the authors)Not published
Large pages and small textNot publishedMisses tiny text in large images because of input resolution limits
Known failureMultilingual tables score 58.1, and Surya 2.5 table output lacks row/column geometry; not for handwriting or photos of natural scenesA Hacker News user found results on personal documents did not match the promised scores; Transformers v5 dropped image-to-text pipeline support, so you need direct loading or v4

Sources

What each one is

Surya

Open-source OCR toolkit with line detection, layout analysis, reading order and tables.

Surya 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": "datalab/surya","fallbacks": ["naver/donut"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Surya alternativesDonut alternativesBest OCR models in 2026