FLUX.2 klein inpaint
Five tabs, two models, one GPU slice. Brush a region and repaint it, place an object from a reference photo, expand the canvas, or draw a 16 to 64 pixel sprite.
- Repaint and Use a reference and Expand run FLUX.2 klein 4B, an inpainting model. Pick a sample to start with the area already brushed and a prompt filled in, then press the button.
- Pixel art runs the same klein with a style LoRA that repaints a 3D map render as pixel art.
- Pixel sprites runs LiliPixel, a 191M model that draws at native 16, 32 or 64 pixels. It has a guidance slider because it is a different model, and guidance there does matter.
Tips for the klein tabs: describe the whole scene, not just the patch, because the model reads the prompt as a full image description. Raise strength when the new content should replace what is under the brush completely. Lower it when you want the original structure kept. There is no guidance slider on those tabs because klein is guidance distilled, the classifier free guidance is off and changing that number changes nothing. Steps is the only knob that matters, and four is enough.
Removal leaves a ghost when the brush stops at the object edge. Grow the brush by, in pixels, dilates the mask before the model sees it.
ZeroGPU gives anonymous visitors a handful of generations per day. If you hit the limit, sign in with a Hugging Face account and the quota is per account instead.
Other demos on this account: background remover, browser transcription, tiny-voca text to speech, FLUX.2 klein inpainting.
Quick actions fill the prompt and the settings. Brush first, then pick one.
Removal needs the brush to sit past the edges of the object, otherwise the silhouette comes back as a ghost. Grow the brush does that for you, in pixels, and the mask panel shows the area the model actually sees.
Brush the place in the scene, add a picture of the thing that should go there, and the model inserts it with the lighting of the scene. This is the pipeline's own reference mode, with the mask blurred the way its example does.
The same klein 4B with the FastCello LoRA loaded, which repaints an oblique 3D map render as warm pixel art and keeps every road, building and tree in place. The LoRA is applied for this call and removed after it, so the other tabs are unaffected.
Grow the canvas around a picture and the model paints the new border, matching the light and the content of the original. Useful for wallpapers, for giving a portrait some room to breathe, or for turning a square photo into a wide one.

The second model in this Space is LiliPixel, a 191M from scratch pixel art model that draws at native 16, 32 or 64 pixels. Short prompts work best, and ending with comma transparent background gives a cutout sprite. Pick 64 with 50 steps for the realism mode.