最适合编程的大模型 API:28 个专注代码的模型(Coder、Codestral、Devstral 等)或支持工具调用的智能体模型。大上下文窗口有助于处理大型代码库。
更新于 2026年12月4日 · 28 个 API · 搜索并筛选完整目录 →
| 模型 | 服务商 | 价格(每百万令牌 输入 / 输出) | 上下文 | 中位延迟 | 无需密钥 |
|---|---|---|---|---|---|
Qwen 3.6 35B (qwen-coder)qwen-coder | free.ai | 免费 | — | 228 ms | ✓ |
Qwen 3.6 35B (qwen3-coder)qwen3-coder | free.ai | 免费 | — | 280 ms | ✓ |
Qwen3-Coder-Next · ParasailQwen/Qwen3-Coder-Next:parasail | Hugging Face Inference | $0.12 / $0.8 | 262,144 | — | |
Qwen3-Coder-30B-A3B-Instruct · Amazon BedrockQwen/Qwen3-Coder-30B-A3B-Instruct:amazon-bedrock | Hugging Face Inference | $0.15 / $0.6 | 262,144 | — | |
Qwen2.5-Coder-32B-Instruct · CloudflareQwen/Qwen2.5-Coder-32B-Instruct:cloudflare | Hugging Face Inference | $0.66 / $1 | 32,768 | — | |
Kimi-K2.7-Code · CoreWeavemoonshotai/Kimi-K2.7-Code:coreweave | Hugging Face Inference | $0.6 / $3 | 262,144 | — | |
Kimi-K2.7-Code · Inceptronmoonshotai/Kimi-K2.7-Code:inceptron | Hugging Face Inference | $0.63 / $3.5 | 262,144 | — | |
Qwen3-Coder-480B-A35B-Instruct · DeepInfraQwen/Qwen3-Coder-480B-A35B-Instruct:deepinfra | Hugging Face Inference | $0.3 / $1 | 262,144 | — | |
Qwen3-Coder-480B-A35B-Instruct · VeniceQwen/Qwen3-Coder-480B-A35B-Instruct:venice | Hugging Face Inference | $0.35 / $1.5 | 256,000 | — | |
MoonshotAI: Kimi K2.7 Codemoonshotai/kimi-k2.7-code | OpenRouter | $0.63 / $3.5 | 262,144 | — | |
OpenAI: GPT-5.3-Codexopenai/gpt-5.3-codex | OpenRouter | $1.75 / $14 | 400,000 | — | |
Qwen: Qwen3 Coder Nextqwen/qwen3-coder-next | OpenRouter | $0.12 / $0.8 | 262,144 | — | |
OpenAI: GPT-5.2-Codexopenai/gpt-5.2-codex | OpenRouter | $1.75 / $14 | 400,000 | — | |
Mistral: Devstral 2 2512mistralai/devstral-2512 | OpenRouter | $0.4 / $2 | 262,144 | — | |
OpenAI: GPT-5.1-Codex-Maxopenai/gpt-5.1-codex-max | OpenRouter | $1.25 / $10 | 400,000 | — | |
OpenAI: GPT-5.1-Codexopenai/gpt-5.1-codex | OpenRouter | $1.25 / $10 | 400,000 | — | |
OpenAI: GPT-5.1-Codex-Miniopenai/gpt-5.1-codex-mini | OpenRouter | $0.25 / $2 | 400,000 | — | |
Qwen: Qwen3 Coder Flashqwen/qwen3-coder-flash | OpenRouter | $0.195 / $0.975 | 1,000,000 | — | |
Mistral: Codestral 2508mistralai/codestral-2508 | OpenRouter | $0.3 / $0.9 | 256,000 | — | |
Mistral: Codestral 2508 (batch)mistralai/codestral-2508:batch | OpenRouter | $0.15 / $0.45 | 256,000 | — | |
Qwen: Qwen3 Coder 30B A3B Instructqwen/qwen3-coder-30b-a3b-instruct | OpenRouter | $0.07 / $0.28 | 262,144 | — | |
Qwen: Qwen3 Coder 480B A35Bqwen/qwen3-coder | OpenRouter | $0.3 / $1 | 262,144 | — | |
Qwen2.5 Coder 32B Instructqwen/qwen-2.5-coder-32b-instruct | OpenRouter | $0.66 / $1 | 32,768 | — | |
Auto Codeopenrouter/auto-code | OpenRouter | — | 2,000,000 | — | |
Pareto Code Routeropenrouter/pareto-code | OpenRouter | — | 2,000,000 | — | |
LLM7 · codestral-latestcodestral-latest | LLM7 | $0.01 / $0.02 | 32,000 | — | |
LLM7 · codex/gpt-6-astracodex/gpt-6-astra | LLM7 | $0.2 / $0.7 | 272,000 | — | |
LLM7 · kimi-k2.7-codekimi-k2.7-code | LLM7 | $0.35 / $1.46 | 256,000 | — |