openai/gpt-image-2 📝❓🖼️🔢 → 🖼️
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
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)
- A text description of the desired image
- quality
- The quality of the generated image
- background
- Set whether the background is opaque or choose automatically. GPT Image 2 does not support transparent backgrounds.
- moderation
- Content moderation level
- aspect_ratio
- 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
- A list of images to use as input for the generation
- output_format
- Output format
- openai_api_key
- Your OpenAI API key (optional - uses proxy if not provided)
- number_of_images
- Number of images to generate (1-10)
- output_compression
- Compression level (0-100%)
Output Schema
Output
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