OCRRouter

olmOCR vs Nanonets-OCR

Pick olmOCR for large-scale PDF to Markdown, academic papers with equations, and pages that mix print and handwriting. It scores 82.4 on olmOCR-Bench against 69.5 for Nanonets-OCR2-3B. Pick Nanonets-OCR for printed business documents with signatures, watermarks and checkboxes, or flowcharts you want as Mermaid, and when you have a GPU smaller than 12 GB.

olmOCRallenai/olmocrNanonets-OCRnanonets/nanonets-ocr
TypeOpen sourceOpen source
Price2 credits / page2 credits / page
Per 1,000 pages$2.00$2.00
Typical speed1.5 s / page1.8 s / page
Best forBulk PDF to text for datasetsMarkdown with semantic tags
InputsPDF, imagesPDF, images
LanguagesMainly EnglishMultilingual
Max pages per request1,000500
Tables✓ Yes✓ Yes
Handwriting✓ YesNo
Math✓ Yes✓ Yes
Bounding boxesNoNo
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 olmOCR if

  • It scores 82.4 on olmOCR-Bench, while Nanonets-OCR2-3B scores 69.5 on the same benchmark.
  • It handles equations, tables and handwriting, and it strips headers and footers in natural reading order.
  • It is Apache-2.0 for the toolkit, with weights, training data and code released, and Ai2 puts self-hosted cost under $200 per million pages.

Choose Nanonets-OCR if

  • It tags signatures, watermarks and image descriptions, and converts checkboxes to unicode symbols, which suits business forms.
  • It extracts flowcharts and org charts as Mermaid code and can output HTML and LaTeX as well as Markdown.
  • It is a 3B model that scores 89.43 on DocVQA, so it is the lighter option to self-host, and the weights are free.

Key differences

olmOCRNanonets-OCR
Model size7B3B (Hugging Face lists about 4B params)
LicenceApache-2.0 (toolkit)Not stated on the Nanonets-OCR2-3B model card; base model is Qwen2.5-VL-3B
How you run itSelf-host with vLLM on an NVIDIA GPU with at least 12 GB VRAM, or call third-party hosted endpointsSelf-host the weights from Hugging Face only
PriceSelf-hosted under $200 per million pages (Ai2). DeepInfra hosted: $0.09 input / $0.19 output per million tokensFree to self-host; you pay for compute
Output formatsMarkdown, JSONMarkdown, HTML, LaTeX, Mermaid
olmOCR-Bench overall82.469.5 (OCR2-3B)
HandwritingHandles handwriting, including mixed printed and handwritten pagesNot trained on handwriting and can hallucinate; one test saw generation loops with CER up to 2100%
Known failureOut of memory on a 12 GB GPU, tends to get stuck on the last few pages, unreliable image bounding boxesHallucinates with prompts other than its fixed training prompt

Sources

What each one is

olmOCR

Open-source vision model from Ai2 (often searched as olm ocr) that turns PDFs into clean, reading-order text. Latest release: olmOCR 2.

olmOCR details

Nanonets-OCR

Open image-to-Markdown model that tags tables, equations, signatures, watermarks and checkboxes.

Nanonets-OCR 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": "allenai/olmocr","fallbacks": ["nanonets/nanonets-ocr"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

olmOCR alternativesNanonets-OCR alternativesBest OCR models in 2026