Skip to main content
POST
Python
Path change: This endpoint path has been changed from /extract/acc_sync to /parse/sync. 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.

feature_config

If you need auth, usage limits, or sync vs async guidance, read the API overview first. For large files and batch jobs, switch to Async parsing — Submit Task.

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