GPT Image 2
GPT Image 2 is OpenAI’s image generation and editing model. Create images from text, or edit existing images with instructions it follows closely.
What it does
GPT Image 2 handles two workflows: generating images from text descriptions, and editing existing images with specific instructions. It follows your directions closely and leaves alone the parts you want unchanged.
When you pass reference images, GPT Image 2 always processes them at high fidelity, so there’s no setting for it. Pass one image to edit it, or pass several to combine styles, subjects, or references into a single output.
Key capabilities
Photorealism and detail. Natural-looking images with accurate lighting, believable materials, and rich textures, from candid photography to polished commercial visuals.
Text rendering. Dense text, small lettering, and complex layouts like infographics, UI mockups, and marketing materials.
Precise editing. Targeted changes without redrawing the whole image. The model keeps identity, composition, and lighting while you change specific elements.
Style control. Apply one visual style across different subjects, or transfer the look of one image to another with a short prompt.
World knowledge. Ask for a scene set in “Bethel, New York in August 1969” and the model understands you want Woodstock, because it reasons about the prompt before drawing.
Use cases
Image generation. Infographics, logos, UI mockups, photorealistic scenes, comic strips, and marketing visuals, for both exploration and finished work.
Image editing. Style transfer, virtual clothing try-ons, product mockups, translating text in images, lighting changes, object removal, and scene compositing. Insert people into new scenes while keeping their likeness, or swap furniture in room photos without changing the camera angle.
Character consistency. Build multi-page illustrations where characters look the same from scene to scene, for children’s books, storyboards, and campaigns.
How to get good results
Be specific. Instead of “make it better,” say “add soft coastal daylight” or “change the red hat to light blue velvet.”
Use photo language for realism. Mention lens type, lighting, and framing when you want photorealistic results. “Shot with a 50mm lens, soft daylight, shallow depth of field” gets closer to real photography than generic quality words.
Lock what shouldn’t change. When editing, say what must stay the same. “Change only the lighting, preserve the subject’s face, pose, and clothing” prevents unwanted changes.
Put text in quotes. For readable text in images, put the exact copy in “quotes” and describe the typography. “Bold sans-serif, centered, high contrast” makes the text easier to read.
Iterate with small changes. Start with a base image, then make one change at a time instead of rewriting everything.
Number your input images. When you pass several images, refer to them by number and describe how they relate: “Apply the style from image 1 to the subject in image 2.”
Inputs
prompt: what you want to generate, or how to edit the input images.input_images: one or more reference images, for editing or combining.aspect_ratio:1:1,3:2,2:3,4:3,3:4,16:9,9:16, orautoto let the model pick. You can also set an exact size:1024x1024,1536x1024,1024x1536,1536x1152,1152x1536,2048x2048,2048x1152,1152x2048,3840x2160, or2160x3840. Sizes above 2560x1440 are experimental and give more variable results.quality:low,medium,high, orauto(the default). Lower quality is faster and costs less.number_of_images: from 1 to 10 images per run.output_format:webp(the default),png, orjpeg.output_compression: compression level forwebpandjpeg, from 0 to 100 (default 90).background:auto(the default) oropaque. GPT Image 2 doesn’t support transparent backgrounds.moderation:auto(the default), orlowfor less strict content filtering.user_id: an optional ID for your end user, which OpenAI uses to detect abuse.openai_api_key: optional. Bring your own OpenAI API key to pay OpenAI directly.
You can try this model in the Replicate playground.