Qwen-Image Union Control - After
Qwen-Image Union Control - Before

The Qwen-Image Union Control workflow is designed to provide users with precise structural control over image generation using the Qwen-Image model's unified ControlNet LoRA. This workflow integrates multiple control types, such as canny, depth, lineart, softedge, normal, and openpose, allowing for a wide range of creative applications. By leveraging these controls, users can guide the image generation process to produce results that closely match their artistic vision or project requirements.

Technically, this workflow utilizes a series of nodes to process and refine images. The 'LoadImage' node initializes the process by importing the reference image. The 'Canny' node is employed to detect edges, providing a structural outline that guides the image generation. The 'ImageScaleToTotalPixels' node ensures that the input image is resized appropriately to avoid poor output results. The 'PreviewImage' node allows users to visualize the intermediate results, while the 'SaveImage' node finalizes the process by saving the generated image. This workflow is particularly useful for artists and designers who require a high degree of control over the structural aspects of their images.

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/1af3df552a07.json
Fetching 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 "Qwen-Image Union Control" (Python)
from comfy_sdk import Comfy

client = Comfy(api_key="comfyui-...")

# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("image_qwen_image_union_control_lora_api.json")

asset = client.assets.from_file("input.png")
wf.set_input("73", "image", asset)  # LoadImage

job = client.run(wf)
for output in job.get_outputs("60"):  # SaveImage
    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

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