text→img · img→imgImage

OpenAI GPT Image 2

gpt-image-2

General image generation, text/img-to-image, 27 fixed sizes.

Input
Prompt *
Images0/5 · optional
Up to 5 reference images (JPG / PNG)
Aspect ratio
Resolution
Count
Running a model uses your prepaid balance, so it needs an account. Top up
OutputIdle

Run the model and the result shows up here.

Model introduction

Overview

General image generation, text/img-to-image, 27 fixed sizes.

Key capabilities

Strong visual understanding

Follows complex written instructions and applies edits that match intent and context.

Intelligent image editing

Add, remove or alter elements precisely — from subtle tweaks to full restyling.

Multi-image input

Up to 5 reference images to guide the edit or supply a style.

Context-aware refinement

Preserves lighting, tone and composition, changing only what needs to change.

Efficient and affordable

Professional-grade editing billed per image × resolution tier — built for fast iteration.

Parameters

ParameterDescription
Modestext→img · img→img
Size10 ratios × 1K/2K/4K (30 total) or auto
Duration—(image)
Reference imagesup to 5, optional
Billingper image × resolution (1K/2K/4K)
  • Aspect ratios (10): 1:1 · 3:2 · 2:3 · 4:3 · 3:4 · 5:4 · 4:5 · 16:9 · 9:16 · 21:9.
  • size must be one of the 30 fixed sizes below or auto; other values are rejected upstream.
  • Image models use the async /v1/videos endpoint; results are images, no quality / n params.
  • Pass reference_images for image-to-image (up to 5).

Supported sizes

1K
1024x10241024x15361536x10241152x15361536x11521216x15201520x12161536x864864x15362016x864
2K
2048x20481344x20162016x13441536x20482048x15361600x20002000x16002048x11521152x20482688x1152
4K
2880x28802336x35043504x23362448x32643264x24482560x32003200x25603840x21602160x38403360x1440

Pricing

1K$0.01 per image
2K$0.02 per image
4K$0.03 per image

Prices are per generation and charged from your prepaid balance. Failed jobs are refunded automatically.

Use cases

E-commerce imageryTurn a product shot into hero images, posters and feature layouts.

Background replacementKeep the subject, swap the background for any scene or flat colour.

Local retouchingAdjust lighting and colour, add or remove elements in the frame.

Creative iterationTry many directions on one asset and iterate cheaply.

Join our DiscordOpenAI GPT Image 2 — GenRelay