Loading...
Loading...
Compare original and translation side by side
Agent setup: If your agent doesn't auto-load skills (e.g. Claude Code), see agent-compatibility.md once per session.
Agent设置:如果你的Agent不会自动加载技能(例如Claude Code), 请在每个会话中查看agent-compatibility.md。
| Location | Purpose |
|---|---|
| Default execution — sync/async, upload, download |
| Fallback: curl (sync/async), code generation |
| Prompt formulas, style keywords, negative_prompt, prompt_extend decision |
| API supplement |
| Official documentation URLs |
| Agent self-check: register skills in project config for agents that don't auto-load |
| 位置 | 用途 |
|---|---|
| 默认执行脚本 — 同步/异步、上传、下载 |
| 备选方案:curl(同步/异步)、代码生成 |
| 提示词公式、风格关键词、negative_prompt、prompt_extend决策规则 |
| API补充说明 |
| 官方文档URL |
| Agent自检:针对不会自动加载技能的Agent,在项目配置中注册技能 |
$DASHSCOPE_API_KEYos.environ["DASHSCOPE_API_KEY"].env.envDASHSCOPE_API_KEY=sk-your-key-here$DASHSCOPE_API_KEYos.environ["DASHSCOPE_API_KEY"].env.envDASHSCOPE_API_KEY=sk-your-key-heresk-...sk-sp-...token-plan.cn-beijing.maas.aliyuncs.comsk-sk-sp-references/tokenplan.mdsk-...sk-sp-...token-plan.cn-beijing.maas.aliyuncs.comsk-sk-sp-references/tokenplan.md| User Want | Mode | Model |
|---|---|---|
| Generate image from text only | t2i | |
| Open-source / lowest-cost text-to-image | t2i | |
| Edit image / apply style transfer based on 1–4 reference images | image-edit | |
| Subject consistency: generate new images maintaining subject from references | image-edit | |
| Multi-image composition: combine style from one image, background from another | image-edit | |
| Single-image editing preserving subject consistency | i2i | |
| Multi-image fusion: place object from one image into another scene | i2i | |
| Interleaved text-image output (e.g., tutorials, step-by-step guides) | interleave | |
| Fast text-to-image drafts | t2i | |
| Edit text within images, precise element manipulation | image-edit | |
| Multi-image fusion with realistic textures | image-edit | |
| Posters / complex Chinese+English text rendering | t2i | |
| Text-to-image with fixed aspect ratios (batch) | t2i | |
| 用户需求 | 模式 | 模型 |
|---|---|---|
| 仅通过文本生成图像 | t2i | |
| 开源/低成本文本转图像 | t2i | |
| 基于1-4张参考图像编辑图像/应用风格迁移 | image-edit | |
| 主体一致性:基于参考图像生成保留主体的新图像 | image-edit | |
| 多图像合成:融合一张图像的风格与另一张图像的背景 | image-edit | |
| 保留主体一致性的单图像编辑 | i2i | |
| 多图像融合:将一张图像中的物体放入另一张图像的场景中 | i2i | |
| 文本-图像交错输出(例如教程、分步指南) | interleave | |
| 快速生成文本转图像草稿 | t2i | |
| 编辑图像中的文本、精确元素操作 | image-edit | |
| 具有真实纹理的多图像融合 | image-edit | |
| 海报/复杂中英文文本渲染 | t2i | |
| 固定宽高比的批量文本转图像 | t2i | |
| Model | Use Case |
|---|---|
| wan2.6-t2i | Recommended for text-to-image — sync + async, best quality |
| wan2.7-image-pro | Multi-function (4K support) — text-to-image, image editing (0–9 images), sequential multi-image, interactive editing (bbox), thinking mode, color palette. Max 4K for t2i, 2K for editing |
| wan2.7-image | Multi-function (faster) — same as pro but max 2K, no 4K support |
| wan2.6-image | Image editing (NOT for pure text-to-image) — requires |
| wan2.5-i2i-preview | Image editing — single-image editing with subject consistency, multi-image fusion (up to 3 images), async-only |
| wan2.5-t2i-preview | Preview — free size within constraints |
| wan2.2-t2i-flash | Fast — lower latency |
| wan2.2-t2i-plus | Professional — improved stability |
| 模型 | 使用场景 |
|---|---|
| wan2.6-t2i | 文本转图像推荐模型 — 支持同步+异步,画质最优 |
| wan2.7-image-pro | 多功能模型(支持4K)— 文本转图像、图像编辑(0-9张图像)、序列多图像、交互式编辑(bbox)、思维模式、调色板。文本转图像最大支持4K,编辑模式最大支持2K |
| wan2.7-image | 多功能模型(速度更快)— 功能与pro版一致,但最大仅支持2K,无4K功能 |
| wan2.6-image | 图像编辑专用(不支持纯文本转图像)— 需要 |
| wan2.5-i2i-preview | 图像编辑专用 — 支持保留主体一致性的单图像编辑、多图像融合(最多3张图像),仅支持异步 |
| wan2.5-t2i-preview | 预览版 — 在限制范围内支持自定义尺寸 |
| wan2.2-t2i-flash | 快速版 — 延迟更低 |
| wan2.2-t2i-plus | 专业版 — 稳定性提升 |
| Model | Use Case |
|---|---|
| z-image-turbo | Open-source SOTA T2I — sync-only; single text content per message; no |
| 模型 | 使用场景 |
|---|---|
| z-image-turbo | 开源SOTA文本转图像模型 — 仅支持同步;每条消息仅支持单文本内容;不支持 |
| Model | Use Case |
|---|---|
| qwen-image-2.0-pro | Fused generation + editing — text rendering, realistic textures, multi-image (1–3 input, 1–6 output) |
| qwen-image-2.0 | Accelerated generation + editing |
| qwen-image-edit-max | Image editing — 1–6 output images |
| qwen-image-edit-plus | Image editing — 1–6 output images |
| qwen-image-edit | Image editing — 1 output image only |
| qwen-image-plus | Text-to-image — fixed resolutions only (async) |
| qwen-image-max | Text-to-image — fixed resolutions only |
qwen-image-2.0-proqwen-image-2.0qwen-image-edit-max/plus/editwan2.6-image/multimodal-generation/generationmessagesqwen-image-2.0-proqwen-image-2.0qwen-image-plusqwen-image-max/text2image/image-synthesisinput.promptwan2.6-imagewan2.5-i2i-previewwan2.6-imagewan2.5-i2i-previewwan2.6-t2iwan2.7-imagewan2.7-image-prowan2.6-imageenable_interleave: truewan2.7-image-prowan2.7-imagewan2.6-image⚠️ Important: The model list above is a point-in-time snapshot and may be outdated. Model availability changes frequently. Always check the official model list for the authoritative, up-to-date catalog before making model decisions.
Model details: For more information about a specific model, direct the user to its detail page:(replacehttps://www.qianwenai.com/models/<model-name>with the exact model ID, e.g.<model-name>→ https://www.qianwenai.com/models/wan2.7-image-pro). NEVER modify or guess the model name in the URL.wan2.7-image-pro
Dynamic model queries: If the qianwen-model-selector skill or QianWen CLI () is available, use it for real-time model data. CLI requires authentication — see the qianwen-usage skill for login flow.qianwen models info <model>
| 模型 | 使用场景 |
|---|---|
| qwen-image-2.0-pro | 融合生成+编辑 — 文本渲染、真实纹理、多图像(1-3张输入,1-6张输出) |
| qwen-image-2.0 | 加速生成+编辑 |
| qwen-image-edit-max | 图像编辑 — 支持1-6张输出图像 |
| qwen-image-edit-plus | 图像编辑 — 支持1-6张输出图像 |
| qwen-image-edit | 图像编辑 — 仅支持1张输出图像 |
| qwen-image-plus | 文本转图像 — 仅支持固定分辨率(仅异步) |
| qwen-image-max | 文本转图像 — 仅支持固定分辨率 |
qwen-image-2.0-proqwen-image-2.0qwen-image-edit-max/plus/editwan2.6-image/multimodal-generation/generationmessagesqwen-image-2.0-proqwen-image-2.0qwen-image-plusqwen-image-max/text2image/image-synthesisinput.promptwan2.6-imagewan2.5-i2i-previewwan2.6-imagewan2.5-i2i-previewwan2.6-t2iwan2.7-imagewan2.7-image-prowan2.6-imageenable_interleave: truewan2.7-image-prowan2.7-imagewan2.6-image⚠️ 重要提示:上述模型列表为特定时间点的快照,可能已过时。模型可用性会频繁变化。在选择模型前,请务必查看官方模型列表获取权威、最新的模型目录。
模型详情:如需了解特定模型的更多信息,请引导用户访问其详情页:(将https://www.qianwenai.com/models/<model-name>替换为准确的模型ID,例如<model-name>→ https://www.qianwenai.com/models/wan2.7-image-pro)。绝对不要修改或猜测URL中的模型名称。wan2.7-image-pro
动态模型查询:若qianwen-model-selector技能或QianWen CLI()可用,请使用它们获取实时模型数据。CLI需要认证 — 请查看qianwen-usage技能了解登录流程。qianwen models info <model>
⚠️ Multiple artifacts: When generating multiple files in a single session, you MUST append a numeric suffix to each filename (e.g.,out_1.png) to prevent overwrites.out_2.png
⚠️ 多文件生成注意:当在单个会话中生成多个文件时,必须为每个文件名添加数字后缀(例如、out_1.png)以避免覆盖。out_2.png
DASHSCOPE_API_KEYQIANWEN_API_KEY[ -n "$DASHSCOPE_API_KEY" ].envecho 'DASHSCOPE_API_KEY=sk-your-key-here' >> .env.envDASHSCOPE_API_KEYQIANWEN_API_KEY[ -n "$DASHSCOPE_API_KEY" ].envecho 'DASHSCOPE_API_KEY=sk-your-key-here' >> .env.envpython3 --version # must be 3.9+python3python --versionpy -3 --versionpython3 --version # 版本必须为3.9+python3python --versionpy -3 --versionscripts/cdpython3 <this-skill-dir>/scripts/image.py --helpundefinedscripts/cdpython3 <this-skill-dir>/scripts/image.py --helpundefined
**More examples** (interleaved output, wan2.5-i2i, qwen-image-2.0-pro, qwen-image-plus): See [execution-guide.md](references/execution-guide.md)
| Argument | Description |
|----------|-------------|
| `--request '{...}'` | JSON request body |
| `--file path.json` | Load request from file |
| `--async` | Force async mode (required for wan2.5 and older; auto-enabled for qwen-image-plus/max and interleaved output) |
| `--model ID` | Override model (`wan2.6-t2i` default; see model list in help) |
| `--output path` | Save image to path (or directory for multi-image output) |
| `--print-response` | Print response JSON to stdout |
**更多示例**(交错输出、wan2.5-i2i、qwen-image-2.0-pro、qwen-image-plus):请查看[execution-guide.md](references/execution-guide.md)
| 参数 | 描述 |
|----------|-------------|
| `--request '{...}'` | JSON请求体 |
| `--file path.json` | 从文件加载请求 |
| `--async` | 强制使用异步模式(wan2.5及更早版本模型需要;qwen-image-plus/max和交错输出会自动启用) |
| `--model ID` | 覆盖默认模型(默认`wan2.6-t2i`;帮助文档中查看模型列表) |
| `--output path` | 将图像保存到指定路径(多图像输出时指定目录) |
| `--print-response` | 将响应JSON打印到标准输出 |0output.resultsoutput.task_idoutput.task_idtask_status: SUCCEEDEDls -la <output_path>[ACTION_REQUIRED][UPDATE_AVAILABLE]0output.resultsoutput.task_idoutput.task_idtask_status: SUCCEEDEDls -la <output_path>[ACTION_REQUIRED][UPDATE_AVAILABLE]| Error Pattern | Diagnosis | Resolution |
|---|---|---|
| Python not on PATH | Try |
| Script version check failed | Upgrade Python to 3.9+ |
| Python < 3.9 | Upgrade Python to 3.9+ |
| Missing API key | Obtain key from QianWen Console; add to |
| Invalid or mismatched key | Run qianwen-ops-auth (non-plaintext check only); verify key is valid |
| SSL cert issue (proxy/corporate) | macOS: run |
| Network unreachable | Check internet; set |
| Rate limited | Wait and retry with backoff |
| Server error | Retry with backoff |
| Can't write output | Use |
| 错误模式 | 诊断 | 解决方案 |
|---|---|---|
| Python未在PATH中 | 尝试 |
| 脚本版本检查失败 | 将Python升级到3.9+ |
| Python版本低于3.9 | 将Python升级到3.9+ |
| 缺失API密钥 | 从QianWen控制台获取密钥;添加到 |
| 密钥无效或不匹配 | 若可用则运行qianwen-ops-auth技能(仅非明文检查);验证密钥有效性 |
| SSL证书问题(代理/企业环境) | macOS:运行 |
| 网络不可达 | 检查网络连接;若处于代理环境则设置 |
| 请求频率受限 | 等待后重试,使用退避策略 |
| 服务器错误 | 等待后重试,使用退避策略 |
| 无法写入输出 | 使用 |
| Field | Type | Description |
|---|---|---|
| string | Text description of the image to generate (required) |
| string | Content to avoid in the image (max 500 chars) |
| string | Resolution — |
| int | Random seed for reproducibility [0, 2147483647] |
| string | |
| bool | Enable prompt rewriting (default: true; image editing mode only) |
| 字段 | 类型 | 描述 |
|---|---|---|
| string | 要生成的图像的文本描述(必填) |
| string | 图像中需要避免的内容(最多500字符) |
| string | 分辨率 — |
| int | 用于结果可复现的随机种子 [0, 2147483647] |
| string | |
| bool | 启用提示词重写(默认:true;仅图像编辑模式可用) |
| Field | Type | Description |
|---|---|---|
| string[] | 0–9 image URLs or local paths |
| string | Single image URL/path (shorthand) |
| string | |
| bool | |
| int | Images to generate. Sequential mode: 1–12 (default 12). Non-sequential: 1–4 (default 4). Billed per image. |
| bool | Enable enhanced reasoning for better quality (default: true). Only for t2i (no images, non-sequential) |
| List[List[List[int]]] | Interactive editing regions. Format: |
| array | Custom color theme (3–10 colors). Each: |
| bool | Add "AI Generated" watermark (default: false) |
thinking_modeenable_sequential| 字段 | 类型 | 描述 |
|---|---|---|
| string[] | 0-9张图像的URL或本地路径 |
| string | 单张图像的URL/路径(简写形式) |
| string | |
| bool | |
| int | 要生成的图像数量。序列模式:1-12(默认12)。非序列模式:1-4(默认4)。按图像数量计费。 |
| bool | 启用增强推理以提升画质(默认:true)。仅适用于文本转图像模式(无参考图像、非序列模式) |
| List[List[List[int]]] | 交互式编辑区域。格式: |
| array | 自定义配色主题(3-10种颜色)。每个颜色格式: |
| bool | 添加“AI Generated”水印(默认:false) |
thinking_modeenable_sequential| Field | Type | Description |
|---|---|---|
| string[] | 1–4 image URLs or local paths for editing mode; 0–1 for interleave mode |
| string | Single image URL/path (shorthand; |
| bool | |
| int | Number of images to generate in editing mode (1–4, default: 1). Billed per image. |
| int | Max images in interleave mode (1–5, default: 5). Billed per image. |
| bool | Add "AI Generated" watermark (default: false) |
| 字段 | 类型 | 描述 |
|---|---|---|
| string[] | 编辑模式下为1-4张图像的URL或本地路径;交错模式下为0-1张 |
| string | 单张图像的URL/路径(简写形式; |
| bool | |
| int | 编辑模式下要生成的图像数量(1-4,默认:1)。按图像数量计费。 |
| int | 交错模式下的最大图像数量(1-5,默认:5)。按图像数量计费。 |
| bool | 添加“AI Generated”水印(默认:false) |
| Model | Key Differences |
|---|---|
| async-only, 1–3 images, |
| 1–3 images, n=1–6 (except |
| async-only, n fixed at 1, 5 fixed resolutions only |
| 模型 | 关键差异 |
|---|---|
| 仅支持异步,支持1-3张图像,采用 |
| 支持1-3张图像,n=1-6( |
| 仅支持异步,n固定为1,仅支持5种固定分辨率 |
1K2K1280*1280960*12801280*960720*12801280*7201K2K1280*1280960*12801280*960720*12801280*720| Field | Description |
|---|---|
| URL of generated image (24h validity). Use this when chaining to another skill. |
| Array of all image URLs (multi-image output, wan2.6-image, qwen-image-edit) |
| Number of generated images |
| Local file path of the downloaded image. Use this for user preview or non-API operations. |
| Array of local file paths (multi-image output) |
| Array of |
| Image dimensions |
| Seed used |
| 字段 | 描述 |
|---|---|
| 生成图像的URL(有效期24小时)。与其他技能联动时使用此字段。 |
| 所有生成图像的URL数组(多图像输出、wan2.6-image、qwen-image-edit模型) |
| 生成的图像数量 |
| 下载后图像的本地文件路径。用于用户预览或非API操作。 |
| 本地文件路径数组(多图像输出) |
| |
| 图像尺寸 |
| 使用的随机种子 |
POST /api/v1/services/aigc/multimodal-generation/generationPOST /api/v1/services/aigc/image-generation/generationX-DashScope-Async: enablePOST /api/v1/services/aigc/image2image/image-synthesisX-DashScope-Async: enablePOST /api/v1/services/aigc/text2image/image-synthesisX-DashScope-Async: enableoss://QWEN_TMP_OSS_BUCKETQWEN_TMP_OSS_REGION.envpip install oss2QWEN_TMP_OSS_AK_IDQWEN_TMP_OSS_AK_SECRETOSS_ACCESS_KEY_IDOSS_ACCESS_KEY_SECREToss:PutObjectoss:GetObjectreferences/custom-oss.mdX-DashScope-Sse: enablestream: truePOST /api/v1/services/aigc/multimodal-generation/generationPOST /api/v1/services/aigc/image-generation/generationX-DashScope-Async: enablePOST /api/v1/services/aigc/image2image/image-synthesisX-DashScope-Async: enablePOST /api/v1/services/aigc/text2image/image-synthesisX-DashScope-Async: enableoss://.envQWEN_TMP_OSS_BUCKETQWEN_TMP_OSS_REGIONpip install oss2QWEN_TMP_OSS_AK_IDQWEN_TMP_OSS_AK_SECRETOSS_ACCESS_KEY_IDOSS_ACCESS_KEY_SECREToss:PutObjectoss:GetObjectreferences/custom-oss.mdX-DashScope-Sse: enablestream: trueimage_urlhttps://oss://local_path| Scenario | Use |
|---|---|
| Feed to another skill (video-gen, vision, image-edit) | |
| Show to user / open in editor | |
image_urlhttps://oss://local_path| 场景 | 使用字段 |
|---|---|
| 传递给其他技能(视频生成、视觉分析、图像编辑) | |
| 展示给用户/在编辑器中打开 | |
| HTTP | Meaning | Action |
|---|---|---|
| 401 | Invalid or missing API key | Run qianwen-ops-auth if available; else prompt user to set key (non-plaintext check only) |
| 400 | Bad request (invalid prompt, size) | Verify parameters and constraints |
| 429 | Rate limited | Retry with exponential backoff |
| 5xx | Server error | Retry with exponential backoff |
Usage & billing: Use the qianwen-usage skill to check usage, free tier quota, and billing directly. Alternatively, the user can visit the QianWen console: Usage Analytics | Pay-as-you-go Billing | Token Plan 团队版 SubscriptionNEVER fabricate, guess, or construct usage/billing/console URLs. Only provide the exact links listed in this skill. If a URL is not listed here, do not invent one.
| HTTP状态码 | 含义 | 操作 |
|---|---|---|
| 401 | API密钥无效或缺失 | 若可用则运行qianwen-ops-auth技能;否则提示用户设置密钥(仅非明文检查) |
| 400 | 请求错误(无效提示词、尺寸等) | 验证参数和约束条件 |
| 429 | 请求频率受限 | 使用指数退避策略重试 |
| 5xx | 服务器错误 | 使用指数退避策略重试 |
绝对不要编造、猜测或构造使用量/计费/控制台URL。仅提供此技能中列出的准确链接。若此处未列出某URL,请勿自行创建。
./output/qianwen-image-generation/skills/output/./output/qianwen-image-generation/skills/output/[ACTION_REQUIRED] qianwen-update-check skill is not installed[ACTION_REQUIRED] qianwen-update-check skill is not installedThe update-check skill is not installed. It keeps you informed about new QianWen-AI/qianwen-ai features and bug fixes.
- Install now — I'll run the install command for you
- Skip for now — do nothing this time
- Never remind me — permanently suppress this prompt
npx skills add QianWen-AI/qianwen-ai --skill qianwen-update-check -ypython3 <this-skill-scripts-dir>/gossamer.py --dismisspython3 <this-skill-scripts-dir>/gossamer.py --dismisspython3 <this-skill-scripts-dir>/gossamer.py --never-install更新检查技能未安装。该技能可帮助你了解QianWen-AI/qianwen-ai的新功能和Bug修复。
- 立即安装 — 我将为你运行安装命令
- 暂时跳过 — 本次不执行任何操作
- 永不提醒 — 永久禁用此提示
npx skills add QianWen-AI/qianwen-ai --skill qianwen-update-check -ypython3 <this-skill-scripts-dir>/gossamer.py --dismisspython3 <this-skill-scripts-dir>/gossamer.py --dismisspython3 <this-skill-scripts-dir>/gossamer.py --never-install[UPDATE_AVAILABLE][UPDATE_AVAILABLE][ACTION_REQUIRED][UPDATE_AVAILABLE][ACTION_REQUIRED][UPDATE_AVAILABLE]qianwen-update-check/SKILL.mdpython3 <qianwen-update-check-dir>/scripts/check_update.py --print-responseqianwen-update-check/SKILL.mdpython3 <qianwen-update-check-dir>/scripts/check_update.py --print-response