POST
/
v1
/
files
上传文件 (未实现)
curl --request POST \
  --url https://api.example.com/v1/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form purpose=
{
  "error": {
    "message": "<string>",
    "type": "<string>",
    "param": "<string>",
    "code": "<string>"
  }
}

Authorizations

Authorization
string
header
required

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

Body

multipart/form-data
file
file
purpose
string
Example:

""

Response

501 - application/json

未实现

error
object