Docling vs Surya
Pick Docling to ingest born-digital PDFs and Office files into RAG pipelines, because it parses many formats and exports lossless JSON with layout and table structure. Pick Surya for OCR on scans, with layout, reading order and bounding boxes in 90+ languages, running locally on a laptop or GPU. Check the licence first: Surya's weights need a commercial licence above $5M funding or revenue, while Docling is MIT.
Doclingibm/docling | Suryadatalab/surya | |
|---|---|---|
| Type | Open source | Open source |
| Price | 2 credits / page | 2 credits / page |
| Per 1,000 pages | $2.00 | $2.00 |
| Typical speed | 2.2 s / page | 1.5 s / page |
| Best for | Structured export for RAG | Layout and line-level OCR |
| Inputs | PDF, images, DOCX | PDF, images |
| Languages | Latin scripts, CJK | 90+ languages |
| Max pages per request | 500 | 500 |
| Tables | ✓ Yes | ✓ Yes |
| Handwriting | No | No |
| Math | ✓ Yes | No |
| Bounding boxes | ✓ Yes | ✓ Yes |
| Confidence | No | No |
| Forms | No | 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 Docling if
- You need one API for PDF, DOCX, PPTX, XLSX, HTML, EPUB, images, emails and XBRL.
- You want lossless JSON export that keeps layout, reading order and table structure for downstream tools.
- You want an MIT-licensed library with LangChain or LlamaIndex integrations and a choice of OCR backends (EasyOCR, Tesseract, RapidOCR) or the 258M GraniteDocling VLM.
Choose Surya if
- You need OCR with layout labels, reading order and per-block bounding boxes for 90+ languages from one 689M model.
- You want local OCR on a laptop: it runs on CPU or Apple Silicon via llama.cpp, with peak memory of about 4-6 GB on an M4 Max.
- You want a published score: 83.7% on olmOCR-bench (Surya 2.5, reported by the authors), and 4.52 pages/s at 192 DPI on one H100 with vLLM.
Key differences
| Docling | Surya | |
|---|---|---|
| Licence | MIT (individual models have their own licences) | Code Apache-2.0; weights under a modified AI Pubs Open Rail-M. Free for research, personal use and companies under $5M funding or revenue |
| How you run it | Python library, runs locally on macOS, Linux and Windows. CPU works, GPU speeds up model stages | Lightweight client that needs a separately running vLLM or llama.cpp inference server. NVIDIA GPU, CPU or Apple Silicon |
| Input types | PDF, DOCX, PPTX, XLSX, HTML, EPUB, images, emails and XBRL | Document images and scans. Not for photos or natural scenes |
| Output formats | Markdown, HTML, JSON, DocTags, plain text | JSON, HTML, LaTeX, bounding boxes, plain text |
| Benchmarks | Not published | olmOCR-bench 83.7%, OmniParseBench 85.9, 91-language pass rate 74.9% (Surya 2.5, all reported by the authors) |
| Scan accuracy | Depends on the OCR engine you plug in, not Docling itself | OCR is built into the model. The README sends hard documents (handwriting, complex tables, math) to the hosted Datalab API |
| Known failure | Version 2.143.1 drops words and numbers with full-page Tesseract OCR (issue #5254). Reading order can merge neighbouring columns (issue #5132) | Surya 2.5 table output lacks row and column geometry. Multilingual tables score 58.1, and only 21 of 91 languages reach a 90% pass rate |
Sources
- Docling GitHub README
- Supported formats
- Issue #5254 OCR regression
- Issue #5132 reading order
- Surya GitHub README
- Datalab pricing and license FAQ
What each one is
Surya
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.
PDF, PNG, JPG, WebP, HEIC. Up to 20 MB each, 10 files.No file?
Use one, fall back to the other
{"model": "ibm/docling","fallbacks": ["datalab/surya"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
Docling vs dots.ocrDocling vs ChandraTesseract vs SuryaMinerU vs SuryaLlamaParse vs DoclingPaddleOCR-VL vs DoclingMinerU vs DoclingDocling vs Tesseract
Docling alternativesSurya alternativesBest OCR models in 2026