跳转到主要内容
POST
/
v1
/
images
/
upload
上传图片素材
curl --request POST \
  --url https://api.apiany.ai/v1/images/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "url": "<string>"
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

multipart/form-data
file
file
必填

响应

200 - application/json

上传后的素材 URL。

url
string<uri>
必填