cURL
curl --request POST \ --url https://open.bigmodel.cn/api/paas/v4/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form purpose=batch \ --form file=@example-file
{ "id": "<string>", "object": "file", "bytes": 123, "created_at": 123, "filename": "<string>", "purpose": "<string>" }
上传用于 Batch 任务、文件内容抽取、智能体等功能的文件。注意: “Try it”功能仅支持小文件上传,实际支持的文件大小请参见下文 purpose 相关说明。
使用以下格式进行身份验证:Bearer <your api key>
业务处理成功
The response is of type object.
object
Was this page helpful?