返回模型列表
Qwen3 Coder Plus
qwenqwen/qwen3-coder-plus
API 使用指南
Chat 调用
通过 TheRouter 的 OpenAI 兼容 Chat Completions 端点调用 Qwen3-Coder-Plus,用于代码生成、审查和重构提示。
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3-coder-plus",
"messages": [{"role": "user", "content": "Refactor this TypeScript module to isolate file-system side effects."}],
"temperature": 0.2,
"top_p": 0.8,
"max_tokens": 4096
}'函数调用
Qwen-Coder 明确支持工具调用循环。请保持工具列表聚焦;阿里巴巴建议单次请求 tools 不超过 20 个,以保证效率与工具选择准确性。
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3-coder-plus",
"messages": [{"role": "user", "content": "Create a migration file for adding an indexed email column."}],
"tools": [{
"type": "function",
"function": {
"name": "write_file",
"description": "Write content to a repository file.",
"parameters": {
"type": "object",
"properties": {
"path": {"type": "string"},
"content": {"type": "string"}
},
"required": ["path", "content"]
}
}
}]
}'流式输出
对于较长代码响应,使用流式输出可降低体感超时风险,并在开发工具中展示进度。
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3-coder-plus",
"stream": true,
"messages": [{"role": "user", "content": "Generate a complete Express middleware with tests."}]
}'事实档案 — 本页每条断言可在此回溯来源
| 来源 | URL | 采集于 | |
|---|---|---|---|
| 稳定别名 | www.alibabacloud.com ↗ | 2026-06-02 | 已核实 |
| 可用快照 | www.alibabacloud.com ↗ | 2026-06-02 | 已核实 |
| 上下文窗口 | www.alibabacloud.com ↗ | 2026-06-02 | 已核实 |
| 最大输入 | www.alibabacloud.com ↗ | 2026-06-02 | 已核实 |
| 最大输出 | www.alibabacloud.com ↗ | 2026-06-02 | 已核实 |
| 模型定位 | www.alibabacloud.com ↗ | 2026-06-02 | 已核实 |
| 上下文缓存 | www.alibabacloud.com ↗ | 2026-06-02 | 已核实 |
| 训练数据截止 | — | — | 未知 |
| SWE-bench Verified | qwenlm.github.io ↗ | 2026-06-02 | 待核实 |
| Agentic Coding / Browser-Use / Tool-Use | qwenlm.github.io ↗ | 2026-06-02 | 待核实 |
| Public Plus-specific benchmark disclosure | alibabacloud.com ↗ | 2026-06-02 | 已核实 |
| Qwen3-Coder-Plus 稳定别名切换至 2025-09-23 快照 | alibabacloud.com ↗ | 2026-06-02 | 已核实 |
| Qwen3-Coder 发布并提供托管 qwen3-coder-plus 调用 | qwenlm.github.io ↗ | 2026-06-02 | 已核实 |
| qwen/qwen3-coder-plus 与开放的 Qwen3-Coder-480B 是同一个模型吗? | www.alibabacloud.com ↗ | 2026-06-02 | 待核实 |
| 应该选择哪个 Qwen-Coder 模型:plus、next 还是 flash? | www.alibabacloud.com ↗ | 2026-06-02 | 待核实 |
| Qwen3-Coder-Plus 支持函数调用吗? | www.alibabacloud.com ↗ | 2026-06-02 | 待核实 |
| Plus 专属基准分数公开了吗? | www.alibabacloud.com ↗ | 2026-06-02 | 待核实 |