qwen-image
Skill0 starsChanged 54 days agoMITView on GitHub
Generate and edit images with Alibaba Bailian Qwen-Image-3.0 (qwen-image-3.0-pro). 用阿里云百炼 Qwen-Image-3.0 出图与改图,默认模型 qwen-image-3.0-pro。 用户要画图、生成插画或配图、做封面 / 海报 / 信息图 / 分镜、画角色立绘、 往图里排文字,或要修图、换背景、换装、换风格、以某张图为参考来生成时使用。
- Reads credentials
3 other projects use a version of this.
Adopted by
Most recently taken up by
- runapi-ai/qwen-imagetheir own version, first seen Oct 13, 2026
- AceDataCloud/Skillstheir own version, first seen Oct 6, 2026
- agentbay-ai/agentbay-skillstheir own version, first seen Feb 12, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- agentbay-ai/agentbay-skills★ 50same name
- AceDataCloud/Skills★ 17same name
- runapi-ai/qwen-image★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Files
Qwen-Image-3.0 图像生成
本文是入口文件。先读「铁律」,再按「任务路由」读取对应 reference,然后调用
scripts/qwen-image.ps1。
铁律(每次任务必记)
- 模型固定
qwen-image-3.0-pro。 这是本 skill 的默认与主线。仅当用户明确要求更快或更省,才降到qwen-image-3.0。不要因为「省事」或「不确定」而换模型。 - 先读 reference,再写提示词。 提示词质量直接决定出图上限。禁止凭记忆套模板——每个题材的写法都在
references/prompt-guide.md里,动手前必读。 -Size必须用星号。 写1024*1536,不是1024x1536。服务端只认 DashScope 的星号格式,写成 x 直接 400。总像素须落在 512×512 至 2048×2048 之间,宽高比限 1:8 至 8:1。脚本已内置校验,但不要依赖它兜底。- 图生图禁止
-PromptExtendMode agent。 agent(智能体增强)仅 T2I 支持,I2I 场景传了必然 400。脚本会提前拦截并报错。 - 默认开启 prompt_extend 与 enable_thinking,不要随手关。 这两个是模型能力的放大器:前者自动补全简短提示词,后者在出图前做推理规划,对复杂构图与文字排版提升显著。
- 长提示词走
-PromptFile。 超过 2000 字符的提示词写进 UTF-8 文本文件,用-PromptFile读取,避免命令行转义损耗与 shell 长度限制。 - 图片 URL 只有 24 小时有效期。 脚本会立即下载落盘;永远不要把服务端返回的 URL 当交付物。
- 描述画面的物理构成,而不是情绪形容词。 写「午后三点右侧落地窗斜射光」而不是「唯美光影」;写「粗针织开衫的毛线纹理与褶皱阴影」而不是「质感的衣服」。模型能渲染前者,渲染不了后者。
- 默认只出 1 张,不要擅自加
-N。 多图是成倍计费(1K 档约 $0.034/张)。用户没明确要候选或多版本时,先出 1 张定方向。确需批量,先告知张数与预估费用。 - 失败不要盲目重试。 每次重发都是真实计费。先按
references/api-guide.md的错误码表定位,确认修正点后再发。本 skill 不做自动降级或自动重试,避免无声烧钱。 - 防同质化是硬要求。 不得复用
references/prompt-guide.md里的例句措辞,不得固定结构顺序与起手维度,不得每张都走同类题材或同一尺寸。该文件第 7、8 节是强制约束,出图前逐条对照。
任务路由
| 用户意图 | 读取 |
| 出图、画图、文生图、立绘、封面、场景图、角色设定稿 | references/prompt-guide.md |
| 海报、信息图、含中文文字的图、密集排版 | references/prompt-guide.md(第 5 节 文字渲染) |
| 改图、换背景、换装、换风格、基于已有图生成 | references/i2i-guide.md |
| 参数含义、报错排查、计费、限流 | references/api-guide.md |
| 出图前避坑(侧写边界、技术参数、状态强度、手部结构) | references/prompt-guide.md(第 9 节) |
| 想看完整实例与逐层写法拆解 | examples/README.md |
执行
& "<skill目录>\scripts\qwen-image.ps1" -Prompt "..." [选项]| 选项 | 说明 |
-Prompt | 正向提示词,必填(或改用 -PromptFile) |
-PromptFile | 从 UTF-8 文件读提示词,长提示词优先 |
-Size | 宽*高,默认 1024*1024,可传 auto |
-N | 张数 1-6,默认 1 |
-Image | 1-3 张参考图(路径或 URL),传了即图生图 |
-NegativePrompt | 反向提示词 |
-Seed | 固定种子可复现 |
-PromptExtendMode | direct(默认,T2I/I2I 通用)或 agent(仅 T2I) |
-NoPromptExtend | 关闭提示词改写,一般不要用 |
-NoThinking | 关闭思考模式,一般不要用 |
-DryRun | 只打印请求体不发送,用于核对参数 |
关于两个默认开启的开关。 提示词改写(prompt_extend)与思考模式(enable_thinking)默认都开着,它们是模型能力的放大器:前者补全你写得简短的提示,后者在出图前做推理规划。两者开启时你给的底稿越具体,服务端改写越不容易漂——不要因为「反正会被改写」就写得简略。只有排查问题才关掉它们。
输出与旁车记录
图片默认落在 skills/qwen-image/output/,每批同时写一个同名 .json 旁车记录,内含本次使用的模型、完整提示词、全部参数、输入图路径、request_id 与 usage。
微调重出时先读旁车记录,在原有参数基础上只改需要变的那一层,不要凭记忆重写提示词。这是让迭代可归因、可复现的前提。
交付前检查(强制执行)
- 用
read_image打开生成的图,确认画面与用户意图一致。 - 放大看手。 逐只确认指头数量与分离度。手是最高频的崩坏点,与提示词质量无关,只能靠检查发现。
- 涉及文字的需求,逐字核对有无错字、漏字、字形崩坏。
- 反查用户原话。 逐个核对提示词里出现的可见物件,有没有用户没提过的——侧写最容易在无意间引入。
- 发现偏差时,把偏差写成新的约束补进提示词重出,不要带着问题交付。手部崩坏优先降低动作复杂度,而不是加「五指分明」这类词。
- 向用户报告图片路径与本次实际使用的模型。
环境
- 端点:
POST https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation - Key:环境变量
QWEN_TOKEN_PLAN_CN_API_KEY,缺省从$DSH_HOME/.credentials.yaml或~/.dsh/.credentials.yaml读取 - 输出目录:默认
skills/qwen-image/output/,可用-OutDir覆盖 - 该模型不是对话模型,不走
/chat/completions,不会也不应出现在 DSH 的模型选择器里
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

