Skip to main content
POST
cURL
After uploading your file, read the task ID from data.task_id and call Async parsing — Check result. The upload limits and parsing parameters are the same as for sync parsing.

Body

multipart/form-data
file
file
required

PDF, PNG, JPG, JPEG, BMP, TIF, TIFF, or WebP upload. Up to 10 MB and 20 pages.

output_formats
enum<string>[]

Send one form field per format.

Available options:
markdown,
json
api_key
string

Optional placeholder. The Free API does not validate this field.

Example:

"dummy"

element_formats
object

Element output formats. Encode as a JSON object in one form field.

feature_config
object

Parsing options. Encode as a JSON object in one form field.

extra
object

Model sampling options. Encode as a JSON object in one form field.

Response

Task ID and initial status, or API error.

code
integer

0 indicates success. Check this field even if the HTTP status is 200.

Example:

0

message
string
Example:

"任务已提交"

warnings
string[]
Example:
data
object | null