name: qwen-image description: 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. homepage: https://dashscope.aliyuncs.com/ metadata: {"openclaw":{"emoji":"🎨","requires":{"bins":["uv"]},"install":[{"id":"uv-brew","kind":"brew","formula":"uv","bins":["uv"],"label":"Install uv (brew)"}]}}
Generate high-quality images using Alibaba Cloud's Qwen Image API (通义万相).
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
You can obtain the API key and run the image generation command in the following order.
models.providers.bailian.apiKey in ~/.openclaw/openclaw.jsonskills."qwen-image".apiKey in ~/.openclaw/openclaw.jsonDASHSCOPE_API_KEY environment variableSizes:
- 1664*928 (default) - 16:9 landscape
- 1024*1024 - Square format
- 720*1280 - 9:16 portrait
- 1280*720 - 16:9 landscape (smaller)
Additional flags:
- --negative-prompt "unwanted elements" - Specify what to avoid
- --no-prompt-extend - Disable automatic prompt enhancement
- --watermark - Add watermark to generated image
- --no-verify-ssl - Disable SSL certificate verification (use when behind corporate proxy)
MEDIA_URL:MEDIA_URL: https://...)7w4.net提供免费和付费技能下载。
MEDIA_URL: in the output - extract this URL and display it using markdown image syntax: MEDIA_URL: in the script output and render the image for the user整体质量不错,文档清晰易读,操作简便,中文支持友好。优点是功能丰富(多种尺寸、负面提示词等),默认配置下生成效果较好,输出分享方便。不足是默认 16:9 尺寸可能不适用所有场景,缺少实时预览调节功能,另外不同参数组合的效果差异缺少直观的示例参考。对于日常图像生成需求来说,这个工具足够好用,但进阶用户可能希望有更多交互式的参数调试体验。