POST
/
paas
/
v4
/
files
上传文件
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>"
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data

Response

200
application/json

业务处理成功

The response is of type object.