Creative Studio
API
Resources
Features
About Us
Download
AI Image · Inpaint

AI inpainting: replace anything in a photo

Add it, swap it, change it — inside the frame. AI inpainting regenerates just the area you mask, so you can drop a new element into a photo. Here's a real before/after.

A green countryside under a big sky with a colourful hot-air balloon added into the sky by AI inpainting.
On this page
  1. An empty sky, filled
  2. How to inpaint a photo
  3. FAQ
The short answer

Open the photo in Kling's Inpaint tool, brush the region you want to change, and prompt what should appear there. Inpaint regenerates only the masked area — adding an element, swapping one, or changing part of a scene — while the rest stays put. Match the scale and lighting in your prompt so the new element blends in naturally.

An empty sky, filled

The first image is the original countryside photo with a wide empty sky. Below it, the same photo with a hot-air balloon inpainted into the sky — masked, prompted, and blended to match the light. Both are real, unedited generations:

A rolling green countryside under a big empty blue sky.
Original photo
The same scene with a colourful hot-air balloon added into the sky, matched to the afternoon light.
After inpainting

New element, same photo. Only the masked sky region was regenerated — the hills, path and light stay exactly as they were, so the balloon reads as if it was always there.

How to inpaint a photo

1

Open the photo in Inpaint

Load your image into Kling's Inpaint tool. Inpaint is for replacing or adding content inside a region you choose — the counterpart to Remove, which only erases.

2

Brush the area you want to change

Mask the region cleanly — the empty sky, a blank wall, an object to swap. Keep the mask to just the area you want regenerated; a tidy mask keeps the rest of the photo untouched.

3

Prompt what should appear there

Describe the new content for the masked area — “a colourful hot-air balloon drifting in the sky.” Name the lighting and angle so it matches the photo (“soft afternoon light, small in the distance”).

4

Generate options and blend-check

Inpaint returns a few fills. Pick the one where the new element sits naturally — right scale, right light, clean edges — and looks like it belongs, not pasted on. If the seam shows, remask a touch wider and try again.

It invents, it doesn't reveal

Inpaint fills the masked area with newly-generated content that blends with the surroundings — it doesn't uncover anything that was truly there. That's ideal for creative edits: add a balloon, swap an object, change a backdrop. The usual tell is mismatched lighting, so describe the scene's light and scale, and pick the most natural blend. And keep it honest — don't inpaint elements into a photo that others trust to be a true record.

Frequently asked questions

What is AI inpainting?
Redrawing a selected part of an image so the replacement matches everything around it. You mark the area, describe what should be there instead, and the model regenerates just that region with the surrounding light, texture and perspective carried through.
How do you remove text from an image using AI inpainting?
Mask the text and describe what should be underneath — the wall, the sky, the fabric. Naming the surface matters: an unlabelled mask leaves the model guessing, and guessing is where you get smears.
How do you remove a text overlay from a photo?
Same method, but check the edges. Overlays often sit on top of detail — a face, a pattern, a hard line — and that detail has to be invented back. Zoom in on the boundary before you call it done.
When does inpainting fail?
When the masked area covers something with strict structure: text you want preserved, a face at an angle, repeating geometry like brickwork or window frames. Small masks succeed far more often than large ones.
Kling AI Team
Kling AI

Written and tested by the Kling AI team, who build the image, video and effects tools behind Kling.

One mask, one new element

Inpaint a photo now

Open a photo, brush an area, and prompt exactly what should appear there.