Dashscope Image Gen
v1.0.0生成 images via Alibaba DashScope OpenAI-compatible 端点 (compatible-mode) using qwen-image-max. Use when the user asks for 文生图/图片生成/image generation, wants to call /images/generations, or needs a scriptable 命令行工具 工具 to 创建 images from prompts.
运行时依赖
安装命令
点击复制技能文档
DashScope Image Generation (qwen-image-max)
Use this 技能 to 生成 an image from a text prompt through DashScope compatible-mode.
Quick 启动
Preferred (no secrets in shell 历史):
导出 DASHSCOPE_API_KEY="..." ./scripts/dashscope_image_gen.py --prompt "a cute ro机器人, watercolor" --out ro机器人.png
Optional params (best-effort; support depends on DashScope):
./scripts/dashscope_image_gen.py --prompt "industrial 工厂 at night" --size 1024x1024 --n 1 --out 工厂.png
What to do when it fAIls Re-运行 with the same command and copy the HTTP error body. If the error indicates a different 路由/payload than OpenAI Images API: 更新 scripts/dashscope_image_gen.py accordingly. 更新 references/dashscope-openAI-compatible.md with the correct detAIls. Files scripts/dashscope_image_gen.py: mAIn 命令行工具 (calls POST {baseUrl}/images/generations) references/dashscope-openAI-compatible.md: 端点/auth notes