简体中文
  • English
  • 简体中文
  1. OpenAI
简体中文
  • English
  • 简体中文
  • OpenAI官方库使用教程
  • 前言(必读)
  • 获取 Base URL 和 API Key
  • OpenAI
    • Chat模型
      POST
    • Chat (o1-o4系列模型)
      POST
    • dall-e-3
      POST
    • gpt-image-1
      POST
    • Image edit图片编辑
      POST
    • Analyze image分子图片
      POST
    • Analyze PDF分析PDF
      POST
    • o3-pro-responses
      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' \
--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:18:12
Previous
gpt-image-1
Next
Analyze image分子图片
Built with