Alibaba Bailian qwen-image-2.0-pro general image generation. Excels at complex text rendering, multi-line layout, photorealistic detail, and strong semantic adherence — great for mixed text/image designs. 阿里云百炼 qwen-image-2.0-pro 千问通用图像生成模型,擅长复杂文本渲染、多行布局、真实质感与语义遵循,支持中英文混排与精细图文设计。
Design & media
Qwen Image Gen
Try it基于阿里云百炼 Qwen-Image 文生图模型的生图 skill。支持同步生成、异步任务轮询、下载生成结果到本地。 当用户需要根据提示词生成图片、批量出图、指定尺寸/比例,或继续查询已有图片生成任务时,使用此 skill。
What it does
基于阿里云百炼 Qwen-Image 文生图模型的生图 skill。支持同步生成、异步任务轮询、下载生成结果到本地。 当用户需要根据提示词生成图片、批量出图、指定尺寸/比例,或继续查询已有图片生成任务时,使用此 skill。
The skill document
Qwen Image Gen
通过阿里云百炼 Qwen-Image 接口生成图片。默认使用 qwen-image-2.0-pro,支持按模型自动选择同步/异步模式,并在成功后下载 PNG 到本地。
详细接口、尺寸限制、价格表见 references/api.md。
Setup
- 配置 API Key:
export DASHSCOPE_API_KEY="sk-xxx"
也可以在 skill 目录下创建 config.json,参考 config.example.json。
-
运行环境要求
Node.js >= 18 -
北京和新加坡地域使用不同的 API Key 与 Base URL,不能混用
配置优先级:
- CLI 参数
- 环境变量
config.json- 脚本默认值
默认模型
- 默认模型:
qwen-image-2.0-pro qwen-image-2.0-pro、qwen-image-2.0、qwen-image-max走同步接口qwen-image-plus、qwen-image走异步接口
支持范围
qwen-image-2.0-pro/qwen-image-2.0:支持 1-6 张,适合通用文生图qwen-image-max:固定 1 张,偏真实感qwen-image-plus/qwen-image:固定 1 张,支持异步任务- 图片输出格式为
png - 任务和结果链接默认保留 24 小时,拿到后要尽快下载
CLI
主要脚本:node scripts/qwen-image-gen.js
默认出图
node scripts/qwen-image-gen.js \
--prompt="一间有着精致窗户的花店,漂亮的木质门,摆放着花朵" \
--goal="quality"
低成本试探
node scripts/qwen-image-gen.js \
--prompt="一个赛博朋克风格的雨夜街道" \
--goal="cheap" \
--n=1
异步任务
node scripts/qwen-image-gen.js \
--prompt="复古海报风格的城市街景" \
--model="qwen-image-plus" \
--mode="async"
继续查询已有任务
node scripts/qwen-image-gen.js \
--task-id="你的task_id"
仅做预检
node scripts/qwen-image-gen.js \
--prompt="一张产品海报,主体是一瓶绿色玻璃香水" \
--ratio="3:4" \
--dry-run
参数约定
--prompt:正向提示词,提交新任务时必填--negative-prompt:反向提示词,建议控制在 500 字符内--goal=cheap|balanced|quality:按用户意图选择默认模型和尺寸--tier=draft|standard|final:按档位选择模型--model:模型名,默认qwen-image-2.0-pro--mode=auto|sync|async:自动选择或强制接口模式--ratio:快捷比例qwen-image-2.0*:1:13:44:39:1616:9qwen-image-max/qwen-image-plus/qwen-image:1:13:44:39:1616:9
--size:具体分辨率,如2048*2048--n:张数qwen-image-2.0*:1-6- 其他模型:固定
1
--prompt-extend=true|false:是否启用提示词改写,默认true--watermark=true|false:是否添加水印,默认false--task-id:查询已有异步任务--no-wait:只提交异步任务,不继续轮询--poll-interval:轮询间隔秒数,默认10--timeout:总等待超时秒数,默认600--output-dir:图片下载目录,默认outputs/--name:输出文件名前缀--dry-run:只打印最终请求体和配置预检
工作流
- 用户要生图时,优先提交新任务而不是直接假定已有结果。
qwen-image-2.0-pro/qwen-image-2.0/qwen-image-max直接同步出图并下载。qwen-image-plus/qwen-image走异步任务,返回task_id后轮询。- 成功后立即下载生成结果到本地
outputs/。 - 需要稳定复现时,显式传
--seed。
价格提醒
- 价格按中国内地单价表估算;如果使用新加坡地域,脚本会切换到国际单价表
- 计费按成功生成的图片张数计算
- 免费额度和单价会随官方更新变化,需同步更新脚本内置表
Related skills
Qwen-Image 国内电商爆款排版图。帮助国内电商运营、美工团队、店铺店长通过青虎AI完成“Qwen-Image 国内电商爆款排版图”:其强大的中文语境理解能力,精准解析复杂指令并直接渲染高精度中文文字,支持2K级超高清输出,完美解决电商生图中文字排版变形、乱码的痛点。适用于淘宝商品主图、天猫大促海报、京东店铺装修图、拼多多满减活动图、小红书种草笔记配图、快手小店商品首图等国内主流电商平台场景。一键生成详情页长图、卖点图、促销角标,提升店铺转化率。Use this skill for Qwen-Image 国内电商爆款排版图 当用户要求用 Seedream 5.0 Lite 生成电商图、图片 5.0 Lite(对外检索常写作 Qwen-Image / Seedream 5.0 Lite) 做电商图/主图/海报/文生图/图生图时必须触发。关键词:LinkPix、qhkit、青虎、Qwen-Image、通义万相、Seedream 5.0 Lite、图片 5.0 Lite、国内电商爆款排版、中文渲染、2K超清、淘宝主图、天猫大促海报、京东装修、拼多多满减、小红书种草、快手小店。
Generate images from text with a free-quota-first multi-provider workflow. Use this skill when a user asks for text-to-image generation that needs provider r...
Generate images via Model Studio DashScope SDK using normalized Qwen Image models
Route Alibaba Cloud Model Studio requests to the right local skill (Qwen Image, Qwen Image Edit, Wan Video, Wan R2V, Qwen TTS, Qwen ASR and advanced TTS vari...
Qwen (qwen.ai). Use this skill for ANY Qwen request — reading, creating, updating, and deleting data. Whenever a task involves Qwen, use this skill instead of calling the API directly.