Nanonets-OCR vs Unstructured
Pick Nanonets-OCR if you self-host and need printed business documents turned into Markdown, with signatures, watermarks, checkboxes and flowcharts (as Mermaid) tagged. Pick Unstructured if you ingest mixed file types (PDF, HTML, Word, PowerPoint, email) for RAG and want a hosted API or an Apache-2.0 library. Avoid either for hard cases: Nanonets-OCR was not trained on handwriting, and the open-source Unstructured library is weak on tables.
Nanonets-OCRnanonets/nanonets-ocr | Unstructuredunstructured/unstructured | |
|---|---|---|
| Type | Open source | OCR API |
| Price | 2 credits / page | 20 credits / page |
| Per 1,000 pages | $2.00 | $20.00 |
| Typical speed | 1.8 s / page | 3.0 s / page |
| Best for | Markdown with semantic tags | Mixed file types into RAG |
| Inputs | PDF, images | PDF, images, DOCX |
| Languages | Multilingual | Multilingual |
| Max pages per request | 500 | 1,000 |
| Tables | ✓ Yes | ✓ Yes |
| Handwriting | No | No |
| Math | ✓ Yes | No |
| Bounding boxes | No | ✓ Yes |
| Confidence | No | No |
| Forms | ✓ Yes | No |
| Multilingual | ✓ Yes | ✓ 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 Nanonets-OCR if
- It tags signatures, watermarks and image descriptions, and converts checkboxes to unicode symbols.
- It extracts flowcharts and org charts as Mermaid code and tells inline from display LaTeX equations.
- It is a 3B model you self-host for free, and the model card reports DocVQA 89.43 and ChartQA 78.56.
Choose Unstructured if
- It reads PDFs, HTML, Word, PowerPoint, emails and images in one library, with many connectors.
- You can start on the hosted API with 10,000 free pages, then pay $0.015 per page.
- Its strategies (Auto, Fast, High-Res, VLM) let you trade speed for quality, and Fast suits born-digital PDFs.
Key differences
| Nanonets-OCR | Unstructured | |
|---|---|---|
| What it is | Open image-to-Markdown model fine-tuned from Qwen2.5-VL-3B | Document ETL library and hosted platform that splits files into typed elements |
| How you run it | Self-host the weights from Hugging Face | Self-host the open-source library or use the hosted API |
| Licence | Not stated on the Nanonets-OCR2-3B model card | Apache-2.0 library; hosted platform is proprietary |
| Price | Free, you pay for compute | Library free; hosted first 10,000 pages free, then $0.015 per page |
| Output formats | Markdown, HTML, LaTeX, Mermaid | JSON, HTML, plain text, bounding boxes |
| Published benchmark | olmOCR-bench overall 69.5; DocVQA 89.43 (OCR2-3B, authors) | Table cell content 0.426 open-source vs 0.866 hosted (vendor's own) |
| Known failure | Not trained on handwriting and can hallucinate; handwriting test saw generation loops with CER up to 2100%; expects a fixed prompt | hi_res tables cut off at edges and drop first letters; table OCR ignores language settings; library sends telemetry by default |
Sources
- Nanonets-OCR2-3B model card
- Nanonets-OCR-s announcement
- HF discussion fixed prompt
- Pricing
- GitHub README
- Issue #3262
What each one is
Nanonets-OCR
Open image-to-Markdown model that tags tables, equations, signatures, watermarks and checkboxes.
Nanonets-OCR detailsUnstructured
Document ETL for RAG. Partitions many file types into typed elements; open-source library too.
Unstructured detailsTry both on your own file
Run the file once with each model and compare the output.
Use one, fall back to the other
{"model": "nanonets/nanonets-ocr","fallbacks": ["unstructured/unstructured"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
Nanonets-OCR alternativesUnstructured alternativesBest OCR models in 2026