跳转到主要内容
POST
/
ms
/
v1
/
images
/
edits
OpenAI SDK — images.edit (sync, multipart)
curl --request POST \
  --url https://api.mountsea.ai/ms/v1/images/edits \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form model=gpt-image-2 \
  --form image='@example-file' \
  --form 'prompt=<string>' \
  --form mask='@example-file' \
  --form n=123 \
  --form 'size=<string>' \
  --form 'quality=<string>'
{
  "created": 123,
  "data": [
    {
      "b64_json": "<string>"
    }
  ]
}

授权

Authorization
string
header
必填

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

请求体

multipart/form-data
model
string
必填
示例:

"gpt-image-2"

image
file
必填
prompt
string
mask
file
n
integer
size
string
quality
string

响应

OpenAI ImagesResponse (data[].b64_json)

created
integer
data
object[]