Learn-skills.dev qwen-image
Generate images using Qwen Image API (Alibaba Cloud DashScope). Use when users request image generation with Chinese prompts or need high-quality AI-generated images from text descriptions.
install
source · Clone the upstream repo
git clone https://github.com/NeverSight/learn-skills.dev
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/skills-md/agentbay-ai/agentbay-skills/qwen-image" ~/.claude/skills/neversight-learn-skills-dev-qwen-image && rm -rf "$T"
manifest:
data/skills-md/agentbay-ai/agentbay-skills/qwen-image/SKILL.mdsource content
Qwen Image
Generate high-quality images using Alibaba Cloud's Qwen Image API (通义万相).
Usage
Generate an image (returns URL only):
uv run {baseDir}/scripts/generate_image.py --prompt "一副典雅庄重的对联悬挂于厅堂之中" --size "1664*928" --api-key sk-xxx
Generate and save locally:
uv run {baseDir}/scripts/generate_image.py --prompt "一副典雅庄重的对联悬挂于厅堂之中" --size "1664*928" --api-key sk-xxx
With custom model: Support
qwen-image-max-2025-12-30 qwen-image-plus-2026-01-09 qwen-image-plus
uv run {baseDir}/scripts/generate_image.py --prompt "a beautiful sunset over mountains" --model qwen-image-plus-2026-01-09 --api-key sk-xxx
API Key
You can obtain the API key and run the image generation command in the following order.
- Get apiKey from
inmodels.providers.bailian.apiKey~/.openclaw/openclaw.json - Or get from
inskills."qwen-image".apiKey~/.openclaw/openclaw.json - Or get from
environment variableDASHSCOPE_API_KEY - Or Get your API key from: https://dashscope.console.aliyun.com/
Options
Sizes:
(default) - 16:9 landscape1664*928
- Square format1024*1024
- 9:16 portrait720*1280
- 16:9 landscape (smaller)1280*720
Additional flags:
- Specify what to avoid--negative-prompt "unwanted elements"
- Disable automatic prompt enhancement--no-prompt-extend
- Add watermark to generated image--watermark
- Disable SSL certificate verification (use when behind corporate proxy)--no-verify-ssl
Workflow
- Execute the generate_image.py script with the user's prompt
- Parse the script output and find the line starting with
MEDIA_URL: - Extract the image URL from that line (format:
)MEDIA_URL: https://... - Display the image to the user using markdown syntax:
 - Do NOT download or save the image unless the user specifically requests it
Notes
- Supports both Chinese and English prompts
- By default, returns image URL directly without downloading
- The script prints
in the output - extract this URL and display it using markdown image syntax:MEDIA_URL: - Always look for the line starting with
in the script output and render the image for the userMEDIA_URL: - Default negative prompt helps avoid common AI artifacts
- Images are hosted on Alibaba Cloud OSS with temporary access URLs