OpenDocRouter: Every Document Parser Behind One API
If you’re compiling a shortlist of the best AI tools 2026 for your RAG or document-processing pipeline, you already know the problem LlamaIndex is trying to solve: there are too many document-parsing models, and they change every month. A quick search on Hugging Face for “ocr” returns thousands of models. Frontier labs ship a new document-reading model nearly every month, sometimes at painful price points. Every single one of them requires the same tedious setup — figuring out prompts, handling rate limits, managing deployments and costs, and re-benchmarking every time something new drops.
On October 7, 2026, LlamaIndex launched OpenDocRouter, a platform that turns that recurring chore into a single API call. It’s a document-to-Markdown parsing service where each model runs behind a “versioned recipe” — a bundle of prompts, processing steps, and settings that LlamaIndex maintains — so you can switch models by changing one string instead of rewriting your integration.
Here’s the entire API surface, and it’s honestly hard to make it simpler than this:
curl https://www.opendocrouter.ai/v1/parse \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "opendatalab/mineru2.5-pro",
"document": { "url": "https://arxiv.org/pdf/1706.03762" },
"layout": true
}'
The API accepts PDFs, PNG, JPEG, or URLs to those formats. You can toggle between synchronous responses (returned directly, up to 50 pages) and asynchronous jobs that you poll, and a single request can handle up to 500 pages or 50 MB.
The document-parsing problem, stated plainly
Before OpenDocRouter, this is what “use the latest OCR model” actually meant in a production codebase. You find a model on Hugging Face or a frontier API. You read its card to figure out the prompt format — because almost none of them agree on how you ask for tables, or reading order, or bounding boxes. You stand up a deployment or wire up the vendor SDK. You handle rate limits and retries. You write a benchmark harness to compare it against whatever you’re currently running. Then, two weeks later, a better model ships and you do it all again.
Multiply that by a team that cares about accuracy on financial tables, legal scans, and technical diagrams all at once, and you end up with a homegrown router and a pile of glue code that nobody wants to own. That glue is exactly what OpenDocRouter sells you, pre-built and maintained. Each model runs a versioned recipe — prompts, processing, and settings — that LlamaIndex calibrates against ParseBench, their document-parsing benchmark. When a new model ships, LlamaIndex runs it through ParseBench, calibrates the prompt and cost, and adds it to the roster. Your integration doesn’t change; your model string does.
ParseBench is worth understanding because it’s what makes the pricing table honest. Rather than quoting each vendor’s raw token price, LlamaIndex measures every model’s cost-per-thousand-pages on a fixed benchmark, so the numbers reflect end-to-end parsing cost (tokens in, Markdown out) rather than an abstract per-token figure that hides prompt overhead. It’s the same reason the quality claims carry weight: the roster was selected to cover “every corner” of the benchmark, not just the models that look good on a leaderboard.
Open-source and frontier models under one roof
The most useful design decision in OpenDocRouter is that it does not pick sides in the open source AI models versus frontier-models argument — it hosts both and lets price and quality decide. At launch the roster covered ten models across the spectrum:
Frontier models: Claude Opus 5.5, Gemini 3 Flash, Gemini 3.8 Flash, GPT-5.6 Terra, GPT-6 Luna.
Open-source models: Infinity-Parser2-Flash, MinerU2.5-Pro, TeleOCR, dots.mocr, PaddleOCR-VL-1.6.
That open-source tier is the part that matters for anyone running a high-volume pipeline. MinerU2.5-Pro parses 1,000 pages for $0.86. GPT-6 Luna, the cheapest frontier option, is $0.80 per 1,000 pages — competitive, but it’s a proprietary model you’re locked into. For most production RAG workloads, the open-source models are the boring, correct default, and having them one model string away from a frontier model means you can route the hard cases to Claude Opus 5.5 ($48.82 per 1k pages) only when you actually need it.
Every model is benchmarked on ParseBench, LlamaIndex’s document-parsing benchmark, in both quality and cost. That’s a meaningful detail: the price per model is not just the token price, it’s a measured cost-per-thousand-pages on a real benchmark, so the numbers in the pricing table are actually comparable rather than vendor-supplied fiction.
Layout, bounding boxes, and the grounding engine
Different parsing models make wildly different guarantees about bounding boxes and layout. Some output boxes natively, some need prompting, and some can’t do it at all. OpenDocRouter closes that gap with a grounding engine it can apply to any model. Set layout: true in a request and you get Markdown with grounded bounding boxes and layout elements in reading order, using a consistent set of layout classes across every model: title, section_header, text, list_item, table, picture, chart, formula, caption, footnote, page_header, page_footer, code, form, and key_value.
That consistency is the quiet killer feature. If you’ve ever wired up a table-extraction step that produces different output shapes depending on which OCR model sits underneath, you know why a stable, cross-model layout vocabulary matters. It means the downstream chunking and indexing code doesn’t have to be rewritten every time you swap models.
Pricing, and how it compares
Pricing is pure token-based billing, which is refreshingly transparent. New accounts get $5 in credits, paid top-ups start at $10 with a 5% processing fee, enabling layout adds $0.20 per million tokens, and failed pages are not charged. As of the October 7, 2026 launch:
| Model | Input ($/1M) | Cached input ($/1M) | Output ($/1M) | Cost per 1k pages (ParseBench) |
|---|---|---|---|---|
| Claude Opus 5.5 | $4.00 | $0.20 | $20.00 | $48.82 |
| Gemini 3 Flash | $0.50 | $0.05 | $3.00 | $19.67 |
| Gemini 3.8 Flash | $0.75 | $0.08 | $3.75 | $5.91 |
| GPT-5.6 Terra | $2.00 | $0.20 | $12.00 | $19.89 |
| GPT-6 Luna | $0.10 | $0.01 | $0.50 | $0.80 |
| Infinity-Parser2-Flash | $0.24 | — | $1.16 | $4.34 |
| MinerU2.5-Pro | $0.08 | — | $0.39 | $0.86 |
| TeleOCR | $0.25 | — | $1.22 | $2.70 |
| dots.mocr | $0.31 | — | $1.53 | $3.97 |
| PaddleOCR-VL-1.6 | $0.24 | — | $1.20 | $2.17 |
The spread is instructive: Claude Opus 5.5 is roughly 57 times more expensive per thousand pages than MinerU2.5-Pro. For a large, mostly-clean corpus of digital PDFs, the open-source models are the obvious choice. For messy scans, financial tables, or documents where a single misparsed figure is costly, the frontier tier earns its keep.
Routing in practice
Because switching models is a one-string change, the natural pattern is a two-tier router. Parse everything with a cheap open-source model, detect the failures (missing tables, garbled columns, low-confidence layout), and re-route only those to a frontier model. The logic is a few lines in any language:
import requests
def parse(document_url: str, model: str, layout: bool = False):
r = requests.post(
"https://www.opendocrouter.ai/v1/parse",
headers={"Authorization": f"Bearer {API_KEY}"},
json={"model": model, "document": {"url": document_url}, "layout": layout},
)
return r.json()
# First pass: cheap and fast
result = parse(doc_url, "opendatalab/mineru2.5-pro", layout=True)
# Escalate the hard cases to a frontier model
if result.get("warnings") or has_missing_tables(result):
result = parse(doc_url, "claude-opus-5.5", layout=True)
The layout: true flag is what makes the two passes compatible: both models emit the same layout classes (table, formula, caption, and so on), so the downstream indexer can consume either output without branching. That’s the detail that turns a nice demo into something you can actually ship.
OpenDocRouter vs. LlamaParse
If you know LlamaIndex, your first question is probably how this differs from LlamaParse, their existing document-parsing product. The two are complementary, not competing. LlamaParse is the managed, enterprise-grade platform: hand-tuned parsing tiers, enterprise controls, self-hosted deployments, and higher-level APIs like schema extraction and indexing. OpenDocRouter is the lighter-weight layer for quickly hosting the latest models and routing between them, paying only for exactly what you use. If you need a governed, auditable parsing platform, use LlamaParse. If you need fast, pay-per-use access to the newest models with a one-line switch, use OpenDocRouter.
On the tooling side, the API is the primary interface, and there’s an official TypeScript SDK (github.com/run-llama/opendocrouter-ts) for the Node crowd, with the REST endpoint staying model-agnostic across both the open-source and frontier tiers. Because the whole thing is just HTTP with a Bearer token, it drops into existing RAG pipelines — LlamaIndex, LangChain, or a plain fetch — without a new dependency tree.
Who should use this
- Teams whose RAG or document pipeline currently hard-codes one OCR model and has to re-do that work every time something better ships.
- Anyone who wants to benchmark parser quality and cost on real documents without standing up and maintaining a dozen model deployments.
- Builders who need layout and bounding boxes consistently across models, so their downstream indexing is stable.
- High-volume pipelines that can lean on the cheap open-source tier and escalate to a frontier model only for the hard 5% of documents.
- Developers who want a stable, cross-model layout vocabulary so their chunking and indexing code doesn’t need rewriting on every model swap.
Who should NOT use this
- Teams with strict data-residency or self-hosting requirements — this is a hosted API, and documents travel to LlamaIndex’s infrastructure.
- Enterprises that need schema extraction, indexing, or deep governance controls out of the box; that’s LlamaParse’s job, not OpenDocRouter’s.
- Anyone parsing documents well over the 500-page or 50 MB per-request ceiling.
- Teams that want to fine-tune or fully control the underlying model weights — you get LlamaIndex’s versioned recipes, not raw model access.
Limitations and caveats
OpenDocRouter is brand new (launched October 7, 2026), so a few things are worth flagging. It’s a hosted service with a request ceiling of 500 pages or 50 MB, which rules out some large-corpus batch jobs unless you chunk them. The “versioned recipe” approach means you’re trusting LlamaIndex to prompt and configure each model correctly — a real convenience, but also an abstraction you can’t see through when something parses badly. The model roster will drift as new models ship, which is the entire point, but it also means your cost and quality characteristics can shift under you as recipes are recalibrated on ParseBench. Finally, this is a proprietary platform, not open-source software; the open-source models are hosted behind a closed API, so if you need to own the whole stack you’ll still be running MinerU or PaddleOCR yourself. For the common case — getting document parsing into production without becoming an OCR infrastructure engineer — OpenDocRouter is one of the cleaner launches I’ve seen this year.