This ComfyUI tutorial workflow shows how to perform fast, instruction-based image edits using Qwen-Image-Edit-2511. It wires a simple I/O path—LoadImage (or VHS_LoadVideo for frames) into a compact Subgraph node (ID cdb2cf24-c432-439b-b5c8-5f69838580c9)—and ends with SaveImage. Inside the subgraph, the edit is driven by the Qwen 2.5 VL text encoder (qwen_2.5_vl_7b_fp8_scaled.safetensors) and a lightweight LoRA tuned for speed (Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors). The subgraph encapsulates the model plumbing so you can focus on a plain-language instruction like “make the sky overcast” or “remove the background,” then preview results quickly.
Technically, the workflow routes your source image (or video frames) into the subgraph, where the Qwen 2.5 VL encoder interprets your instruction text and conditions the edit. The Qwen-Image-Edit-2511 Lightning LoRA applies the learned edit behavior while keeping inference fast with very few sampling steps. Because this is packaged as a Subgraph, you get a clean graph and consistent defaults—you can double-click or open the subgraph to inspect or tweak internals as needed. SaveImage captures each result frame to disk; when fed by VHS_LoadVideo, you’ll get a numbered image sequence you can reassemble externally if you want a final video.
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.
GET https://comfy.org/workflows/download/a6b2c3fe248c.jsonFetching workflow JSON…
Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
# Install (beta)
pip install comfy-sdk # Python
npm i @comfyorg/sdk # TypeScript
# Run this workflow (Python)
from comfy_sdk import Comfy
client = Comfy(api_key="comfyui-...")
wf = client.workflows.from_file("workflow_api.json")
job = client.run(wf)
for output in job.get_outputs("<output-node-id>"):
output.to_file(output.name)The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key
FAQ
















