GPT Image 2

GPT Image 2, OpenAI's latest image model, is capable of making fine-grained, detailed edits to images.

Input

Fields marked * are required. Review the price before generating.

The prompt for image generation

The URLs of the images to use as a reference for the generation. A maximum of 16 images are allowed.

Uploading a file needs an account. Create accountJPEG, PNG, WebP · up to 25 MB

The size of the generated image. Use 'auto' to infer from input images.

Number of images to generate

Mask image URL. White marks regions to edit and black marks regions to keep.

Uploading a file needs an account. Create accountJPEG, PNG, WebP · up to 25 MB

Additional settings

Background for the generated image

Quality for the generated image. Use 'auto' to let the model pick the best quality for the prompt.

Output format for the images

Starting price$0.12 / image

You sign up first. Your settings are kept.

API code for this input

Complete the required fields and fix input errors to see API code.

How to use GPT Image 2

Getting started

Describe layout and write the exact wording required on signs or labels.

Review your result

Proofread text and inspect edges, repeated objects and edited regions.

Inputs and settings

The default uses prompt. Editing additionally requires image_urls and accepts mask_url for regional edits; identify the parts that should remain unchanged.

Select quality, num_images and output_format. For a transparent background, use background with PNG or WebP and check the exported image’s transparency.