
MinerU
Document parsing for LLM workflows, OCR, and agent reading.
Replaces Llamaparse, Reducto

Who it's for
MinerU converts local document libraries into LLM-ready content with stable per-block locators that allow retrieval systems to cite exact source positions. The document library API indexes parsed results and supports search without re-parsing files already in the cache.
Your source documents are already in plain text or structured JSON formats. MinerU's value is in converting unstructured files; if your pipeline already has clean text, a lighter extraction layer is simpler.
Agents can call `mineru parse --json` to read a document page by page using continuation locators, which avoids loading large files into context. The V1 HTTP API and Python SDK both support the document library, making it usable from any language that can call HTTP.
Your agent needs to process documents in formats MinerU does not support, or the documents are served by a remote URL that requires browser authentication. MinerU reads local files and explicitly configured remote sources.
The Standard and Advanced tiers handle academic paper layouts: multi-column text, embedded formulas, figures with captions, and reference lists. Output in Markdown, LaTeX, or Structured Content makes it usable for downstream analysis, translation, or re-typesetting.
You need only plain abstract text from papers and speed matters more than formula or table fidelity. Flash tier or a simpler PDF-to-text tool may be faster for high-volume abstract scraping.
MinerU processes twelve-plus formats in one unified pipeline without separate tools for Word, Excel, and PDF. Batch conversion via `mineru-kit` and stateless API calls make it compatible with existing ETL workflows. The local-first model keeps confidential documents off third-party servers.
Your organization has no Python runtime environment and needs a managed API with no infrastructure setup. In that case, a paid service like LlamaParse or Reducto requires less operational overhead.
The problem
Converting documents into usable text for AI systems is harder than it looks. PDFs contain embedded fonts, complex column layouts, tables that span pages, mathematical formulas, and scanned raster images mixed with native text. Generic parsers either flatten everything into a single text stream or fail entirely on scanned pages. OCR libraries work on images but lose structure, table cells bleed together, and formula rendering produces nonsense strings. The challenge compounds for teams running document agents or RAG pipelines. Agents need to continue reading from a specific page or block without reprocessing the whole file. Citation systems need stable locators that survive document updates. Batch pipelines need consistent output quality across thousands of mixed-format files. Most teams end up stitching together multiple single-purpose libraries, paying per-page fees to hosted APIs, or shipping fragile custom preprocessing scripts that break when document formats shift.
How it works
Flash handles fast previews and indexing; Basic adds OCR and model-based parsing; Standard and Advanced handle demanding layouts, complex tables, and accuracy-sensitive content. Each tier trades speed for quality, and different tiers can be applied to different files in the same pipeline.
Accepts PDF, images (PNG, JPG, WebP, GIF, BMP, TIFF, JP2), DOC/DOCX, PPT/PPTX, XLS/XLSX, RTF, ODT/ODS/ODP, EPUB, OFD, HTML/MHTML, and CSV/TSV. PDF and images support all four tiers; Office and HTML formats use Flash native parsing locally.
One document model maps to Markdown, HTML, LaTeX, DOCX, EPUB, PDF, Structured Content, and Content List V1/V2. The same parse result can be exported to multiple formats without reprocessing, which simplifies multi-consumer pipelines.
The document library caches parse results, indexes content for search, and returns page- and block-level locators in the form `doc:{short_id}/tier:{tier}/page:{n}/block:{n}`. Agents can continue reading from a specific block across multiple calls without reloading the full document.
Small models run ONNX or Torch inference; the VLM can run via llama.cpp, vLLM, or LMDeploy. The default install uses ONNX CPU and llama.cpp in Vulkan mode for broad hardware compatibility. NVIDIA GPU support is available with `mineru[full]`.
`DoclibClient` drives the document library from Python with methods for parsing, search, page continuation, and locator retrieval. The V1 HTTP API covers stateless batch conversion. A Gradio WebUI is included for browser-based access without writing code.
Features
- Four parsing quality tiers
- Twelve-plus input formats
- Nine structured rendering targets
- Document library with stable locators
- Independent model configuration
- Python SDK, HTTP API, and Gradio WebUI
How to install
Install MinerU in a Python 3.10+ virtual environment using the uv package manager.
pip install uv
uv venv .mineru --python 3.12
source .mineru/bin/activate
uv pip install -U "mineru>=4.0,<5"
mineru-kit parse document.pdf -o output.md --tier standardRecommended for this setup
Strengths
- Local-first processing with no default data upload: Documents are not uploaded to any external service unless explicitly configured for remote parsing. All parsing runs on your own infrastructure, which matters for confidential documents, regulated data, and air-gapped environments.
- 81,000+ stars and actively maintained: The repository has over 81,700 stars and 6,700 forks, with the last push on 14 October 2026. OpenDataLab has published technical reports on arXiv (MinerU, MinerU 2.5, MinerU 2.5 Pro) documenting the parsing models' design and benchmarks.
- No per-page API costs: Unlike LlamaParse and Reducto, which charge per page or per document, MinerU's self-hosted path has no per-call billing. The cost model is compute, not consumption, which makes it cheaper at scale for high-volume document pipelines.
- Stable locators for agentic workflows: The `doc:{short_id}/tier:{tier}/page:{n}/block:{n}` locator format lets agents cite and resume from specific positions within a document across multiple API calls. This is a documented design choice for agent workflows, not an afterthought.
Trade-offs
- Fair-code license with commercial thresholds: The license embeds Apache 2.0 terms but adds a commercial threshold. Organizations exceeding 100 million monthly active users or USD 20 million monthly revenue must obtain a separate commercial license. If you build a hosted service on top of MinerU for third parties, you must display attribution; omitting it terminates all license rights. This makes MinerU non-OSI-compliant and unsuitable for products that cannot meet the attribution or threshold requirements.
- Full throughput requires an NVIDIA GPU: The default install runs ONNX CPU inference, which is sufficient for most workloads. Standard and Advanced tiers at high throughput benefit significantly from a CUDA-capable NVIDIA GPU and the `mineru[full]` install. Non-NVIDIA accelerated inference requires manual torch and vLLM/LMDeploy setup.
- Non-NVIDIA Docker deployment pending update: As of the MinerU 4.0 release, Docker deployment for non-NVIDIA devices is listed as pending an update. GPU Docker images are available; non-GPU Docker users should check the legacy platform guides until updated images are published.
Tech stack
FAQ
Yes for self-hosted use. The self-hosted path has no per-call charges; you pay for compute, not API calls. The license permits self-hosting and internal commercial use without a fee unless your organization exceeds 100 million monthly active users or USD 20 million monthly revenue. There is also a free web demo at mineru.net.
No, not by default. Documents are processed locally and are not sent to any external service unless you explicitly configure remote parsing. This makes MinerU suitable for processing confidential, regulated, or proprietary documents.
MinerU supports PDF, images (PNG, JPG, WebP, GIF, BMP, TIFF, JP2), DOC/DOCX, PPT/PPTX, XLS/XLSX, RTF, ODT/ODS/ODP, EPUB, OFD, HTML/MHTML, and CSV/TSV. PDF and images support all four parsing quality tiers; Office, HTML, and CSV files use local Flash native parsing.
LlamaParse is a managed cloud API; MinerU runs on your own infrastructure. LlamaParse requires no setup but charges per page and sends documents to its servers. MinerU takes more work to install but has no per-page cost and keeps documents local. For teams with strict data residency requirements or high document volumes, MinerU is usually the better fit.
Yes. The Basic tier adds OCR model-based parsing for scanned documents and images. Standard and Advanced tiers extend this with better layout understanding for documents with complex column structures, tables, and embedded formulas.