How to Swap a Product into an Existing Photo with AI
A nine-step guide to replacing the product in an existing photo with AI, from the source image and reference to light, shadow, labels, and tools.
Senior Writer

In this article
Key takeaways
What a product swap is
Step 1. Gather what the tool needs
Step 2. Choose a source photo that fits
Step 3. Decide how you'll point at the object
Step 4. Supply the real product as a reference
Step 5. Tell the model what to keep
Step 6. Generate a few versions and pick one
Step 7. Check shadow, reflection, and scale
Step 8. Lock the label and logo
Step 9. Export to the channel's rules
When a swap isn't the right move
Tools that can swap a product
Frequently asked questions
Key takeaways
A swap replaces the product and keeps the scene. That's a different job from building a new scene around a cutout, which our studio shot guide covers.
Pick a source photo where the old object is close to the new one. Similar size, angle, and perspective give the AI the least to invent.
Give the tool your real product as a reference. A written description won't match your item, and a clean pack shot (plus the logo as its own file) does.
Name what must stay the same. Tell the model to keep the lighting, composition, color grade, and camera angle, and to match the placement and scale of the object it replaces.
Labels and logos are the main failure. Check them at full size, and paste in the real label if the type comes out wrong.
What a product swap is
A product swap takes a photo you already have, such as a lifestyle shot, a stock scene, or an old campaign image, and replaces the item in it with your product. The room, the hands, the surface, and the light stay. Only the product changes.
It suits teams that have one good scene and many products, or a good scene and a product that changed.
Step 1. Gather what the tool needs
Collect a clean pack shot of the product, ideally with more than one angle, plus a separate file for the logo if it has one. If the product has a page with dimensions and materials, keep the link or copy the numbers, since some tools take them as text.
Don't pick a lifestyle photo of the product as the only reference. Melius's docs say to use a pack shot, and the logic applies everywhere. A reference with its own scene, hands, or props gives the model details it may copy into the result.
Step 2. Choose a source photo that fits
The swap works best when the object you're replacing looks like the object you're adding. Look for a source where the old item is clear and fully visible, similar in size and shape to yours, and seen from an angle you can match. A tall bottle swapped for a squat jar changes the whole composition, because the model has to rebuild what sat behind and around the old object.
Avoid a photo where hands cover half the product or where the old object sits behind glass. In an April 2026 piece, Fstoppers' Fynn Badgley found that inserting a product into an existing photo was harder than generating a new scene that already included it, so the closer your swap, the better.
Step 3. Decide how you'll point at the object
Tools ask for the target in three ways, and the choice shapes the rest.
A mask or brush. You paint over the object to replace. Pixelcut works this way, and Photoshop's Lasso selection feeds Generative Fill the same way.
A box. Some APIs let you set the object's position with coordinates. FLUX 3 Image takes optional box rows, though its docs call placement a strong hint and not a hard constraint.
A prompt only. Melius and Claid take the scene and the product and work from a description or a mode, with no mask step.
A mask gives tighter control over where the edit lands. A prompt-only flow is faster but leaves more of the image up to the model.
Step 4. Supply the real product as a reference
Upload the product photo as a reference so the model copies the real item and doesn't invent one. Most tools take it as a second image.
Say what each image does. The FLUX 3 Image guide recommends putting the base image first, referring to each image by position, and naming its role, as in "image 1 is the scene and image 2 supplies the object." It accepts up to 10 references, each at least 256 by 256 pixels. Other tools have their own slots for it. In Melius's recipe the scene goes into the image input and the product into the context input.
Step 5. Tell the model what to keep
Write the instruction so the model replaces the object and nothing else. Melius's docs give a working template, which asks the model to replace the object in the scene with the product from the reference, keep the lighting, composition, color grade, and camera angle identical, and match the placement, scale, and orientation of the original object.
Be specific about size. Fstoppers found that vague phrases like "a little smaller" were unreliable, and that percentages worked better. Melius's docs make the same point, suggesting a prompt such as "occupying about 30% of the frame width" when the scale is off.
Step 6. Generate a few versions and pick one
Run three or four versions and keep the one where the light matches. Look at each at full size, since previews are downscaled and can hide warped text. If one is close but wrong in a single spot, change that one instruction and run again, and don't start over.
Fstoppers noted that fixing one element can break another, such as a shadow or a reflection that was fine before. Compare each new version against the last, not just against the original.
Step 7. Check shadow, reflection, and scale
A product that floats has no contact shadow, and a product that looks pasted in has a shadow that points the wrong way. Check three things.
Contact shadow. The product should touch the surface and cast a shadow in the direction the other shadows in the scene point.
Reflections. Glass should show the room, and metal should pick up its surroundings. Reflective products are the hardest to place.
Scale. Compare the product against objects with known size in the scene, such as a hand, a cup, or a shelf edge.
If the light is the only problem, try a blending tool. Photoshop's Harmonize adjusts a placed subject to the color and lighting of its background, and it works on pixel layers.
Step 8. Lock the label and logo
This is where a swap fails most. A generator redraws the product from the reference, so a label can come back with slightly off lettering, curves, or clarity, and Fstoppers saw exactly that. A wrong label misleads buyers, which matters more than a wrong shadow.
Zoom to 100% and read every word on the pack, along with any numbers, certifications, and quantity marks. Where the type has to be exact, composite the real label or logo over the result in an editor. Some tools help with the repair step. Photoroom's Product Fixer lets you brush over an inaccurate area and supply reference photos of the real product, and corrections don't use extra AI credits. It's on Pro and above.
Regulated details deserve a human check before anything goes live.
Step 9. Export to the channel's rules
Resize and export for where the image will run. For marketplaces, our guides to Amazon image requirements and Walmart image rules cover sizes, backgrounds, and what a main image can contain. A swapped scene usually belongs in a secondary slot or an ad, since marketplaces ask for a plain background on the main image.
Keep the original scene, the product reference, and the final prompt together. Next month's swap takes minutes when you can reuse all three.
When a swap isn't the right move
If the new product looks nothing like the old object, or the scene has strong reflections and hands in contact with the item, generating a new scene around a clean cutout is often easier. Our studio shot guide walks through that route. A real reshoot is the safest option when the color, pattern, or texture is the product.
Tools that can swap a product
These tools approach the job differently, and the list isn't ranked.
Melius
Melius is a multi-model image and video workspace where an AI agent can build the workflow, and its docs have a product-swap recipe. A Product Swapper template (the docs also call it a preset) sits in the templates menu, and the manual version of the flow takes a scene image, a product pack shot, an optional product page link for dimensions and materials, and an optional logo as its own file. The docs suggest running three or four variations, re-prompting with a percentage when scale is off, and picking an OpenAI image model when packaging text has to be legible. Each run shows its credit cost before you generate, and Creator is $17 a month billed yearly ($20 monthly). The flow has no brush or mask step. The model regenerates the image from the prompt, so how closely the rest stays unchanged depends on the model you choose.
Best for: Swapping a product into a scene inside a workspace with image and video models.
Claid
Claid has a dedicated Product Swap mode that keeps the existing scene and replaces only the product. You upload the product photo and the composition to reuse, then generate one to four options. Claid says it works best when the product to replace is clearly isolated. The free trial gives 50 credits, and a single product swap costs 4 credits.
Best for: A direct upload-two-photos swap with no mask.
Adobe Photoshop
Adobe's Photoshop has Generative Fill, which can take a reference image, and Harmonize for blending a placed subject into its background. The Reference Image feature on the web version carries a Beta label in Adobe's help page. Photoshop is $22.99 a month on the annual plan billed monthly, and it has the steepest learning curve on this list.
Best for: Manual control over selection, placement, and blending.
FLUX 3 Image
FLUX 3 Image from Black Forest Labs is a developer route for people who work through an API. It takes up to 10 reference images, lets you name each image's role, and offers optional box rows for placement. Pricing is pay as you go, at $0.048 per 1K image.
Best for: Developers building a repeatable swap pipeline.
Bria
Bria offers a Product Embedding API that places one or more products into a predefined scene at coordinates you set, matching lighting, perspective, and look. Bria's docs describe embedding a product into a scene and not removing the item already there, so an object swap may need a removal step first. It's $0.032 per image, with 100 free generations.
Best for: Developers placing products at exact positions.
Pixelcut
Pixelcut offers an image replacer. You brush over the object, type a prompt, and fill. It works from your description and doesn't take a reference photo of your product, so it suits generic swaps more than branded packaging. Pro is $10 a month, or $8 a month billed yearly.
Best for: Quick prompt-based swaps of simple objects.
Photoroom
Photoroom is built around product photos, and its Product Fixer, covered in step 8, is where it fits this job. It repairs a product that another tool got wrong, and it isn't a swap engine itself.
Best for: Fixing label and detail errors after a swap.
Frequently asked questions
How do I replace a product in a photo with AI?
Pick a photo where the old object is close in size and angle to your product, give the tool a clean pack shot as a reference, tell it to keep the scene as it is, and generate several versions. Then check the label, shadow, and scale.
Can AI swap a product without changing the background?
It can come close, but it isn't guaranteed. Tools that regenerate the whole image from a prompt may shift small details, so compare the result to the original and pick the version that changed the least.
How do I keep the label and logo from warping?
Use a clean pack shot, pass the logo as its own file, and check the result at 100%. If the type is off, paste the real label over it in an editor.
Why does the swapped product look pasted in or floating?
Usually the shadow and light don't match the scene. Name the light direction in your prompt, check that the contact shadow points the same way as the others, and try a blending tool if only the light is off.
Do I need Photoshop to swap a product?
No. Several tools handle it with no editor, including ones that take two photos and return a swapped scene. Photoshop helps when you want manual control over placement and blending.
Is there a free AI product swap tool?
Some have free allowances. Claid's trial includes 50 credits, Bria has 100 free generations, and Pixelcut has a free plan with limited generative fill. Allowances change, so check each page before you plan around them.
Can I use a swapped photo as an Amazon main image?
Amazon asks for a plain white background on the main image, so a swapped scene usually fits a secondary slot or an ad better. Our Amazon and Walmart guides list each rule.
Written by
Claire Whitfield
Claire writes about AI image and video tools and judges them on output quality. Her first question for any tool is whether the product still looks right on the 10th generation.
Related articles


