Skip to main content
POST
/
paas
/
v4
/
files
/
parser
/
sync
文件解析(同步)
curl --request POST \
  --url https://open.bigmodel.cn/api/paas/v4/files/parser/sync \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form tool_type=prime-sync \
  --form file_type=WPS \
  --form file=@example-file
{
  "success": true,
  "message": "任务创建成功",
  "task_id": "task_123456789"
}

Authorizations

Authorization
string
header
required

使用以下格式进行身份验证:Bearer <your api key>

Body

multipart/form-data
file
file
required

待解析文件

tool_type
enum<string>
required

使用的解析工具类型

Available options:
prime-sync
file_type
enum<string>

文件类型支持:pdf,docx,doc,xls,xlsx,ppt,pptx,png,jpg,jpeg,csv,txt,md,html,bmp,gif,webp,heic,eps,icns,im,pcx,ppm,tiff,xbm,heif,jp2

Available options:
WPS,
PDF,
DOCX,
DOC,
XLS,
XLSX,
PPT,
PPTX,
PNG,
JPG,
JPEG,
CSV,
TXT,
MD,
HTML,
BMP,
GIF,
WEBP,
HEIC,
EPS,
ICNS,
IM,
PCX,
PPM,
TIFF,
XBM,
HEIF,
JP2

Response

任务创建成功

success
boolean
Example:

true

message
string
Example:

"任务创建成功"

task_id
string
Example:

"task_123456789"