Skip to content

Inpainting

Inpainting lets you mask a region of an image and have an AI model generate replacement content. This is useful for removing objects, changing backgrounds, replacing text, or adding new elements to a scene.

  1. You provide a source image, the original frame
  2. You create a mask, a black-and-white image where white areas indicate what should be replaced
  3. You write a prompt, describing what should appear in the masked region
  4. The AI model generates a new image with the masked area filled in according to your prompt

Select a still image on your Premiere Pro timeline or in the Project Bin. modelBridge will detect the selection and show it in the media card.

Search for “inpainting” in the model selector or use the Add & Remove Objects filter chip. Common choices include FLUX-based inpainting models and Stable Diffusion inpainting variants.

An inpainting model shows a mask card reading Draw or drop a mask. Click it to open the mask editor over your source image:

  • Brush, paint over the regions you want to replace
  • Eraser, correct mistakes in the mask
  • Brush size, adjust for precision or broad strokes
  • Undo and Clear mask, step back or start over

Press Done to use the mask, or Cancel to leave without changes. To replace everything except what you painted, turn on the Invert switch under the card before you press Done.

The areas you paint become the white part of the mask, that is what the AI will regenerate. Everything else remains unchanged.

Tips for effective masks:

  • Be generous with edges, extend the mask slightly beyond the object boundary for cleaner blending
  • Mask complete objects, partial masks can create odd artifacts where the original and generated content meet
  • Keep it simple, mask one area at a time for best results

Describe what should appear in the masked area. Be specific:

  • Removing an object: “Clean background, matching the surrounding grass and sky”
  • Replacing content: “A red sports car parked on the street”
  • Adding elements: “A small wooden bench under the tree”

If you leave the prompt empty, most models will attempt to fill the region with content that matches the surrounding context (essentially object removal).

Depending on the model, you may see additional parameters:

  • Strength, how much the AI should change the masked area (lower values preserve more of the original)
  • Guidance scale, how closely the model follows your prompt
  • Steps, number of inference steps (more steps = higher quality but slower)

Click Generate. The result is a new image with the masked region replaced. It opens in the Source Monitor, and the preview card lets you Import it to the timeline, Save to bin, or Discard it.

Preview the result. If the replacement is not satisfactory:

  • Adjust the mask, make it larger or smaller
  • Refine the prompt, add more specific details
  • Try a different model, each model handles inpainting differently
  • Adjust the strength parameter, lower for subtle changes, higher for complete replacement

If you prefer to create masks externally (in Photoshop, for example), drag the mask image onto the mask card, or paste a link to it under the card’s Paste URL tab, instead of drawing one in the panel. The mask should be:

  • The same resolution as the source image
  • Black where content should be preserved
  • White where content should be replaced

Extend the mask slightly beyond the object edges. A tight mask often creates visible transitions between original and generated content.

AI-generated content does not match lighting

Section titled “AI-generated content does not match lighting”

Add lighting descriptions to your prompt: “matching the warm afternoon sunlight from the left side.” This helps the model maintain visual consistency.

Some inpainting models output at a fixed resolution. The result may need to be scaled to match your project settings after import.

For advanced techniques, denoising strength recommendations, and outpainting workflows, see Inpainting & Outpainting in modelBridge Academy.