Back to models
MinerU2.5-Pro-1.2B
OpenDataLab's 1.2B open-weight vision-language document parsing model engineered to convert complex PDFs and scanned pages into structured Markdown and JSON with accurate layout detection, formula recognition, and table extraction.
What you can do
- PDF-to-Markdown RAG ingestion
- Scientific formula & table OCR
- Scanned contract digitization
Input & output
- Input
- Rendered PDF page images or scanned document pages plus parsing prompt
- Output
- Structured Markdown or JSON with layout blocks, LaTeX formulas, and HTML/Markdown tables
Try a prompt like this
Parse this scanned academic paper page into structured Markdown, preserving two-column reading order, inline LaTeX equations, and table cells.
Things to know
Apache-2.0 open weights (~4GB VRAM in BF16, compatible with MinerU pipeline and vLLM); specialized for OCR/layout parsing rather than open-ended chat.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/chat/completions- Model repo ID
OpenDataLab/MinerU2.5-Pro-2605-1.2B
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
response = client.chat.completions.create(
model="OpenDataLab/MinerU2.5-Pro-2605-1.2B",
messages=[{"role": "user", "content": "Parse this scanned academic paper page into structured Markdown, preserving two-column reading order, inline LaTeX equations, and table cells."}],
)
print(response.choices[0].message.content)Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide