Skip to content

MinerU2.5-Pro

POST /v1/ocr model: MinerU2.5-Pro
EndpointPOST /v1/ocr
Inputa PDF or an image, by URL or data: URL
OutputMarkdown, one entry per page
Streaming❌
Billingper page, reported as usage_info.pages_processed
Stabilityexperimental
Field
modelrequiredMinerU2.5-Pro
documentrequiredthe PDF or image
pagesoptionalpage indices ([0, 1, 2]) or a range string ("0-5")
include_image_base64optionalreturn extracted images inline as base64
image_limitoptionalcap on how many images are extracted
image_min_sizeoptionalignore images smaller than this
idoptionalyour own identifier, echoed back

document takes one of two shapes:

{ "type": "document_url", "document_url": "https://arxiv.org/pdf/2201.04234" }
{ "type": "image_url", "image_url": "data:image/png;base64,…" }

document_url also accepts a data: URL. For image_url, both a bare string and {"url": "…"} are accepted.

{
"pages": [
{
"index": 0,
"markdown": "Invoice No. 7412\n\nTotal: 1,286.50 CNY\n\nDate: 2026-09-15",
"images": [],
"dimensions": { "width": 230, "height": 79, "dpi": null }
}
],
"model": "MinerU2.5-Pro",
"document_annotation": null,
"usage_info": { "pages_processed": 1, "doc_size_bytes": 4524 }
}
Field
pages[].indexzero-based page number
pages[].markdownthe page as Markdown
pages[].imagesextracted figures; base64 only with include_image_base64
usage_info.pages_processedpages billed
Terminal window
curl https://developer.amd.com.cn/radeon/api/v1/ocr \
-H "Authorization: Bearer $RADEON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "MinerU2.5-Pro",
"document": {
"type": "document_url",
"document_url": "https://arxiv.org/pdf/2201.04234"
},
"pages": "0-2"
}'