dashscope-imagegen for Openclaw

An advanced image generation skill powered by Alibaba Cloud's DashScope wan2.6-t2i (通义万相) model for creating high-quality visual assets.

chaoyang78
v1.0.0
May 21, 2026
0
710
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install dashscope-imagegen

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install dashscope-imagegen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is dashscope-imagegen?

dashscope-imagegen is a specialized technical tool for generating high-quality images directly within your workflow using Alibaba Cloud's cutting-edge DashScope wan2.6-t2i (通义万相 2.6) text-to-image model. This module is an excellent example of how Openclaw Skills expand the capabilities of your AI agents, allowing them to instantly produce rich, customized illustrations, design drafts, or marketing assets.

With robust support for both English and Chinese prompts, automatic prompt extension, and flexible size options, this skill integrates seamlessly with your execution environment to fetch high-resolution PNG outputs asynchronously.

dashscope-imagegen Use Cases

  • Generating high-quality custom illustrations and visual assets via natural language prompts.
  • Creating UI design placeholders, design drafts, or mockups on-the-fly during frontend web development.
  • Mass producing localized marketing banners using native English and Chinese prompts.
  • Programmatically generating images for automated pipelines by leveraging various Openclaw Skills.

How dashscope-imagegen Works

  1. The AI agent accepts user instructions containing visual generation prompts and parses optional configuration parameters.
  2. The underlying execution tool runs the dashscope-imagegen.py script with the supplied options.
  3. The script sends an asynchronous request to the Alibaba Cloud DashScope API, utilizing the DASHSCOPE_API_KEY key stored in the environment.
  4. The script polls the server continuously (typically taking 10-20 seconds) until the generation is complete.
  5. Upon completion, the image is downloaded as a high-quality PNG to the designated folder, or its URL is printed based on user preferences.

dashscope-imagegen Setup

Ensure you have your environment set up with your API key before utilizing this module.

  1. Configure your API key inside your environment file:
# Add your API key to ~/.openclaw/.env
DASHSCOPE_API_KEY="your_dashscope_api_key_here"
  1. Execute the image generation script with your desired prompt:
# Generate a standard 1024*1024 image
python3 ~/.openclaw/scripts/dashscope-imagegen.py "A futuristic cityscape at sunset"
  1. Verify that output files are successfully saved to your working directory or specified target directory.

dashscope-imagegen Data Schema & Taxonomy

The following parameters can be configured when executing this Openclaw Skills option:

Parameter Type Default Description
prompt String (Required) Textual description of the image to generate. Supports Chinese and English.
--size String 1024*1024 Image dimensions (must not exceed ~1.5M total pixels).
-n Integer 1 Number of images to generate.
--negative String None Text terms or styles to exclude from the generated image.
-o String Current Dir Output directory where generated PNGs will be saved.
--url-only Flag False Prints the hosted image URL directly without downloading locally.

Supported Dimensions

  • 1024*1024 (1:1 Ratio)
  • 1280*720 (16:9 Landscape)
  • 720*1280 (9:16 Portrait)
  • 1024*768 (4:3 Ratio)
  • 768*1024 (3:4 Ratio)

dashscope-imagegen Advanced Features

  • Bilingual Prompt Parsing: Handles both Chinese and English naturally, adjusting metadata automatically for high-fidelity outputs.
  • Automatic Prompt Expansion: Built-in prompt_extend is enabled by default to enrich user inputs for superior aesthetic results.
  • Asynchronous Polling Engine: Optimized script execution that submits the task and polls the DashScope queue asynchronously to ensure reliable delivery without blocking the prompt queue.
  • Output Optimization: Flexible output options including direct output directory downloading and raw CDN image link delivery to fit any workflow powered by Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*