Qwen-Image Edit Fast (Lightning)
Upload one image and pick a task or write an instruction, and Qwen-Image-Edit changes it in a few steps. Good for background swaps, product shots and character edits.
- L40S
- Image editing
- Free template

How it works
The edit itself runs on qwen_image_edit_fp8_e4m3fn.safetensors, loaded through UNETLoader, with qwen_2.5_vl_7b_fp8_scaled.safetensors as the text encoder and qwen_image_vae.safetensors as the VAE. A LoraLoaderModelOnly applies Qwen-Image-Lightning-4steps-V1.0, which is what makes this the fast variant.
Your image is scaled by ImageScaleToTotalPixels, encoded with VAEEncode, and sent with the prompt into TextEncodeQwenImageEdit. ModelSamplingAuraFlow and CFGNorm adjust the model, and KSampler and VAEDecode produce the result.
Prompt handling is the distinctive part. The task enum lists many presets such as Qwen-Image-Edit Auto-Task, character outfit and pose edits, relighting, colorize, remove text and more. SystemPromptTaskGenerator builds the system prompt for the chosen task, and an LLMToolkitTextGeneratorStream node with an OpenAIProviderNode can rewrite your text when enhancing is on. SwitchAny nodes choose between the enhanced and manual prompt.
Tips
- Turn enhancing off and write a full instruction yourself if you do not have an OpenAI key in machine secrets.
- Use the task preset that matches your goal, then put specifics in the prompt, like the banana juice ad example.
- For quoted text in the image, put the exact words in quotes.
- For two reference images, see the Dual Qwen-Edit workflow instead.
What you can use it for
- Replacing product backgrounds for ad shots
- Editing a character outfit, pose or expression
- Adding or removing objects
- Quick edits where speed matters more than maximum quality
Run it in three steps
Open the template
Click Run on ComfyDeploy. The workflow, its custom nodes and models are set up for you on a cloud machine.
Add your inputs
Provide input image and edit instruction in the playground or the ComfyUI editor.
Run, share or deploy
Run it on an L40S, share it with your team as a playground, or deploy it as an API endpoint.
Frequently asked questions
What GPU does the fast Qwen-Image-Edit workflow need?
The recommended GPU is an L40S. It uses qwen_image_edit_fp8_e4m3fn with the 4-step Lightning LoRA.
What does the prompt enhance toggle do?
When prompt_on_off is on, an LLM node (an OpenAI provider in the graph) expands your text using the selected task before it reaches the model. When off, your text is used as written.
How do I run Qwen-Image-Edit Fast as an API?
Deploy it on ComfyDeploy and call the endpoint with the image, task, prompt and seed. The generated output is returned from the API response.


