Documentation Index
Fetch the complete documentation index at: https://docs.apiyi.com/llms.txt
Use this file to discover all available pages before exploring further.
gpt-image-2-vip 尺寸映射表
来源:供应商官方 Size 选择面板(截图日期 2026-05-02)
模型:gpt-image-2-vip
说明:10 个比例 × 3 个分辨率档 = 30 个尺寸组合,API 通过 size=宽x高 传参。
1K Fast — Drafts and low-cost tests
| 比例 | 命名 | 像素 |
|---|
| 1:1 | Square | 1280×1280 |
| 2:3 | Portrait | 848×1280 |
| 3:2 | Photo | 1280×848 |
| 3:4 | Portrait | 960×1280 |
| 4:3 | Standard | 1280×960 |
| 4:5 | Social | 1024×1280 |
| 5:4 | Large | 1280×1024 |
| 9:16 | Story | 720×1280 |
| 16:9 | Wide | 1280×720 |
| 21:9 | Cinema | 1280×544 |
2K Recommended — Default for most usable outputs(默认档)
| 比例 | 命名 | 像素 |
|---|
| 1:1 | Square | 2048×2048 |
| 2:3 | Portrait | 1360×2048 |
| 3:2 | Photo | 2048×1360 |
| 3:4 | Portrait | 1536×2048 |
| 4:3 | Standard | 2048×1536 |
| 4:5 | Social | 1632×2048 |
| 5:4 | Large | 2048×1632 |
| 9:16 | Story | 1152×2048 |
| 16:9 | Wide | 2048×1152 |
| 21:9 | Cinema | 2048×864 |
4K Detail — Large final assets
| 比例 | 命名 | 像素 |
|---|
| 1:1 | Square | 2880×2880 |
| 2:3 | Portrait | 2336×3520 |
| 3:2 | Photo | 3520×2336 |
| 3:4 | Portrait | 2480×3312 |
| 4:3 | Standard | 3312×2480 |
| 4:5 | Social | 2560×3216 |
| 5:4 | Large | 3216×2560 |
| 9:16 | Story | 2160×3840 |
| 16:9 | Wide | 3840×2160 |
| 21:9 | Cinema | 3840×1632 |
所有 30 档尺寸统一 $0.03/张,不随分辨率档浮动。资费栏显示 “所有尺寸统一定价”。
代码映射
js/api.js 中 gpt-image-2-vip 模型的 resolutionMap[ratio][resolution] 与上表一一对应。
请求体直接用该值,把 × 替换为半角 x、去空格,作为 OpenAI Images API 的 size 字段。
UI 渲染遵循”比例下拉 + 分辨率下拉 + 最终分辨率说明栏”三段式,与 gpt-image-2 模型同构,由 js/app.js 的 renderRatioOptions / renderResolutionOptions 与 js/modules/generate-page.js 的 updateFinalResolutionDisplay 数据驱动渲染,无需新写 UI 代码。