qianwen-model-selector
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAgent 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。
Qwen Model Selector (Advisor)
Qwen模型选择器(顾问)
This skill operates in two modes:
- Interactive advisory — asks diagnostic questions to recommend the right model (see Diagnostic Flow).
- Cross-skill resolution — provides a fast-path model lookup for execution skills that need a model decision without user interaction (see recommendation-matrix.md).
Do not fabricate model names — only recommend models listed in this skill or returned by CLI.
This skill is part of QianWen-AI/qianwen-ai.
本技能支持两种模式:
- 交互式咨询——通过诊断式提问推荐合适的模型(详见诊断流程)。
- 跨技能解析——为需要模型决策的执行技能提供快速模型查询路径,无需用户交互(详见recommendation-matrix.md)。
请勿编造模型名称——仅推荐本技能中列出或CLI返回的模型。
本技能属于QianWen-AI/qianwen-ai体系。
Skill directory
技能目录
Load on demand. Do not fetch external URLs unless the user explicitly asks for the latest data.
| Location | Purpose |
|---|---|
| CLI-first data strategy: when to use CLI, 3-step login flow, display rules |
| CLI error classification & recovery actions (auth, not-found, network, ...) |
| Full model recommendation tables, Cross-Skill Resolution, Token Plan 团队版, Thinking |
| Pricing guidance + mandatory cost-estimation disclaimer (CN/EN) + console links |
| Pricing structural overview (offline snapshot) |
| Model catalog (offline snapshot) |
| Official documentation URLs (manual lookup only) |
| Agent self-check for skill registration |
按需加载。除非用户明确要求最新数据,否则请勿获取外部URL。
| 位置 | 用途 |
|---|---|
| CLI优先数据策略:CLI使用场景、三步登录流程、展示规则 |
| CLI错误分类与恢复操作(认证、未找到、网络等问题) |
| 完整模型推荐表、跨技能解析、Token Plan团队版、思维模式 |
| 定价指南 + 强制要求的成本估算免责声明(中/英文) + 控制台链接 |
| 定价结构概述(离线快照) |
| 模型目录(离线快照) |
| 官方文档URL(仅手动查询使用) |
| Agent技能注册自检 |
Prerequisites
前置条件
QianWen CLI is strongly recommended — it is the authoritative real-time data source for model
availability, pricing, and quotas. Verify with:
bash
qianwen versionIf not installed:
bash
npm install -g @qianwenai/qianwen-cliNode.js >= 18 required. Without CLI you can still answer general navigation questions from offline
snapshots, but you cannot answer "latest", "exact price", or "specific model details" questions.
强烈推荐使用QianWen CLI——它是模型可用性、定价和配额的权威实时数据源。通过以下命令验证:
bash
qianwen version如果未安装:
bash
npm install -g @qianwenai/qianwen-cli需要Node.js >= 18版本。如果没有CLI,你仍然可以通过离线快照回答通用导航问题,但无法回答“最新”“准确价格”或“特定模型细节”类问题。
Security & Credential Model
安全与凭证模型
QianWen has two independent credential systems — never confuse them:
| Credential | Purpose | How to provide |
|---|---|---|
API Key ( | Call model APIs in your code | |
| CLI session | Authorize | |
Red lines (apply to both):
- NEVER output any credential value in plaintext. Use variable references; report only status
("set" / "not set", "valid" / "invalid"). Never display or config file contents.
.env - NEVER conflate the two systems. When CLI returns /
Not authenticated, run the 3-step device-flow login (see cli-usage.md). DO NOT ask the user for an API key, and DO NOT try to setAUTH_REQUIREDto fix CLI auth.$DASHSCOPE_API_KEY
通义千问拥有两套独立的凭证系统——切勿混淆:
| 凭证类型 | 用途 | 提供方式 |
|---|---|---|
API Key ( | 在代码中调用模型API | |
| CLI会话 | 授权 | |
红线规则(适用于两者):
- 切勿以明文形式输出任何凭证值。使用变量引用;仅报告状态(“已设置”/“未设置”、“有效”/“无效”)。绝不要显示或配置文件内容。
.env - 切勿混淆两套系统。当CLI返回/
Not authenticated时,执行三步设备流登录(详见cli-usage.md)。请勿向用户索要API Key,也请勿尝试设置AUTH_REQUIRED来修复CLI认证问题。$DASHSCOPE_API_KEY
Data Resolution Order
数据解析优先级
Match the user's question to the right data source. Do not fall back to a lower tier without trying
the recovery actions in the higher tier first.
| Question type | Primary source | Notes |
|---|---|---|
| General navigation ("which family for text chat?") | SKILL.md | Offline-answerable |
| Latest / exact / specific (price, model details, quota) | CLI MUST be used — see | Snapshots are stale; never invent numbers |
| Search by capability ("model that does X") | | Snapshot keyword coverage is incomplete |
| CLI returned an error | | Auth failure → run 3-step login, do not skip to snapshot |
| CLI completely unavailable AND user declines install/login | | Only after CLI recovery genuinely failed |
| All of the above cannot answer AND user confirms online lookup | URLs in | Never proactively fetch |
将用户问题匹配到正确的数据源。未尝试更高优先级数据源的恢复操作前,请勿降级到更低层级。
| 问题类型 | 主要数据源 | 说明 |
|---|---|---|
| 通用导航(如“文本聊天选哪个系列?”) | SKILL.md默认表格 + | 可离线回答 |
| 最新/准确/特定问题(价格、模型细节、配额) | 必须使用CLI——详见 | 快照数据已过时;切勿编造数字 |
| 按能力搜索(如“能完成X任务的模型”) | | 快照的关键词覆盖不全 |
| CLI返回错误 | | 认证失败→执行三步登录,请勿直接降级到快照 |
| CLI完全不可用且用户拒绝安装/登录 | | 仅在CLI恢复确实失败后使用 |
| 以上方式均无法回答且用户确认在线查找 | | 切勿主动获取 |
Diagnostic Flow (Interactive Advisory)
诊断流程(交互式咨询)
Ask the user (in order):
- Content type? — text / image / video / audio / vision
- Primary task? — generation / understanding / coding / reasoning / translation
- Priority? — quality vs speed vs cost
- Input size? — short / medium / long context
- Structured output? — JSON / function calling needed?
按顺序询问用户:
- 内容类型?——文本/图像/视频/音频/视觉
- 核心任务?——生成/理解/编码/推理/翻译
- 优先级?——质量vs速度vs成本
- 输入规模?——短/中/长上下文
- 是否需要结构化输出?——是否需要JSON/函数调用?
Default Recommendations
默认推荐
No clear signals → use the canonical default for the domain. For specialized cases (reasoning, coding,
OCR, role-play, image editing, etc.) and per-domain comparison, see
recommendation-matrix.md.
| Domain | Default | Quality | Speed | Cost |
|---|---|---|---|---|
| text.chat | qwen3.6-plus | qwen3-max | qwen3.5-flash | qwen-turbo |
| vision.analyze | qwen3.6-plus | qwen3-vl-plus | qwen3-vl-flash | qwen3-vl-flash |
| omni (voice+vision) | qwen3-omni-flash | qwen3-omni-flash | qwen3-omni-flash | — |
| image.generate | wan2.6-t2i | wan2.6-t2i | wan2.2-t2i-flash | wan2.2-t2i-flash · z-image-turbo (open-source) |
| image.edit | wan2.6-image | wan2.6-image | wan2.5-i2i-preview | wan2.5-i2i-preview |
| video.t2v | wan2.6-t2v | wan2.6-t2v | — | — |
| video.i2v | wan2.6-i2v-flash | wan2.6-i2v | wan2.6-i2v-flash | — |
| video.edit | wan2.7-videoedit | wan2.7-videoedit | happyhorse-1.0-video-edit | — |
| audio.tts | qwen3-tts-flash | cosyvoice-v3-plus | qwen3-tts-flash | qwen3-tts-flash |
Degradation: If this skill is not loaded, each execution skill falls back to its own built-in default. This protocol is purely additive — it enhances model selection but never blocks execution.
无明确信号时→使用对应领域的标准默认模型。针对推理、编码、OCR、角色扮演、图像编辑等特殊场景及跨领域对比,详见recommendation-matrix.md。
| 领域 | 默认模型 | 高质量模型 | 高速度模型 | 低成本模型 |
|---|---|---|---|---|
| text.chat | qwen3.6-plus | qwen3-max | qwen3.5-flash | qwen-turbo |
| vision.analyze | qwen3.6-plus | qwen3-vl-plus | qwen3-vl-flash | qwen3-vl-flash |
| omni (语音+视觉) | qwen3-omni-flash | qwen3-omni-flash | qwen3-omni-flash | — |
| image.generate | wan2.6-t2i | wan2.6-t2i | wan2.2-t2i-flash | wan2.2-t2i-flash · z-image-turbo(开源) |
| image.edit | wan2.6-image | wan2.6-image | wan2.5-i2i-preview | wan2.5-i2i-preview |
| video.t2v | wan2.6-t2v | wan2.6-t2v | — | — |
| video.i2v | wan2.6-i2v-flash | wan2.6-i2v | wan2.6-i2v-flash | — |
| video.edit | wan2.7-videoedit | wan2.7-videoedit | happyhorse-1.0-video-edit | — |
| audio.tts | qwen3-tts-flash | cosyvoice-v3-plus | qwen3-tts-flash | qwen3-tts-flash |
降级处理:如果本技能未加载,每个执行技能会 fallback 到自身内置的默认模型。本协议为纯增强型——仅优化模型选择,绝不阻塞执行。
CLI Quick Reference
CLI快速参考
Auth required. Allandmodelscommands need an active CLI session (browser device-flow login — NOT the API key). If the command returnsusage/Not authenticated:AUTH_REQUIRED
- Run the 3-step device-flow login in cli-usage.md (proactively open the verification URL using the OS-appropriate command, then poll immediately).
- Retry the original command after
.success- DO NOT ask the user for
/$DASHSCOPE_API_KEY— those are for model API calls, not CLI session. See Security & Credential Model above.$QIANWEN_API_KEY- DO NOT silently fall back to snapshots.
Token Plan 团队版 (keys): Thesk-sp-CLI does not yet support querying Token Plan seat allowances or shared-package Credits. For Token Plan usage queries, direct the user to the Token Plan Subscription console. Token Plan model availability (4 text + 4 image models) is documented in recommendation-matrix.md.qianwen
| Need | Command |
|---|---|
| Full model catalog | |
| Filter by modality | |
| Single model details | |
| Keyword search | |
| Free tier remaining | |
| Auth status | |
Display rules: Parse output and present a human-readable summary; never dump raw
JSON. Display output as-is, then add analysis after . See
cli-usage.md for details.
--format json--format text---需要认证。所有和models命令需要活跃的CLI会话(浏览器设备流登录——不是API Key)。如果命令返回usage/Not authenticated:AUTH_REQUIRED
- 执行三步设备流登录(详见cli-usage.md) (主动使用适配操作系统的命令打开验证URL,立即轮询状态)。
- 登录成功后重试原命令。
- 请勿向用户索要
/$DASHSCOPE_API_KEY——这些用于模型API调用,而非CLI会话。详见上方安全与凭证模型。$QIANWEN_API_KEY- 请勿静默降级到快照数据。
Token Plan团队版(密钥):sk-sp-CLI目前暂不支持查询Token Plan席位额度或共享套餐积分。对于Token Plan使用查询,请引导用户至Token Plan订阅控制台。Token Plan支持的模型(4个文本模型+4个图像模型)已记录在recommendation-matrix.md中。qianwen
| 需求 | 命令 |
|---|---|
| 完整模型目录 | |
| 按模态筛选 | |
| 单个模型详情 | |
| 关键词搜索 | |
| 免费额度剩余 | |
| 认证状态 | |
展示规则:解析输出并以人类可读的摘要形式呈现;绝不直接输出原始JSON。输出直接展示,然后在后添加分析。详情见cli-usage.md。
--format json--format text---CLI Error Handling — Quick Guide
CLI错误处理——快速指南
When CLI fails, classify first, recover, then retry. Never silently fall back to snapshots.
| Category | Recovery (summary) |
|---|---|
| Run 3-step login → retry the original command. Fall back only if user declines. |
| Show install command → ask user to install → retry. Do NOT silently use snapshot. |
| Run |
| Retry once after 2s; only after second failure ask whether to fall back. |
| Show Rate Limit Console; user decides. |
| Show Billing Console; do NOT use snapshot. |
| Suggest |
| Show raw stderr; link to docs; only after user opt-out, fall back. |
Full classification, signals, and example flows: error-handling.md.
当CLI执行失败时,先分类,再恢复,然后重试。切勿静默降级到快照数据。
| 错误分类 | 恢复操作(摘要) |
|---|---|
| 执行三步登录→重试原命令。仅当用户拒绝时才降级到快照。 |
| 展示安装命令→询问用户是否安装→重试。请勿静默使用快照数据。 |
| 执行 |
| 2秒后重试一次;仅第二次失败时询问是否降级。 |
| 展示速率限制控制台;由用户决定后续操作。 |
| 展示账单控制台;请勿使用快照数据。 |
| 建议执行 |
| 展示原始标准错误输出;链接到文档;仅当用户选择退出时才降级。 |
完整分类、信号及示例流程:error-handling.md。
Pricing & Cost Estimation
定价与成本估算
- Latest pricing: Run first; use
qianwen models info <model> --format jsononly as offline fallback. Never invent a price.pricing.md - Mandatory disclaimer: Every cost-related answer must end with the disclaimer in pricing-disclaimer.md (Chinese or English version, matching the user's response language). Omitting the disclaimer is a critical failure.
- Free quota: Never assume free quota is available — use to verify or direct the user to the console.
qianwen usage free-tier - Usage / billing queries: Direct the user to the appropriate console page — see the table in pricing-disclaimer.md.
- 最新定价:先执行;仅当离线时才用
qianwen models info <model> --format json作为 fallback。切勿编造价格。pricing.md - 强制免责声明:所有与成本相关的回答必须以pricing-disclaimer.md中的免责声明结尾(中文或英文版本,匹配用户响应语言)。省略免责声明属于严重错误。
- 免费额度:切勿假设免费额度可用——使用验证或引导用户至控制台。
qianwen usage free-tier - 使用/账单查询:引导用户至对应的控制台页面——详见pricing-disclaimer.md中的表格。
Update Check
更新检查
When the user asks to check for updates ("check for updates", "check version", "is there a new version",
"update skills"):
- Find qianwen-update-check: Look for in sibling skill directories.
qianwen-update-check/SKILL.md - If found — run: and report the result. Use
python3 <qianwen-update-check-dir>/scripts/check_update.py --print-responseif the user asks to force-check.--force - If not found — run and report the result.
qianwen version --check
当用户要求检查更新(如“检查更新”“检查版本”“是否有新版本”“更新技能”)时:
- 查找qianwen-update-check:在同级技能目录中查找。
qianwen-update-check/SKILL.md - 如果找到——执行:并报告结果。如果用户要求强制检查,添加
python3 <qianwen-update-check-dir>/scripts/check_update.py --print-response参数。--force - 如果未找到——执行并报告结果。
qianwen version --check
Anti-Patterns
反模式
- Never fabricate model names — only recommend models listed in this skill or returned by CLI.
- Never invent or guess any price figure — use CLI / / official pricing page only. Fabricating a price is a critical failure.
pricing.md - Never silently fall back to snapshots when CLI errors out — apply error-handling.md recovery actions first.
- Never assume free quota is available — quotas may have been consumed, expired, or removed. Always present the paid unit price first.
- Never output API keys in plaintext — see Security section.
- Never confuse CLI session with API key — CLI auth uses browser device-flow login; never offer
or
$DASHSCOPE_API_KEYas a fix for CLI$QIANWEN_API_KEY/Not authenticatederrors.AUTH_REQUIRED - Never proactively fetch URLs or trigger web searches — only access online sources when CLI + snapshots cannot answer AND the user confirms.
- Never construct usage/billing/console URLs — only use the exact links listed in this skill or its references. If a URL is not listed, do not invent one.
- Always include the cost disclaimer for any cost-related answer (see pricing-disclaimer.md).
- 切勿编造模型名称——仅推荐本技能中列出或CLI返回的模型。
- 切勿编造或猜测任何价格数据——仅使用CLI / / 官方定价页面。编造价格属于严重错误。
pricing.md - CLI出错时切勿静默降级到快照数据——先执行error-handling.md中的恢复操作。
- 切勿假设免费额度可用——额度可能已被消耗、过期或取消。始终先展示付费单价。
- 切勿明文输出API Key——详见安全章节。
- 切勿混淆CLI会话与API Key——CLI认证使用浏览器设备流登录;当CLI出现/
Not authenticated错误时,绝不要提供AUTH_REQUIRED或$DASHSCOPE_API_KEY作为解决方案。$QIANWEN_API_KEY - 切勿主动获取URL或触发网页搜索——仅当CLI+快照均无法回答且用户确认时,才访问在线资源。
- 切勿自行构建使用/账单/控制台URL——仅使用本技能或其参考文档中列出的精确链接。如果未列出URL,请勿编造。
- 所有与成本相关的回答必须包含成本免责声明(详见pricing-disclaimer.md)。
References
参考资料
| Source | Purpose |
|---|---|
| cli-usage.md | CLI-first strategy, 3-step login, display rules, model detail URL |
| error-handling.md | CLI error classification & recovery |
| recommendation-matrix.md | Full recommendation tables, Cross-Skill Resolution, Token Plan 团队版, Thinking Mode |
| pricing-disclaimer.md | Pricing guidance + mandatory disclaimer + billing console links |
| pricing.md | Pricing structural overview (offline snapshot) |
| model-list.md | Model catalog (offline snapshot) |
| sources.md | Official documentation URLs |
| agent-compatibility.md | Agent self-check for skill registration |
| Dynamic: full model catalog with pricing, features, quotas |
| Dynamic: single model details (pricing tiers, context, rate limits) |
| Dynamic: keyword-based model discovery |
| Dynamic: remaining free tier quota per model |
| 来源 | 用途 |
|---|---|
| cli-usage.md | CLI优先策略、三步登录、展示规则、模型详情URL |
| error-handling.md | CLI错误分类与恢复 |
| recommendation-matrix.md | 完整推荐表、跨技能解析、Token Plan团队版、思维模式 |
| pricing-disclaimer.md | 定价指南 + 强制免责声明 + 账单控制台链接 |
| pricing.md | 定价结构概述(离线快照) |
| model-list.md | 模型目录(离线快照) |
| sources.md | 官方文档URL |
| agent-compatibility.md | Agent技能注册自检 |
| 动态数据:包含定价、特性、配额的完整模型目录 |
| 动态数据:单个模型详情(定价层级、上下文、速率限制) |
| 动态数据:基于关键词的模型发现 |
| 动态数据:各模型剩余免费额度 |