English
  • English
  • 简体中文
  1. OpenAI
English
  • English
  • 简体中文
  • Introduction (Must Read)
  • OpenAI official library usage tutorial
  • Obtain Base URL and API Key
  • OpenAI
    • Chat
      POST
    • Chat (o1,o3,o4 series model)
      POST
    • dall--e-3
      POST
    • gpt-image-1
      POST
    • Image edit
      POST
    • Analyze image
      POST
    • Analyze PDF
      POST
    • o3-pro
      POST
  • Gemini
    • gemini
      POST
  1. OpenAI

Image edit

Developing
POST
{{base_url}}/v1/images/edits
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{base_url}}/v1/images/edits?image=E:\\Desktop\\gpt\\icon_samll2.png&prompt=给这图片带上眼镜&model=gpt-image-1' \
--header 'Authorization: sk-shdahd【You ApiKey】' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gpt-image-1",
    "images": [
        "body-lotion.png",
        "bath-bomb.png",
        "incense-kit.png",
        "soap.png"
    ],
    "prompt": "创建一个包含这四个物品的精美礼品篮",
    "quality": "high"
}'
Response Response Example
{}

Request

Query Params

Header Params

Body Params text/plain
Examples

Responses

🟢200成功
application/json
Body

Modified at 2025-06-04 09:33:13
Previous
gpt-image-1
Next
Analyze image
Built with