← Back to all generators

openai/gpt-image-2

OpenAI's state-of-the-art image generation model. Create and edit images from text with strong instruction following, sharp text rendering, and detailed editing.

Capabilities

Reference Images

Cost

Community model (estimated from hardware time)

Input Parameters

promptrequiredstring

A text description of the desired image

aspect_ratiostring

The size of the generated image. Use 'auto' to let the model pick. Sizes above 2560x1440 are experimental and may give more variable results.

Default: "1:1"
1:13:22:34:33:416:99:16auto1024x10241536x10241024x15361536x11521152x15362048x20482048x11521152x20483840x21602160x3840
backgroundstring

Set whether the background is transparent or opaque or choose automatically

Default: "auto"
autotransparentopaque
input_imagesarray

A list of images to use as input for the generation

moderationstring

Content moderation level

Default: "auto"
autolow
number_of_imagesinteger

Number of images to generate (1-10)

Default: 1min: 1, max: 10
openai_api_keystring

Your OpenAI API key (optional - uses proxy if not provided)

output_compressioninteger

Compression level (0-100%)

Default: 90min: 0, max: 100
output_formatstring

Output format

Default: "webp"
pngjpegwebp
qualitystring

The quality of the generated image

Default: "auto"
lowmediumhighauto
user_idstring

An optional unique identifier representing your end-user. This helps OpenAI monitor and detect abuse.

Version: 225c978a7f93Updated: 7/25/202612.9M runs