MinerU Online Parsing API#
The MinerU online parsing API is a cloud-hosted document extraction service at https://mineru.net/api/v4, distinct from the self-hosted V1 API server (/v1/*) that ships with the open-source mineru-kit package. The two interfaces use different endpoint paths, authentication flows, request schemas, and supported feature sets โ do not mix them.
API Overview#
Base URL: https://mineru.net/api/v4
Auth: Authorization: Bearer <token> โ tokens are obtained from mineru.net/apiManage/docs. Error code A0202 = invalid token; A0211 = expired token.
Workflow (async):
POST /api/v4/file-urls/batchโ receive presigned upload URLs +batch_idPUT <presigned_url>โ upload file bytes (not rate-limited itself)POST /api/v4/extract/task/batchโ submit extraction tasksGET /api/v4/extract-results/batch/{batch_id}โ poll untildoneorfailed- Download the
full_zip_urlfrom the completed result
For single-file jobs, use POST /api/v4/extract/task + GET /api/v4/extract/task/{task_id} instead.
Key request parameters :
| Parameter | Default | Notes |
|---|---|---|
model_version | "pipeline" | "pipeline" or "vlm" โ see below |
is_ocr | false | Pipeline only |
enable_formula | true | Pipeline only |
enable_table | true | Pipeline only |
language | "ch" | Pipeline only |
page_ranges | โ | e.g. "2,4-6" |
callback | โ | Webhook URL; up to 5 retries then stops |
Note:
is_ocr,enable_formula,enable_table, andlanguageare ignored whenmodel_version=vlm.
Service Limits#
The following limits apply to the hosted cloud service (sourced from a third-party SDK reference; verify current values in the API portal):
| Limit | Value |
|---|---|
| Max file size | 200 MB |
| Max pages per document | 600 |
| Max files per batch request | 200 |
| Daily high-priority page quota | 2,000 pages/account |
| Upload URL request rate | 50 files/min (POST /api/v4/file-urls/batch) |
| Upload URL validity | 24 hours |
The 50 files/min rate limit on POST /api/v4/file-urls/batch is not documented in the official API reference. Submitting more than 50 files at once returns an explicit rejection ("You have exceeded the 50 files/min limit. Please try again later."), but the limit itself is absent from the docs. Importantly, this limit applies only to the URL-request step โ the actual PUT upload to the presigned URL is not rate-limited.
Common error codes:
| Code | Meaning |
|---|---|
-60005 | File size > 200 MB |
-60006 | Page count > 600 |
-60007 | Model service unavailable |
-60009 | Task queue full |
-60018 | Daily limit reached |
-500 | Parameter error |
model_version: pipeline vs vlm#
The online API exposes two parsing backends via model_version:
pipeline(default): Traditional deterministic CV pipeline โ layout detection + OCR + formula/table models. No hallucinations. Punctuation is frequently dropped in CJK text.vlm: Vision-language model end-to-end processing. Generally higher accuracy on complex layouts and formulas, but susceptible to the silent failure modes described below.
The
hybridmode available in the local/self-hosted backend is not supported by the cloudv4API.
The MinerU client app defaults the online service to hybrid mode โ a server-side default separate from the API model_version parameter โ per maintainer confirmation.
Known Silent Failures with model_version=vlm#
The following behaviors have been reproduced at scale (815-page document, 200 dpi, language=chinese_cht). All result in task status done with no error code โ making them invisible to standard job-success checks.
1. Aspect-ratio-sensitive empty output
Images with extreme aspect ratios (e.g., 1:10.8) return content_list: [] with no warning. The workable width window for vertical-strip images was observed to be approximately 500โ900 px; outside this range output silently degrades or empties.
2. Repetitive hallucination (looping)
Certain page/image configurations cause the VLM to repeat a passage ~20 times. The same image submitted as a standalone PNG produced clean output; the same bytes wrapped in a single-page PDF triggered repetition.
3. Unbounded continuation ("overflow" hallucination)
Narrow-strip inputs (e.g., ~600 px wide) caused the model to continue generating text from subsequent pages beyond the image boundary โ content from a later page was appended to the current result.
4. Whole-column silent omission
On full-page submissions, the rightmost column (e.g., chapter headings) was silently dropped. Word-count comparison between VLM and pipeline did not catch this because both outputs were proportionally reduced; structural validation (e.g., confirming the expected number of chapter titles appear) is required.
5. Hallucinated content on near-blank pages
Pages with very little ink caused the VLM to output either an English refusal string ("The image contains no discernible text...") or spurious LaTeX formula content instead of an empty array.
Mitigation strategy used in practice: Run vlm for primary extraction, then cross-check each page using pipeline (comparing word counts and n-gram repetition scores). Pages where VLM/pipeline word-count ratio deviates โฅ15% or where 12-gram repetition peak โฅ4 are flagged for review.
Batch Failures#
Large batches (e.g., 107 files) can fail mid-run at running N/total with err_code: null and only "parsing failed, please try again later" as the error message โ no per-file diagnostics are provided. Submitting smaller batches (20โ45 files) avoided recurrence in user testing.
Service Availability#
Tasks from multiple users have been reported stuck in pending for 10+ hours (both vlm and pipeline) during what appears to be server-side capacity events. New tokens and small test files did not help; the issue resolved without client-side action. There is no public status page referenced in available documentation.
Relationship to the Self-Hosted V1 API#
The self-hosted mineru-kit api-server exposes a V1 API at /v1/* with a different schema (tier, ocr_mode fields; no model_version). The Python MinerUApiParser client targets this V1 interface by default at https://mineru.net/api and works against both local and cloud V1 deployments. See mineru/parser/api_client.py and docs/en/usage/http_api.md for the V1 interface. The legacy /file_parse and /tasks routes (used by older clients and the v4 cloud API) are not provided by the V1 server.