POST
/
llm-application
/
open
/
v2
/
application
/
file_upload
文件上传
curl --request POST \
  --url https://open.bigmodel.cn/api/llm-application/open/v2/application/file_upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'app_id=<string>' \
  --form files=@example-file
{
  "data": {
    "success_info": [
      {
        "file_id": "<string>",
        "file_name": "<string>"
      }
    ],
    "fail_info": [
      {
        "file_name": "<string>",
        "fail_reason": "<string>"
      }
    ]
  },
  "code": 123,
  "message": "<string>",
  "timestamp": 123
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data

Response

200
application/json

请求成功

The response is of type object.