Image Editing (New) - After
Image Editing (New) - Before

The Qwen-Image-Edit model represents a significant leap forward in the realm of image editing, leveraging advanced open-source technology to offer unparalleled flexibility and precision. Unlike previous models that often required multiple steps and manual adjustments, Qwen-Image-Edit simplifies the process by integrating cutting-edge algorithms capable of understanding and executing complex edits. This model excels in tasks such as background alteration, object replacement, and character outfit changes, providing users with a seamless editing experience.

What sets Qwen-Image-Edit apart is its ability to maintain high image fidelity while executing intricate edits. Traditional models often struggle with preserving the original image's quality, especially when performing substantial modifications. However, Qwen-Image-Edit employs sophisticated techniques that ensure the final output retains the original's visual integrity. This makes it an invaluable tool for professionals and hobbyists alike who demand precision and quality in their image editing projects.

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.

02_qwen_Image_edit_subgraphed.json
Fetching workflow JSON…

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

Frequently Asked Questions

View all workflows
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates