OCRRouter

Docling vs Chandra

Pick Docling to ingest born-digital PDFs, Office files, HTML and emails into structured JSON for RAG, under an MIT licence with no GPU required. Pick Chandra to read scanned and multilingual pages, or pages with tables, forms and math, and return Markdown, HTML or JSON with bounding boxes. The main split: Docling is a format-converting library whose scan accuracy depends on the OCR engine you plug in, while Chandra is an OCR model built for the page image itself.

Doclingibm/doclingChandradatalab/chandra
TypeOpen sourceOpen source
Price2 credits / page2 credits / page
Per 1,000 pages$2.00$2.00
Typical speed2.2 s / page2.0 s / page
Best forStructured export for RAGComplex layouts and handwriting
InputsPDF, images, DOCXPDF, images
LanguagesLatin scripts, CJK40+ languages
Max pages per request500500
Tables✓ Yes✓ Yes
HandwritingNo✓ Yes
Math✓ Yes✓ Yes
Bounding boxes✓ Yes✓ Yes
ConfidenceNoNo
FormsNo✓ Yes
MultilingualNo✓ Yes
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 Docling if

  • You need one API for PDF, DOCX, PPTX, XLSX, HTML, EPUB, images, emails and XBRL.
  • You want lossless JSON that keeps layout, reading order and table structure for LangChain or LlamaIndex pipelines.
  • You want an MIT licence and CPU-only runs on macOS, Linux or Windows, with no revenue limit on commercial use.

Choose Chandra if

  • Your documents are scans in many languages: Chandra 2 averages 77.8% across 43 languages in the authors' benchmark.
  • You need per-block bounding boxes and labels, or pages full of tables, forms and math, converted to Markdown, HTML or JSON.
  • You would rather call a hosted API than run models yourself: Datalab charges $1, $3 or $7.50 per 1,000 pages, and the free tier gives $20 a month.

Key differences

DoclingChandra
LicenceMIT (individual models have their own licences)Code Apache-2.0; weights modified OpenRAIL-M, free for research, personal use and companies under $2M funding or revenue
How you run itPython library, self-hosted, CPU works and GPU speeds up model stagesSelf-host on a single NVIDIA GPU via vLLM, or use the hosted Datalab API
PriceFree, you pay for computeSelf-hosted free within licence terms; hosted API $1 (fast), $3 (balanced) or $7.50 (accurate) per 1,000 pages
Input formatsPDF, DOCX, PPTX, XLSX, HTML, EPUB, images, emails, XBRLPage images and PDFs to Markdown, HTML or JSON
OutputMarkdown, HTML, JSON, DocTags, plain textMarkdown, HTML, JSON, bounding boxes
BenchmarkNot publishedolmOCR-bench overall 85.8 (Chandra 2, authors' table)
Known failureVersion 2.143.1 drops words and numbers with full-page Tesseract OCR (issue #5254); reading order can merge neighbouring columns (issue #5132)Token-loop hallucinations on some Russian and Kazakh scans (issue #51); weak on Urdu (43.2%) and old scans (51.1 on olmOCR-bench)

Sources

What each one is

Docling

IBM's open-source document converter with a structured document model.

Docling details

Chandra

Datalab's OCR model that keeps layout and handles forms, tables and handwriting.

Chandra 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": "ibm/docling","fallbacks": ["datalab/chandra"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Docling alternativesChandra alternativesBest OCR models in 2026