OCRRouter

docTR vs Unstructured

Pick docTR when you need word-level OCR with coordinates that you run yourself in Python, for example on invoices and receipts that feed your own extraction. Pick Unstructured when you ingest mixed file types such as PDFs, Word, PowerPoint, HTML and emails for RAG. The main split is scope: docTR returns words and lines only, while Unstructured partitions whole files into typed elements.

docTRmindee/doctrUnstructuredunstructured/unstructured
TypeOpen sourceOCR API
Price1 credit / page20 credits / page
Per 1,000 pages$1.00$20.00
Typical speed0.9 s / page3.0 s / page
Best forWord-level OCR with positionsMixed file types into RAG
InputsPDF, imagesPDF, images, DOCX
LanguagesMainly Latin scriptsMultilingual
Max pages per request5001,000
TablesNo✓ Yes
HandwritingNoNo
MathNoNo
Bounding boxes✓ Yes✓ Yes
Confidence✓ YesNo
FormsNoNo
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 docTR if

  • You want a nested page, block, line and word structure with coordinates as JSON, from a library that runs locally on PyTorch.
  • You plan to train or swap your own models, with a choice of detection and recognition architectures and straight or rotated boxes.
  • You want one Apache-2.0 licence for everything, with ready Docker images, a Hugging Face Spaces demo and a key information extraction predictor.

Choose Unstructured if

  • You need PDFs, HTML, Word, PowerPoint, emails and images handled in one library, with many connectors.
  • You want a hosted API with the first 10,000 pages free, then $0.015 per page.
  • You want to choose a strategy (Auto, Fast, High-Res or VLM) to trade speed for quality, such as Fast on born-digital PDFs.

Key differences

docTRUnstructured
LicenceApache-2.0Apache-2.0 for the open-source library; proprietary for the hosted platform
How you run itLibrary in Python on PyTorch, plus Docker images. Self-hosted only.Self-host the open-source library or call the hosted API
PriceFree, self-hosted (you pay for compute)Hosted: first 10,000 pages free, then $0.015 per page. Business is custom. Open-source library is free.
Output formatsJSON, plain text, bounding boxesJSON, HTML, plain text, bounding boxes
TablesNo table, formula or Markdown output; words and lines onlyTable output exists, but the vendor's own benchmark shows table cell content at 0.426 for the open-source library versus 0.866 hosted
HardwareCPU or NVIDIA GPU; GPU Docker images need CUDA 12.2 or newer on the hostNot published
Known failuresSplit-crop merging misjoins readings across repeated characters (#2229); cropping images gives poorer results (#2007); ONNX export of MASTER truncates decoding steps (#2224)hi_res tables cut off at edges and drop first letters (#3262); table OCR ignores language settings (#1694); extra Tesseract pass on tables adds time (#2580); library sends usage telemetry by default

Sources

What each one is

docTR

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

docTR details

Unstructured

Document ETL for RAG. Partitions many file types into typed elements; open-source library too.

Unstructured 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": ["unstructured/unstructured"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

docTR alternativesUnstructured alternativesBest OCR models in 2026