请求头
枚举值:
application/json
Bearer 身份验证格式: Bearer {{API 密钥}}。
请求体
用于图像编辑的模型。目前仅支持
gpt-image-1
。待编辑的图像数组(multipart/form-data)。对于
gpt-image-1
,每张图片需为 png、webp 或 jpg 格式,单张小于 50MB,最多可上传 16 张图片。期望编辑后图像的文本描述。对于
gpt-image-1
,最大长度为 32000 个字符。生成图像的质量,默认为
auto
。对于 gpt-image-1
,支持的取值有:auto
、high
、medium
、low
。响应参数
图像生成时间的 Unix 时间戳(秒级)。
生成的图像列表。
仅
gpt-image-1
支持,图像生成的 token 使用信息。