AI AdventureAICreate with AIDay 12
🩹 Create with AI · Day 12

Erase & Redraw

Pros almost never make a picture in one shot. They generate, then edit — paint over a spot they don't like and let the AI redraw only that patch so it blends in. Grab a brush, scribble over part of the picture, and watch a fresh patch grow to fill the hole.

↓ grab a brush
🖌️ Lab · Inpaint Studio

Paint a hole. Watch AI fill it.

Drag your finger/mouse across the picture to mask a patch (it glows magenta). Then hit Regenerate patch: only that spot gets erased to static and re-grown from the colors around it — the rest of the picture never moves. That's how AI editing really works.

drag to paint a mask 🖌️
brush 16

Tiny mask = seamless, magic fix. Big mask over the main thing = the AI has to invent from the edges… and it guesses. Try both!

🐞 Break-It · Mask the star

Erase the main thing on purpose

Go back up and paint a big mask right over the most important object (the sun, the face, the house). Hit Regenerate. See how the fill turns into a smeary blob that doesn't match? Inpainting only knows the surrounding pixels — it can't see what used to be there, so it invents a guess from context. Small blemishes vanish; big holes get made up.

The lesson: generative fill isn't "undo" — there's no hidden original underneath. It hallucinates a plausible patch from the neighbours. That's power (remove anything!) and danger (it can invent stuff that was never real). 🎭
🔭 Lab · Outpaint

Grow the picture past its border

Inpainting fills a hole inside. Outpainting does the opposite: it adds a fresh border outside and lets the AI keep the scene going. Press Extend a few times and watch the frame grow — the new edges are generated from whatever was touching them.

200 × 200 — press Extend 🔭

Notice the new border continues the colors at the edge — but it's inventing, so it gets vaguer the farther out it goes. Real tools like Photoshop's "Generative Expand" do exactly this, way sharper.

🏷️ The pro wordsRedrawing a chosen region so it blends in is inpainting; growing the picture past its border is outpainting. The region you choose is a mask. Together this is generative fill — the core of AI image editing. It's how pros remove a photobomber, fix a blemish, or extend a poster, instead of re-rolling the whole image and hoping.
🎯 Boss · Fix the Photo

Make the blemish disappear

Each photo has an ugly blemish stamped on it (the glowing splotch). Paint a mask that covers it, then hit Fix it. If your mask covers the blemish, generative fill rebuilds clean pixels from around it and it's gone. Clean up 3 photos to win the badge!

paint over the splotch 🖌️
Fixed: 0 / 3

Cover the whole splotch — miss a corner and the fill leaves a smudge, just like real life. 🩹

🚀 Beyond the Basics

Where you've already seen this

The mask-and-regenerate move you just did is shipping in the tools artists use every day:

🖼️

Generative Fill (Photoshop)

Select a region, type what you want, and it inpaints it — add a hat, swap the sky, erase a tourist.

🧹

Object removal (Magic Eraser)

Phones now erase people and objects by masking them and inpainting the background. Same idea, one tap.

↔️

Generative Expand (outpainting)

Turn a square photo into a wide banner by growing the edges. The AI dreams up what was "off-camera".

🏷️ Pro names to look upReal tools do this with a diffusion model that's told which pixels are "keep" and which are "regenerate" via the mask. Look up inpainting, outpainting, and generative fill. Removing a person? That's object removal.
🔬 Real Model Lab (optional)

Let a real model pick the mask

Hand-painting is fun, but pros let AI find the region too. This loads a real segmentation model (SegFormer) that runs on your device. It looks at the Inpaint Studio picture, labels every area (sky, tree, person…), and you tap one to auto-mask it — then Regenerate up top.

not loaded

First load downloads from Hugging Face, then it's cached offline. On a 4GB laptop give it a minute. ☕ Totally optional — the brush above already teaches the whole idea.

🎉 Day 12 Complete!

You stopped generating and started editing. You masked a region and let AI redraw only that patch (inpainting), grew a picture past its edges (outpainting), and learned the catch: there's no hidden original — the fill is a smart guess from the neighbours.

Day 13: Boss the Picture Around →
Tomorrow: instead of hoping a prompt gives the right layout, you'll force the generator to obey your exact structure — edges, poses, the works. 🎨
AI Adventure · Create with AI · Day 12 — made for young inventors 🚀