What's the best workflow for perfect product insertion (Ref Image + Mask) in 2025?

Question - Help

Hey everyone,

I've been going down a rabbit hole trying to find the state-of-the-art API based workflow for what seems like a simple goal: perfect product insertion.

My ideal process is:

  1. Take a base image (e.g., a person on a couch).
  2. Take a reference image of a specific product (e.g., a specific brand of headphones).
  3. Use a mask on the base image to define where the product should go. This one is optional though, but assumed it would be better for high accuracy
  4. Get a final image where the product is inserted seamlessly, matching the lighting and perspective.

Here's my journey so far and where I'm getting stuck:

  • Google Imagen was a dead end. I tried both their web UI and the API. It's great for inpainting with a text prompt, but there’s no way to use a reference image as the source for the object. So, base + mask + text works, but base + mask + reference image doesn't.
  • The ChatGPT UI Tease. The wild part is that I can get surprisingly close to this in the regular ChatGPT UI. I can upload the base photo and the product photo, and ask something like "insert this product here." It does a decent job! But this seems to be a special conversational feature in their UI, as the API doesn't offer an endpoint for this kind of multi-image, masked editing.

This has led me to the Stable Diffusion ecosystem, and it seems way more promising. My research points to two main paths:

  1. Stable Diffusion + IP-Adapter: This seems like the most direct solution. My understanding is I can use a workflow in ComfyUI to feed the base image, mask, and my product reference image into an IP-Adapter to guide the inpainting. This feels like the "holy grail" I'm looking for.

Another opportunity I saw (but definitely not an expert with that):

  1. Product-Specific LoRA: The other idea is to train a LoRA on my specific product. This seems like more work upfront, but I wonder if the final quality and brand consistency are worth it, especially if I need to use the same product in many different images.

So, I wanted to ask the experts here:

  • For perfect product insertion, is the ComfyUI + IP-Adapter workflow the definitive way to go right now?
  • In what scenarios would you choose to train a LoRA for a product instead of just using an IP-Adapter? Is it a massive quality jump?
  • Am I missing any other killer techniques or new tools that can solve this elegantly?

Thanks for any insight you can share!

Posted Jul 19, 2025, 7:46 PM UTC

21
Loading comments…