编辑
POST
/v1/images/edits
为提供的提示和参数创建完成
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
Accept
string
必需
示例值:
application/json
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数multipart/form-data
image
file
必需
示例值:
file://E:\未命名.png
prompt
string
必需
示例值:
改成粉色
mask
string
可选
model
string
可选
示例值:
gpt-image-1
n
string
可选
示例值:
1
quality
string
可选
response_format
string
可选
示例值:
b64_json
size
string
可选
示例值:
1024x1024
示例代码
返回响应
修改于 2025-05-06 12:12:12