AI Generation

What Is Outpainting? Extending an Image Past Its Frame

Also called generative fill, image extension, uncrop, canvas expand

Outpainting extends an image beyond its original borders, generating new pixels outside the frame so they continue the existing scene. It is the same masked fill mechanism as inpainting, just pointed outward: you enlarge the canvas, mark the empty area as the region to fill, and the model paints what would plausibly have been there.

What the model is actually doing

An outpainting pass starts by placing your image on a larger canvas. The empty area becomes a mask, and the model is asked to fill that mask so it agrees with the pixels it can already see. The original image is not regenerated. Those edge pixels are the only evidence the model has about what belongs outside the frame.

That one fact explains most outpainting behavior. If the edge of your photo holds half a doorway, you get a doorway. If it holds a shoulder, you very often get an entire second person, because a shoulder is the strongest hint available and the model completes the pattern it recognizes. Tools label the feature differently (generative fill, uncrop, AI outpainting) but the underlying mask-and-fill step is the same everywhere.

How far to extend per pass

Extend 25 to 40 percent of the canvas at a time. Three passes at 30 percent beat one pass at 100 percent, and each pass gives you a checkpoint you can reject before compounding an error.

Two other habits matter as much as the step size:

  • Keep real overlap. The mask should begin a few dozen pixels inside the existing image so the model blends instead of butt-joining. Most tools expose this as feather or mask blur. Wider feather hides seams; too wide and it repaints detail you wanted to keep.
  • Watch the pixel budget. A 1024-wide render spread across a canvas twice as wide leaves your subject at half the detail it had. Extend, then upscale.

The failure modes worth recognizing

  • Duplicated subject. A person, tree, or window repeats in the new area. Cause: subject too close to the edge. Fix: smaller expansion, tighter starting crop, negative prompt.
  • Horizon drift. New ground and sky do not line up with the old. Cause: a narrow strip carries almost no perspective information. Fix: extend one side at a time and state where the horizon sits.
  • Lighting mismatch. The new region is lit from the wrong side. Fix: name the light direction in the prompt, since the model will not infer it reliably from a strip of shadow.
  • Texture cloning. Visibly tiled grass, brick, or bokeh. Fix: reroll with a different seed. Rewording rarely helps with this one.

Writing the prompt for an extension

Describe the whole finished picture, not only the part being added. Conditioning is global, so a prompt that mentions the new area alone competes with the pixels the model can already see, and you get a scene that argues with itself.

Then state the frame you want. Outpainting is nearly always a reframing job, so say what belongs in the added strips: empty wall, more sky, a second doorway, nothing. Saying "nothing" out loud is often what stops the model from inventing a crowd.

Models that support this

Pulled from the live ZOOOP model catalog, so this list stays current as new models ship.

  • Eraser
  • Inpaint

The prompt for this

A starting point that reliably produces the effect. Adjust the subject and setting; keep the technical clauses.

Extend the scene sideways: a wet cobblestone alley at dusk, brick walls receding on both sides, warm shop light from the left, horizon at the lower third, no additional people

Try Outpainting yourself

Open the generator with a starting point already filled in.

Frequently asked questions

What is outpainting used for?
Mostly reframing. A 9:16 portrait becomes a 16:9 wide shot by adding both sides, a tight crop gets breathing room for a title or logo, and a photo that was framed wrong gets rebuilt instead of reshot.
What is the difference between outpainting and inpainting?
The mechanism is identical, only the mask changes. Inpainting fills a region inside the existing picture, outpainting fills region outside it. Outpainting is harder because the model has edge pixels on one side only, instead of context all the way around.
Why does outpainting duplicate my subject?
Because the subject sits too close to the edge, so it becomes the strongest pattern the model can see and it completes that pattern. Extend less per pass, or crop so the subject is not the dominant edge content, and add a negative prompt against a second person.
How much can I extend in one pass?
Roughly 25 to 40 percent of the canvas. Doubling the width in a single pass asks the model to invent more than it has context for, and the invented half stops matching in light and perspective.
Does outpainting reduce image quality?
Indirectly. Most models render into a fixed pixel budget, so a wider canvas means fewer pixels covering your original subject. Do the extension first and upscale last, never the other way around.

Related terms