Skip to main content
POST
Python
Path change: This endpoint path has been changed from /extract/async to /parse/async. The old path will be discontinued on December 31, 2026. Please migrate to the new path before then. Parameter change: extract_config has been renamed to feature_config. Please replace extract_config with feature_config in your requests.
Async parsing requires both endpoints. Calling the submit endpoint alone does not return the final parsing result.
  1. Call this endpoint to submit the task. It immediately returns a task_id.
  2. Use that task_id to poll the result query endpoint.
  3. Read the parsing result from the result query endpoint after the task status becomes successful. The recommended polling interval is 3~5 seconds.
The parameter definitions for output_formats, element_formats, and feature_config are the same as in Sync parsing; if you want the auth and limits summary, go back to the API overview.

Body

multipart/form-data
api_key
string
required

API 密钥,格式 sk-***

file
file

待解析的文档文件(与 file_url 二选一)

file_url
string<uri>

待解析文档的下载链接(与 file 二选一)

output_formats
enum<string>[]

输出格式,可多选。不传时默认为 ["markdown", "json"]。支持 json / markdown / zip,其中 zip 将所有输出文件打包为压缩包

Available options:
json,
markdown,
zip
element_formats
object

元素格式配置,控制各类元素的输出格式

feature_config
object

特色功能配置(参数已从 extract_config 更名为 feature_config)

Response

200 - application/json

任务提交成功

code
integer

状态码,0 为成功,非 0错误码

Example:

0

message
string
Example:

"任务已提交"

data
object