OCRRouter

docTR vs Granite Docling

Pick docTR when you need word-level text with coordinates from invoices and receipts, and you plan to feed that into your own extraction or train your own models. Pick Granite Docling when you need whole documents converted to Markdown, HTML or LaTeX, especially English PDFs with tables, code and equations. The main split is output: docTR returns words and lines only, while Granite Docling returns document structure.

docTRmindee/doctrGranite Doclingibm/granite-docling
TypeOpen sourceOpen source
Price1 credit / page1 credit / page
Per 1,000 pages$1.00$1.00
Typical speed0.9 s / page1.5 s / page
Best forWord-level OCR with positionsSmall-model document conversion
InputsPDF, imagesPDF, images
LanguagesMainly Latin scriptsEnglish, experimental CJK and Arabic
Max pages per request500500
TablesNo✓ Yes
HandwritingNoNo
MathNo✓ Yes
Bounding boxes✓ Yes✓ Yes
Confidence✓ YesNo
FormsNoNo
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 docTR if

  • You want nested page, block, line and word output with coordinates as JSON, with straight or rotated boxes.
  • You want to choose your own detection and recognition architectures and train your own models in Python.
  • You want ready Docker images, a Hugging Face Spaces demo and a key information extraction predictor under Apache-2.0.

Choose Granite Docling if

  • You need Markdown, HTML, LaTeX or DocTags output from a full page, including tables, code and equations.
  • You want a 258M-parameter model that runs inside Docling on a CPU or a small GPU.
  • You work with English PDFs and want published numbers: table TEDS 0.97 on FinTabNet, equation F1 0.968 and code F1 0.988.

Key differences

docTRGranite Docling
What it isTwo-stage text detection and recognition library from Mindee, on PyTorch258M-parameter document conversion VLM from IBM that outputs DocTags for Docling
Licence and priceApache-2.0, free, self-hosted (you pay for compute)Apache-2.0, free, self-hosted (you pay for compute)
Output formatsJSON, plain text, bounding boxesDocTags, Markdown, HTML, LaTeX, bounding boxes
Tables and formulasNo table, formula or Markdown outputTable TEDS 0.97 on FinTabNet at 150dpi and equation F1 0.968, both reported by the authors
HardwareCPU or NVIDIA GPU; GPU Docker images need CUDA 12.2 or newer on the hostCPU or small GPU; on GPUs without bfloat16 such as T4, it may output only exclamation marks unless run in float32
LanguagesNot publishedEnglish primary; Japanese, Arabic and Chinese are experimental
Known failuresSplit-crop merging misjoins readings across repeated characters (issue #2229); cropping images gives poorer results (issue #2007); ONNX export of MASTER truncates decoding steps (issue #2224)Gets stuck in repetitive loops on page headings and invoices; vLLM can fail with a wte attribute error; Ollama on CPU can hallucinate from FP16 overflow

Sources

What each one is

docTR

Open-source OCR library from Mindee with separate text detection and recognition models.

docTR details

Granite Docling

Compact IBM vision model that converts pages to DocTags for the Docling pipeline.

Granite Docling 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": "mindee/doctr","fallbacks": ["ibm/granite-docling"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

docTR alternativesGranite Docling alternativesBest OCR models in 2026