r/comfyui_elite • u/Altruistic_Tax1317 • 1h ago
Qwen Image 2.1: Automated Multi-Reference Editing in ComfyUI
built a Qwen Image 2.1 multi-reference workflow that writes its own prompt.
Writing prompts for multi-image edits by hand gets tedious fast—you have to map every object, character, or element to its image index and describe how they fit together.
With this workflow, you drop in a base image and up to nine reference images (products, characters, props, clothing, style elements, etc.). Qwen3-VL (via the built-in TextGenerate node) runs twice before the edit: first, it auto-labels each reference with a single word. Then, it views the references again with those labels stamped onto them and writes a structured clause for each slot—like `"add the [item] from <image2>, which is..."`.
The part I found most useful is manual label overrides. In my test with all nine slots active, one of the elements (a set of curtains) got ignored by the model. Simply typing `"window curtains"` into that slot's override box—keeping the exact same seed and settings—gave the prompt writer enough context to place them properly.
Requirements:
* Qwen Image 2.1 models (diffusion, Qwen3-VL text encoder, VAE)
* Custom nodes (all available in ComfyUI Manager): KJNodes, Comfyroll, pysssss Custom Scripts, WAS Node Suite, ControlAltAI, and rgthree
Video walkthrough: https://youtu.be/rLTWX1zX72E?si=sE2H9OCK9c6VehH1
Workflow:https://drive.google.com/file/d/1D5oSlJbskeYVrSv6_vYNXMu7G_xutwfU/view?usp=sharing