This workflow teaches you how to insert a furniture asset into an interior render with clean edges, correct lighting, and high pixel fidelity. It combines manual masking (Painter) with smart inpainting and patch-based upscaling to keep your room render sharp. The core flow crops the masked region with InpaintCropImproved, synthesizes and blends the furniture using ByteDanceSeedreamNodeV2, then stitches the result back into the original image with InpaintStitchImproved so the full canvas remains unchanged outside your edit.
You’ll load your room render and the furniture reference via LoadImage, optionally sanitize transparency with ImageRemoveAlpha+ to avoid halo artifacts, and harmonize colors with ColorTransfer so the inserted piece matches the scene’s lighting. PrimitiveStringMultiline holds any guiding text (e.g., materials or style cues) for the generative step. PreviewImage and ImageCompare help you iterate quickly, and SaveImage captures the final composite. The result is a practical, repeatable edit pipeline for product visualization, staging, and design reviews.
API
Use this workflow from code
Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.
Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
// Install (beta)
npm i @comfyorg/sdk
// Run this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).
Comfy Cloud API access requires a plan with an API key.
FAQ















