与 POST https://api.openai.com/v1/images/generations 完全对齐;同步返回图片结果。
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
提示词(prompt)
模型
gpt-image-2 尺寸 / 分辨率
auto, 1024x1024, 1024x1536, 1536x1024 生成数量(当前仅支持 1)
1 <= x <= 1质量等级
auto, low, medium, high, standard 背景透明度
transparent, opaque, auto 输出文件格式
png, jpeg, webp JPEG / WebP 的压缩等级 0-100
0 <= x <= 100审核强度
auto, low 响应格式(兼容 DALL·E;gpt-image 系列总是返回 b64_json)
url, b64_json 输入图保真度(gpt-image-2 新增,仅 edit 场景生效;generate 可忽略)
high, low 终端用户标识(透传给上游供滥用监控)