Skip to content

Image Editing & Inpainting

Change a spot in the image by a written instruction

inImageTextImage

What this capability means

Takes the original image, a written instruction and usually a mask marking the region to change, and outputs the modified image. Unlike image-to-image it has an explicit, local edit intent and should leave unspecified areas untouched; unlike text-to-image it does not generate from scratch but operates surgically on an existing picture.

How it is done

The base method is inpainting: noise is added and removed only inside the mask while the rest reuses the original latents, with the instruction injected through cross-attention or an adapter. More careful schemes add a reference image and an identity-preservation branch so the edited person keeps the same face; another route hands instruction and image to a multimodal model that predicts the edited latents directly.

Representative products

5

Adobe

Firefly

An image generation and editing tool aimed at creators

2Caps
App Closed
ImageTextImage
2023

Stability AI

Stable Diffusion

Released text-to-image weights openly and small enough to run on consumer GPUs

2Caps
Model Open weights
TextImageImage
2022

Black Forest Labs

FLUX

Generates high-resolution images with a rectified-flow transformer

2Caps
Model Open weights
TextImageImage
2024

OpenAI

DALL·E 3

Rewrites a long prompt into a detailed description, then draws the image

2Caps
Model Closed
TextImage
2023

ByteDance (Seed)

Seedream

A text-to-image model with native high resolution and strong text rendering

1Caps
Model Closed
TextImage
2024

Organizations involved

Typical uses

  • Removing clutter and swapping backgrounds in product photos
  • Portrait retouching and restyling
  • Swapping assets in ads and posters
  • Restoring old photos and filling missing parts

How it is evaluated

Edit-direction consistency
Whether the CLIP-space shift matches the instruction direction
FID
Distribution gap to real images, guarding against degrading realism
Human rating
Ratings for instruction completion and preservation

Limits and hard parts

  • Boundary, lighting and noise in the repainted area often mismatch the surroundings and need several passes
  • Multi-part requests — new outfit, new background, new expression — usually complete only some of them
  • Large edits drift the identity, so the face stops resembling the original person

Concepts behind it

Generative AI

Diffusion ModelsIntermediate

Learn a thousand tiny denoising steps, and you can build an image from pure noise

5Linked
Figures 1 · Data 1

Generative AI

Multimodal GenerationIntermediate

One model that learns to speak, to draw, to move — even to model the 3D world

5Linked
Figures 2 · Data 1