The 'Qwen Image Edit 2511 - Material Replacement' workflow is designed to seamlessly replace materials in objects, such as furniture, using advanced image editing techniques. This workflow leverages the Qwen-Image-Edit model, which is specifically tuned for material replacement tasks. By combining reference images with the Qwen-Image-Edit-2511 model, users can achieve realistic and visually appealing material transformations. The workflow utilizes a series of nodes including SaveImage, LoadImage, and MarkdownNote to guide the process from image input to final output.
Technically, this workflow operates by first loading the target image using the LoadImage node. The Qwen-Image-Edit model is then applied to edit the material properties of objects within the image, guided by reference images that define the desired material characteristics. The SaveImage node is used to store the final edited image. This workflow is particularly useful for designers and content creators who need to visualize different material options on existing objects, providing a cost-effective and time-efficient alternative to physical prototyping.
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 "Qwen Image Edit 2511 - Material Replacement" (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("image_qwen_image_edit_2511_api.json");
const asset = client.assets.fromFile("input.png");
wf.setInput("41", "image", asset); // LoadImage
const job = await client.run(wf);
await job.getOutputs("9")[0].toFile("output.png"); // SaveImageThe 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















