使用 POST /v1/images/generations 调用 gpt-image-2-pro 的高分辨率生图入口。
Documentation Index
Fetch the complete documentation index at: https://docs.geeknow.top/llms.txt
Use this file to discover all available pages before exploring further.
gpt-image-2-pro 与 gpt-image-2 共用统一图像生成入口,但额外开放了 2K、4K 高分辨率档位,适合需要更大画幅和更高输出尺寸的场景。
POST /v1/images/generations。model = "gpt-image-2-pro" 选择目标模型。2K、4K 高分档位。url 和 b64_json 两种返回格式。image 作为参考图,是否生效取决于实际命中的图像渠道。gpt-image-2-pro。0,统一层回退为 1。url、b64_json。false 与不传语义不同。2K 扩展档位| 预设 | 实际目标尺寸 |
|---|---|
1:1(2K) | 2048x2048 |
4:3(2K) | 2048x1536 |
3:2(2K) | 2560x1712 |
2:3(2K) | 1712x2560 |
16:9(2K) | 2048x1152 |
9:16(2K) | 1152x2048 |
4K 扩展档位| 预设 | 实际目标尺寸 |
|---|---|
1:1(4K) | 2880x2880 |
4:3(4K) | 3840x2880 |
3:2(4K) | 3840x2560 |
2:3(4K) | 2560x3840 |
16:9(4K) | 3840x2160 |
9:16(4K) | 2160x3840 |
response_format = url 时返回的图片 URL。response_format = b64_json 时返回的图片 Base64 数据。