curl --request POST \
--url https://open.bigmodel.cn/api/paas/v4/files/parser/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form tool_type=lite \
--form file_type=PDF \
--form file=@example-file
{
"success": true,
"message": "任务创建成功",
"task_id": "task_123456789"
}
创建文件解析任务,支持多种文件格式和解析工具。见 文件解析服务
curl --request POST \
--url https://open.bigmodel.cn/api/paas/v4/files/parser/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form tool_type=lite \
--form file_type=PDF \
--form file=@example-file
{
"success": true,
"message": "任务创建成功",
"task_id": "task_123456789"
}
使用以下格式进行身份验证:Bearer <your api key>
任务创建成功
The response is of type object
.