/install dashscope-image-gen
DashScope Image Generation (qwen-image-max)
Use this skill to generate an image from a text prompt through DashScope compatible-mode.
Quick start
Preferred (no secrets in shell history):
export DASHSCOPE_API_KEY="..."
./scripts/dashscope_image_gen.py --prompt "a cute robot, watercolor" --out robot.png
Optional params (best-effort; support depends on DashScope):
./scripts/dashscope_image_gen.py --prompt "industrial factory at night" --size 1024x1024 --n 1 --out factory.png
What to do when it fails
- Re-run with the same command and copy the HTTP error body.
- If the error indicates a different route/payload than OpenAI Images API:
- Update
scripts/dashscope_image_gen.pyaccordingly. - Update
references/dashscope-openai-compatible.mdwith the correct details.
- Update
Files
scripts/dashscope_image_gen.py: main CLI (callsPOST {baseUrl}/images/generations)references/dashscope-openai-compatible.md: endpoint/auth notes
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install dashscope-image-gen - After installation, invoke the skill by name or use
/dashscope-image-gen - Provide required inputs per the skill's parameter spec and get structured output
What is Dashscope Image Gen?
Generate images via Alibaba DashScope OpenAI-compatible endpoint (compatible-mode) using qwen-image-max. Use when the user asks for 文生图/图片生成/image generation... It is an AI Agent Skill for Claude Code / OpenClaw, with 174 downloads so far.
How do I install Dashscope Image Gen?
Run "/install dashscope-image-gen" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Dashscope Image Gen free?
Yes, Dashscope Image Gen is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Dashscope Image Gen support?
Dashscope Image Gen is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Dashscope Image Gen?
It is built and maintained by DHDragon (@dhdragon); the current version is v1.0.0.