How inpainting works
You give the model three things: the original image, a mask covering the area to change and, usually, a short prompt for what should go there. Google's Imagen editing documentation (last updated October 22, 2026) describes that same recipe of base image, mask and text prompt, advises describing the masked area rather than using a one-word prompt, and offers automatic masks for the background, the foreground or named classes of object, so the mask doesn't always have to be painted by hand. The same page lists those Imagen endpoints as deprecated, with gemini-2.5-flash-image as the replacement. The image, mask and prompt recipe isn't tied to one model, though.
Everything outside the mask stays as it was. That's the point: you keep a good image and fix one part of it.
How it shows up in ad creative
- Prop swaps. A pumpkin on the table becomes a bowl of lemons for a summer version.
- Clean-ups. A stray cable, a price sticker, crumbs, the photographer's reflection.
- Seasonal dressing. Snow on a windowsill or fairy lights on a shelf, without a reshoot.
- Localising. Changing a sign, a plug socket or a banknote so a scene fits another market.
The one area never to inpaint is the product's own label. Regenerating printed text and logos invites misspellings and lookalike artwork, which is how an ad ends up showing a product you don't sell.
Example: one sofa shot, three versions
Pellow, a fictional cushion brand, has one lifestyle photo it likes: two cushions on a grey sofa, a side table with a mug and a small pumpkin, warm autumn light.
| Mask | Prompt | Note |
|---|---|---|
| The pumpkin | A glass bowl of lemons | Summer props in autumn light can look off. Fine for a quick test, reshoot for a hero ad |
| The window | Snow on the ledge, grey winter sky | Check that the sofa's shadows still suit the new light outside |
| The mug | Left empty, to remove it | A cleaner table with room for a headline |
The cushions themselves are never masked. Say a retoucher would charge $26 to rework each image by hand. Three inpainted versions of one photo save that, and a reshoot, but each still needs a person to check the edges and the light.
How BulkAds handles it
BulkAds doesn't have a brush-and-mask editor. Its nearest tools work at the level of the ad: edit the headline, primary text or description, re-render an ad's image from the same idea while its copy stays as it is, or ask for variants of an ad you like. The product always comes from your real photo, and the pre-flight check compares each ad with it. For a pixel-level fix, edit the image in your usual editor and upload it to BulkAds as a finished creative.
Questions people ask
What's the difference between inpainting and outpainting?
Inpainting regenerates an area inside the picture. Outpainting adds new picture beyond the original edges, to make it wider, taller or a different shape. Both use a mask to mark the part the model is allowed to change.
Why does the inpainted patch look blurry or out of place?
The model has to match the surrounding light, grain and perspective, and a tight mask gives it little to work with. Make the mask a little larger than the object, describe the light in the prompt and compare the patch at full size.
Can I inpaint the text on an ad?
You can, but check every letter, because generated text is where errors creep in. For headlines and prices, adding the words as a real text layer in a design tool is more dependable than asking a model to paint them.
Related terms
Put it to work
- Features
Product photo ads
Your real packshot, in every scene
- Guides
Product photo ad ideas: turn one packshot into 20 ads
One clean packshot is enough for a full creative test. Eleven angles, how to brief each one, the sizes and copy to make, and how to launch 20 ads and learn from them.
- Prompt library
Background replacement prompts
Four background replacement prompts that move a white-background packshot into a kitchen, a balcony, a bedroom and a café, with the outputs and notes on each.
BulkAds AI is an independent product and is not affiliated with, endorsed or sponsored by Meta Platforms, Inc. Facebook and Instagram are trademarks of Meta Platforms, Inc.