Custom node for ComfyUI that generates images with Alibaba Cloud DashScope Image Generation API.
The node supports Qwen Image models, regional DashScope endpoints, custom workspaces, deterministic seeds, and direct image output inside ComfyUI workflows.
If this node is useful to you, consider supporting its development:
- Generate images from text prompts with DashScope.
- Select the DashScope region from the node.
- Enter a custom DashScope
workspace_id. - Support for configurable image size, seed, and generation steps.
- Synchronous requests compatible with APIs that do not support asynchronous calls.
- Returns the generated image directly as a ComfyUI
IMAGEoutput.
- ComfyUI
- Python 3.9 or newer
- A DashScope API key
- A DashScope workspace in the selected region
Clone or download this repository into the ComfyUI custom_nodes directory:
ComfyUI/
└── custom_nodes/
└── ComfyUI-DashscopeImage/
Install the Python dependencies from the ComfyUI environment:
pip install -r requirements.txtRestart ComfyUI after installation.
Add the Dashscope Image Generation node to your workflow and fill in:
| Field | Description |
|---|---|
model |
DashScope image model to use. Defaults to qwen-image-3.0. |
region |
Region where the workspace and API key were created. |
workspace_id |
DashScope workspace identifier, for example ws-.... |
api_key |
API key created in the selected DashScope region. |
prompt |
Description of the image to generate. |
size |
Output image dimensions. |
seed |
Numeric seed used to control generation randomness. |
steps |
Number of generation steps. |
The API key and workspace must belong to the same region. Using a key from another region can result in an authentication error.
The current node includes:
qwen-image-3.0qwen-image-2.0-proqwen-image-2.1-proz-image-turbowan2.6-t2iwan2.7-image-providu/vidu-image_reference2image
Model availability may depend on the selected region and workspace.
cn-beijingcn-hongkongap-southeast-1(Singapore)ap-northeast-1(Tokyo)eu-central-1(Frankfurt)us-east-1(Virginia)
The node currently supports:
512*1024
768*512
768*1024
1024*576
576*1024
1024*1024
The node uses synchronous generation by setting is_async=False. Make sure you are using the current version of this node and restart ComfyUI after updating it.
The seed must be a 32-bit signed integer. The node limits the seed to the range accepted by DashScope.
Check that:
- The API key was created in the selected
region. - The
workspace_idbelongs to that region. - The selected model is available in the workspace.
This project is licensed under the Apache License 2.0. See LICENSE for details.