使用 GPT Image 1 模型从文本提示生成图像。
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
模型 ID
gpt-image-1 "gpt-image-1"
图像描述文本
"一只穿着太空服漂浮在银河中的可爱猫咪"
生成图片数量
1 <= x <= 41
输出图片尺寸
1024x1024, 1536x1024, 1024x1536, auto "1024x1024"
图片质量
low, medium, high "high"
输出图片格式
png, webp, jpeg "png"
背景设置,transparent 为透明背景,opaque 为不透明背景
transparent, opaque "opaque"
内容审核级别
auto, low "auto"
jpeg 和 webp 格式的压缩级别(0-100%)
0 <= x <= 10080
图像生成成功。
生成的图片数组