Established

Scoped region edit

Constrain generation to a selected region, layer, or range so the rest is guaranteed untouched.

Help center headerhero-1200×600.png v2 · approved by Maya
Click an object to select it.
Selection
Nothing selected. Everything is locked.

Try it: Click the mug (or the screen, or the plant), then generate. Only the selected area changes; the rest of the approved image stays identical.

In the wild

How 2 products ship this pattern. Click a screenshot to enlarge it.

Ideogram canvas: a patterned pillow reference on the left and a loveseat photo on the right with both pillows painted in pink mask, inside a resizable generation window.
Ideogram
Magic Fill regenerates only the pink-masked pillows. A separate generation window sets how much surrounding context the model sees, and the rest of the image stays as it was.
Source: Ideogram docs ↗
Two panels of a red ball on white fabric: the original, and the same image with the ball covered by a green hatched selection mask.
Midjourney
In the Editor, a smart selection masks just the object to change. Only the masked area is regenerated, and the fabric around it is left alone.
Source: Midjourney docs ↗

When to use

Image, video, code and document editing where the user has already accepted most of the output.

Seen in

Photoshop Generative Fill, Firefly inpainting, Runway motion brush, Cursor selection edit.

For engineers

Composite the patch client-side over the original; keep the untouched pixels or tokens byte-identical.

Build prompt

A neutral, component-only prompt for a coding agent. Edit the stack block or anything else to fit your project, then copy it.

Download this prompt as Markdown, or every prompt as JSON for an agent.

Critique checklist for tuners

0 of 4 checked

These questions apply to every pattern in this family. Ticks are saved in this browser.