Skip to main content
POST
/
v1
/
images
/
edits
改图
curl --request POST \
  --url https://aiapi.xiaoliu.fun/v1/images/edits \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form image='@example-file' \
  --form 'model=<string>' \
  --form 'prompt=<string>'
{
  "created": 123,
  "data": [
    {
      "url": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
image
file
required

待修改的原图文件

model
string
required

模型名称

prompt
string
required

修改描述

Response

200 - application/json

成功响应

created
integer
data
object[]