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.
How Inpainting Works
Section titled “How Inpainting Works”- You provide a source image, the original frame
- You create a mask, a black-and-white image where white areas indicate what should be replaced
- You write a prompt, describing what should appear in the masked region
- The AI model generates a new image with the masked area filled in according to your prompt
Step-by-Step
Section titled “Step-by-Step”1. Select a Source Image
Section titled “1. Select a Source Image”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.
2. Choose an Inpainting Model
Section titled “2. Choose an Inpainting Model”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.
3. Draw the Mask
Section titled “3. Draw the Mask”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
4. Write a Prompt
Section titled “4. Write a Prompt”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).
5. Adjust Parameters
Section titled “5. Adjust Parameters”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)
6. Generate
Section titled “6. Generate”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.
7. Evaluate and Iterate
Section titled “7. Evaluate and Iterate”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
Mask Upload
Section titled “Mask Upload”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
Common Issues
Section titled “Common Issues”Visible seams at mask boundaries
Section titled “Visible seams at mask boundaries”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.
Result is a different resolution
Section titled “Result is a different resolution”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.