创建 gpt-image-2-all
POST
/v1/images/generations
- 根据
prompt与参考图 URL 列表image生成或合成图像(gpt-image-2-all) - 最多可传入 5 张参考图 URL
- 请求体为
application/json - 官方文档:Images create
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
model
string
Required
用于生成图像的模型。
size
string
生成图像的尺寸。对于 GPT 图像模型,必须是 1024x1024 、 1536x1024 (横版)、 1024x1536 (竖版)
n
integer
要生成的图像数量。
prompt
string
Required
所需图像的文本描述。
image
string[]
要编辑的图片。必须是受支持的图片文件或图片数组。最大可传5张。
Responses
application/json
object
created
integer
Required
data
object[]
Required