跳转到主要内容

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:1Square1280×1280
2:3Portrait848×1280
3:2Photo1280×848
3:4Portrait960×1280
4:3Standard1280×960
4:5Social1024×1280
5:4Large1280×1024
9:16Story720×1280
16:9Wide1280×720
21:9Cinema1280×544
比例命名像素
1:1Square2048×2048
2:3Portrait1360×2048
3:2Photo2048×1360
3:4Portrait1536×2048
4:3Standard2048×1536
4:5Social1632×2048
5:4Large2048×1632
9:16Story1152×2048
16:9Wide2048×1152
21:9Cinema2048×864

4K Detail — Large final assets

比例命名像素
1:1Square2880×2880
2:3Portrait2336×3520
3:2Photo3520×2336
3:4Portrait2480×3312
4:3Standard3312×2480
4:5Social2560×3216
5:4Large3216×2560
9:16Story2160×3840
16:9Wide3840×2160
21:9Cinema3840×1632

计费

所有 30 档尺寸统一 $0.03/张,不随分辨率档浮动。资费栏显示 “所有尺寸统一定价”。

代码映射

js/api.jsgpt-image-2-vip 模型的 resolutionMap[ratio][resolution] 与上表一一对应。 请求体直接用该值,把 × 替换为半角 x、去空格,作为 OpenAI Images API 的 size 字段。 UI 渲染遵循”比例下拉 + 分辨率下拉 + 最终分辨率说明栏”三段式,与 gpt-image-2 模型同构,由 js/app.jsrenderRatioOptions / renderResolutionOptionsjs/modules/generate-page.jsupdateFinalResolutionDisplay 数据驱动渲染,无需新写 UI 代码。