返回模型列表
Qwen3 Coder 480B
qwenqwen/qwen3-coder-480b
API 使用指南
Chat 调用
使用标准 OpenAI 兼容 Chat Completions 端点。该模型在提示词包含具体文件、失败测试或明确编码约束时表现最好。
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-480b",
"messages": [
{"role": "system", "content": "You are a senior software engineer. Return concise patches and explain tradeoffs."},
{"role": "user", "content": "Refactor this TypeScript function to remove duplication and preserve behavior: ..."}
],
"temperature": 0.7,
"max_tokens": 4096
}'流式输出
对长代码解释和补丁方案启用流式输出,让 IDE 用户在完整答案结束前就看到进度。
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-480b",
"messages": [{"role": "user", "content": "Explain the failure mode and propose a minimal patch."}],
"stream": true
}'工具调用
Qwen3-Coder 面向 agent 工作流调优。应使用工具做仓库搜索、测试执行、问题查询和补丁应用,而不是让模型猜测状态。
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-480b",
"messages": [{"role": "user", "content": "Find the file that defines billing reconciliation and summarize the invariant."}],
"tools": [{
"type": "function",
"function": {
"name": "repo_search",
"description": "Search repository files by query",
"parameters": {
"type": "object",
"properties": {"query": {"type": "string"}},
"required": ["query"]
}
}
}],
"tool_choice": "auto"
}'JSON 模式
JSON 模式适合代码审查自动化、结构化 issue 分诊和迁移清单生成。
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-480b",
"messages": [
{"role": "system", "content": "Return only JSON with keys risk, files, tests."},
{"role": "user", "content": "Review this diff for production risk: ..."}
],
"response_format": {"type": "json_object"}
}'事实档案 — 本页每条断言可在此回溯来源
| 来源 | URL | 采集于 | |
|---|---|---|---|
| 架构 | huggingface.co ↗ | 2026-06-02 | 已核实 |
| 参数规模 | huggingface.co ↗ | 2026-06-02 | 已核实 |
| 专家数量 | huggingface.co ↗ | 2026-06-02 | 已核实 |
| 原生上下文 | qwenlm.github.io ↗ | 2026-06-02 | 已核实 |
| 输出模式 | huggingface.co ↗ | 2026-06-02 | 已核实 |
| 训练重点 | qwenlm.github.io ↗ | 2026-06-02 | 已核实 |
| SWE-bench Verified | together.ai ↗ | 2026-06-02 | 待核实 |
| Aider Polyglot | medium.com ↗ | 2026-06-02 | 单一来源 |
| Agentic Coding / Browser-Use / Tool-Use | qwenlm.github.io ↗ | 2026-06-02 | 已核实 |
| Qwen3-Coder-Next 技术报告将新 80B/3B 模型与 Qwen3-Coder-480B 对比 | arxiv.org ↗ | 2026-06-02 | 已核实 |
| Qwen 发布 Qwen3-Coder-480B-A35B-Instruct 与 Qwen Code | qwenlm.github.io ↗ | 2026-06-02 | 已核实 |
| Hugging Face 模型页公开架构与非思考模式细节 | huggingface.co/Qwen ↗ | 2026-06-02 | 已核实 |
| Qwen3-Coder-480B 是思考模型吗? | huggingface.co ↗ | 2026-06-02 | 待核实 |
| 它支持多长上下文? | qwenlm.github.io ↗ | 2026-06-02 | 待核实 |
| 能否在 Cursor、Cline 或 Claude Code 风格工具中使用? | qwenlm.github.io ↗ | 2026-06-02 | 待核实 |
| 它和 qwen/qwen3-coder-30b 有什么区别? | github.com ↗ | 2026-06-02 | 待核实 |
| 可以自托管 Qwen3-Coder-480B 吗? | huggingface.co ↗ | 2026-06-02 | 待核实 |