Image editing model

An image editing model is an AI model that changes an existing image according to an instruction, such as removing an object, swapping a background or restyling a photo, while keeping the parts you did not ask to change.

An image generator starts from nothing. An image editing model starts from a picture and an instruction, such as make it snow, or put this product on a kitchen counter, and must change only what was asked. That second requirement is the hard part. A good edit keeps the person's face, the lighting and the composition intact while altering the one thing requested.

A key step came in November 2022 with InstructPix2Pix by Tim Brooks, Aleksander Holynski and Alexei Efros. There was no large collection of before-and-after images with written instructions, so they made one, using GPT-3 to write editing instructions and captions and Stable Diffusion to produce matching image pairs. They then trained a diffusion model on that data. The result edited an image in a single pass, in seconds, without needing to be retrained or tuned for each new picture.

Earlier tools relied on masks: the user painted over the region to change, and an inpainting model filled it in. Adobe's Generative Fill, launched in Photoshop in May 2023, adds, extends or removes content described in a text prompt and places the result on a separate layer so the original stays untouched. Newer models take the instruction alone. Google's Gemini 2.5 Flash Image, released in August 2025 and nicknamed nano-banana, makes targeted changes described in plain language, keeps a character looking consistent across several edits, and can merge several input images into one. At launch it cost $0.039 per image through Google's API.

The practical effect is that edits once needing skilled retouching now take a sentence. That is useful for product photos, marketing and design drafts, and it also makes altering real photos easy. Some providers mark their output: Google says images created or edited with Gemini 2.5 Flash Image carry an invisible SynthID watermark, and Adobe attaches content credentials to Generative Fill edits.

Common questions

What is an image editing model?

It is an AI model that takes an existing image plus an instruction and returns a changed version, ideally altering only what was asked. Examples include InstructPix2Pix from 2022 and Google's Gemini 2.5 Flash Image from 2025.

How is an image editing model different from an image generator?

An image generator creates a new picture from a description. An editing model works on a picture you supply and has to preserve most of it, such as a person's identity or a room's layout, while changing specific details. Many current models can do both.

What is nano-banana?

Nano-banana is the informal name for Google's Gemini 2.5 Flash Image, released in August 2025. It edits images from plain-language instructions, keeps characters consistent across edits and can combine several images, and Google adds an invisible SynthID watermark to its output.

Can AI-edited images be detected?

Sometimes. Some providers add invisible watermarks, such as Google's SynthID, or attach content credentials that record AI edits, as Adobe does. Edits made with tools that add neither are much harder to detect reliably.

Finding more

Search for "instruction-based image editing", "InstructPix2Pix", "Gemini image editing" or "generative fill" to see how the field has developed. Research papers on arXiv explain methods and their limits, while developer documentation from model providers gives current capabilities and prices. Compare edits on your own images rather than relying on curated examples.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.