Inpainting and Generative Fill

Inpaint is the technique of “painting” changes over an existing area of picture with AI, also known as Generative Fill. Simply provide an image to begin with, and you can change, remove, or add anything to it with a masking tool and a prompt. We will first literally paint the regions of the image that we want to change, and then use words to describe what should happen next.  It’s quite magical.

How to inpaint from TELEGRAM

Reply to an image with /inpaint sends a link to paint in your web browser.

You no longer have to prep your uploaded images, it just works.

Alternatively, you can reply to an image with /webui too, if you want to stay on the web instead of alternating between Telegram. It works either way.

First, render an image.  Try this prompt:

/render /sampler:dpm2m /steps:75 /guidance:7.5 /portrait 8kUHD, award winning photography, light art by Daniel muller, raw, 23yo, brunette, swedish woman, happy, gorgeous face, highly detailed facial features, technicolor erotic body lighting, beautiful body proportions, sweater, high detailed skin, realistic skin texture, realistic colorful light patterns on body, real hair movement, 16k, dslr, sony a7 mark iv, (beautiful lights on naked body, silhouette), euphoric, (dynamic shadows), (erotic body lighting) [[[nsfw, Sketch, painting, cartoon, anime, animation, cgi, rendered, doll, lifeless, sad, depressing]]] <realvis20>

Five images will appear.  Select the one you like by reply to it, and Reply with what you’d like to change about the image.  In this case, let’s go for an outfit change without changing the face.

/inpaint a woman wearing a black silk dress, luxurious diamond necklace

Don’t worry too much about getting your prompt perfectly yet, you’ll have one more chance. You can edit this in the next step if you change your mind.  Let’s try changing her outfit to something else.

A dynamic link to open the inpainting web app will immediately appear. Click on that and you’re taking to the mask painting screen.

The “Edit Inpaint” browser allows you to select the AI model on the left, expand positive and negative prompts (click refine inpaint prompt), and draw where you want your changes with a brush. Check our models page to get familiar with what these code names mean. This soon becomes second nature.

As this is a realistic image, we’ll go with URPM13-Inpainting.  Only two models are shown here, but there are over a dozen now to choose from.

Last step:  Refine your prompt, paint over the area with your finger or mouse cursor, and click the inpaint button.  You can then close the window.

Finished inpainted images should look seamless. Inpaint is amazing!

In case you missed it, we also provide a handy tool for instant background removal.


Uploading your own photos instead of using AI images?

Yes, it’s possible, but please do not use other people’s photos without consent, distribute “deepfake” images. Many cities now have steep fines for persons selling or sharing deepfakes, so please only use this for personal curiosities.

Blurry results?

Images around 768×768 work best, then /facelift to upscale 4x.

Wrong art style?

If the results do not look realistic or in the art style of the original image, try a different model from the selection menu.

Can I keep her face exactly the same, but…?

You mean a mustache?


Back to Tutorials