PDF to Office
async conversion — Submit task
Submit a PDF to Office task and immediately receive a task_id
POST
Python
This endpoint immediately returns a
task_id. PDF parsing and Office conversion continue in the background.
- Submit the PDF through this endpoint.
- Save the
task_idfrom the response. - Pass the
task_idto Async result query. - Poll every 3–5 seconds until the status becomes
succeededorfailed.
target_type and layout_mode rules are the same as for sync conversion.
The initial status is usually
parsing. The submit endpoint does not return the Office file download URL.Body
multipart/form-data
API 密钥,格式 sk-***
Example:
"sk-***"
PDF 文件,与 file_url 二选一;最大 200MB、300 页
PDF 的公开或有效预签名下载链接,与 file 二选一
目标文件类型。请根据 PDF 的原始文件类型选择:由 Word 导出的 PDF 选择 word,由 PPT 导出的 PDF 选择 ppt。选择错误可能影响内容结构和版式还原效果
Available options:
word, ppt 排版模式。Word 未传时默认 flow;PPT 未传时默认 layout,且 PPT 仅支持 layout
Available options:
flow, layout 
