OCRRouter

LlamaParse vs docTR

Pick LlamaParse when you need PDFs and office files turned into Markdown or JSON for RAG and can accept a hosted, proprietary API. Pick docTR when you need word-level OCR with coordinates that you run yourself under Apache-2.0, for example on invoices and receipts. The main split is output: LlamaParse gives structured documents, docTR gives only words and lines.

LlamaParsellamaindex/llamaparsedocTRmindee/doctr
TypeOCR APIOpen source
Price5 credits / page1 credit / page
Per 1,000 pages$5.00$1.00
Typical speed3.0 s / page0.9 s / page
Best forRAG ingestionWord-level OCR with positions
InputsPDF, images, DOCXPDF, images
Languages80+ languagesMainly Latin scripts
Max pages per request1,000500
Tables✓ YesNo
HandwritingNoNo
Math✓ YesNo
Bounding boxes✓ Yes✓ Yes
ConfidenceNo✓ Yes
FormsNoNo
Multilingual✓ YesNo
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 LlamaParse if

  • You want Markdown or JSON from mixed PDF and office documents for RAG, including inside LlamaIndex pipelines.
  • You want to trade cost for quality per job, from 1 credit per page in Fast mode up to 45 credits in Agentic Plus.
  • You want a free start: 10,000 credits per month, and re-parsing the same file within 48 hours costs nothing because results are cached.

Choose docTR if

  • You need word-level text with bounding boxes, in a nested page, block, line and word JSON structure.
  • You want to run OCR on your own CPU or NVIDIA GPU, with Apache-2.0 licensing, Docker images and no per-page fee.
  • Your team writes Python and wants to choose detection and recognition architectures, or train its own models, with a key information extraction predictor for invoices and receipts.

Key differences

LlamaParsedocTR
How you run itHosted API from LlamaIndex (LlamaCloud)Python library on PyTorch, run locally or in Docker
LicenceProprietaryApache-2.0
Price$1.25 per 1,000 credits; about $1.25 to $56 per 1,000 pages depending on mode; 10K free credits per monthFree and self-hosted; you pay for compute
Output formatsMarkdown, JSON, plain text, imagesJSON, plain text, bounding boxes
Tables and layoutTiers up to LLM-based agentic parsing for hard layoutsNo table, formula or Markdown output; returns words and lines only
HardwareNone to manage; runs in the hosted serviceCPU or NVIDIA GPU; GPU Docker images need CUDA 12.2 or newer on the host
Known failureHallucinates on low-quality scans with no confidence score (issue #483); invented transactions on bank statements in Accurate mode (issue #450); a job stuck in progress for days (issue #623)Split-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)

Sources

What each one is

LlamaParse

Document parser built for RAG pipelines, with several quality tiers.

LlamaParse details

docTR

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

docTR 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": "llamaindex/llamaparse","fallbacks": ["mindee/doctr"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

LlamaParse alternativesdocTR alternativesBest OCR models in 2026