工具 API

文件解析

创建文件解析任务,支持多种文件格式和解析工具。见 文件解析服务。点击 Try it 按钮可快速试用。

post/paas/v4/files/parser/create

Request

  • Base URL
    https://open.bigmodel.cn/api
  • Auth
    HTTP bearer

Request body multipart/form-data

filestring binary required

待解析文件

tool_type'lite' | 'expert' | 'prime' required

使用的解析工具类型

file_type'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'

文件类型。Lite支持:pdf,docx,doc,xls,xlsx,ppt,pptx,png,jpg,jpeg,csv,txt,md。Expert支持:pdf。Prime支持: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

任务创建成功

successboolean
messagestring
task_idstring

Example response

{
  "success": true,
  "message": "任务创建成功",
  "task_id": "task_123456789"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.