Parse Document
POST
/documents/parse
const url = 'https://example.com/documents/parse';const form = new FormData();form.append('file', 'example');form.append('backend', 'hybrid-auto-engine');form.append('parse_method', 'auto');form.append('language', 'en');form.append('formula_enable', 'true');form.append('table_enable', 'true');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/documents/parse \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file=example \ --form backend=hybrid-auto-engine \ --form parse_method=auto \ --form language=en \ --form formula_enable=true \ --form table_enable=trueSubmit a document for parsing via MinerU and return immediately with a task_id.
MinerU provides full document understanding: layout analysis, OCR, table/formula extraction, and structured markdown output. Accepts PDF, images, and DOCX files.
Poll GET /documents/parse/{task_id} for the result.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typemultipart/form-data
Body_parse_document_documents_parse_post
object
file
required
File
PDF, image, or DOCX file to parse
string
backend
Backend
MinerU backend: hybrid-auto-engine, pipeline, vlm-auto-engine
string
parse_method
Parse Method
Parse method: auto, txt, ocr
string
language
Language
OCR language hint
string
formula_enable
Formula Enable
Enable formula parsing
boolean
table_enable
Table Enable
Enable table parsing
boolean
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
DocumentParseSubmission
object
task_id
required
Task Id
Celery task ID for tracking the document parse job
string
status
Status
Initial status of the task
string
Example
{ "status": "queued"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}