openai/gpt-image-2 📝❓🖼️🔢 → 🖼️

⭐ Official ▶️ 37.0M runs 📅 Apr 2026 ⚙️ Cog 0.23.1
image-consistent-character-generation image-editing image-object-removal image-style-transfer image-to-image interior-design logo-design text-to-image virtual-try-on

Performance

40.6sTypical run time
37.0MTotal runs

About

OpenAI's image generation and editing model. Create and edit images from text with close instruction following, sharp text rendering, and detailed edits.

Example Output

Prompt:

"A photo of a computer screen displaying a Spotify playlist in golden hour evening in a living room with lots of green plants in the background. The playlist says GPT-image-2. caption is "this new image model from OpenAI is dope." and the artists are Replicate. the songs are themes about open source AI and Machine learning. the account name is Replicate. use the logo for replicate as the profile picture and artist image."

Output

Example output

Performance Metrics

40.64s Prediction Time
40.66s Total Time
All Input Parameters
{
  "prompt": "A photo of a computer screen displaying a Spotify playlist in golden hour evening in a living room with lots of green plants in the background. The playlist says GPT-image-2. caption is \"this new image model from OpenAI is dope.\" and the artists are Replicate. the songs are themes about open source AI and Machine learning. the account name is Replicate. use the logo for replicate as the profile picture and artist image.",
  "quality": "auto",
  "background": "auto",
  "moderation": "auto",
  "aspect_ratio": "3:2",
  "input_images": [
    "https://replicate.delivery/pbxt/Oy2U6Sw4k3ZYEZ5cXeuVJMq8k45GQ17J2iKvt1HcHVUtVj5O/download.jpg"
  ],
  "output_format": "webp",
  "number_of_images": 1,
  "output_compression": 90
}
Input Parameters
prompt (required) Type: string
A text description of the desired image
quality Default: auto
The quality of the generated image
background Default: auto
Set whether the background is opaque or choose automatically. GPT Image 2 does not support transparent backgrounds.
moderation Default: auto
Content moderation level
aspect_ratio Default: 1:1
The size of the generated image. Use 'auto' to let the model pick. Sizes above 2560x1440 are experimental and may give more variable results.
input_images Type: arrayDefault: null
A list of images to use as input for the generation
output_format Default: webp
Output format
openai_api_key Type: stringDefault: null
Your OpenAI API key (optional - uses proxy if not provided)
number_of_images Type: integerDefault: 1Range: 1 - 10
Number of images to generate (1-10)
output_compression Type: integerDefault: 90Range: 0 - 100
Compression level (0-100%)
Output Schema

Output

Type: array • Items Type: string • Items Format: uri

Example Execution Logs
Model check completed.
Model: gpt-image-2
Generating image...
Sid drk132mwx5rmt0cxp878wad6gc
Generated image in 38.8sec
Generated 1 images
Input text token count: 456
Input image token count: 361
Output token count: 1372
Version Details
Version ID
17a055b6663e5935b20cc31f55630866ea0fc7b4269f39f9957e1f21384f66aa
Version Created
November 10, 2026
Run on Replicate →