gpt-image-2

Image

Flexible sizing and high-fidelity reference inputs; faster generation and editing; stronger multilingual text and complex layouts.

Input price

$3.7525% off

Market: $5

/ M

Cache read

$0.937525% off

Market: $1.25

/ M

Image input

$625% off

Market: $8

/ M

Image output

$22.525% off

Market: $30

/ M

Image cache read

$1.525% off

Market: $2

/ M

Input

Text

Output

Image

Input

Size

生成图像尺寸,gpt-image-2 支持任意 WIDTHxHEIGHT(边长需被 16 整除,宽高比 1:3 到 3:1)。

Count 1
110

生成图像的数量,取值 1 到 10 之间。

Quality

生成图像的质量档,GPT 图像模型支持 low、medium、high,auto 自动选择。

Background

生成图像的背景,gpt-image-2 的透明背景支持处于预览阶段,用 transparent 时需输出 png 或 webp。

Output format

生成图像返回的编码格式,支持 png、jpeg 或 webp。

Output compression 100
0100

生成图像的压缩级别(0-100%),仅配合 webp 或 jpeg 输出格式时生效。

Moderation

GPT 图像模型的内容审核强度,low 为较宽松过滤,auto 为默认。

Output