Use case

Best AI models for coding

Ranked by tool-use support, code-related signals in vendor descriptions, and overall capability. Includes both proprietary APIs and open-weight models you can self-host.

Top 25 models for code generation

#ModelProviderContextInput price / 1MTier
1Qwen: Qwen3 Coder 30B A3B InstructQwen262K
Long context (128K+)
$0.07Budget
2DeepSeek: DeepSeek V4.1 FlashDeepSeek1.0M
Ultra context (1M+)
$0.30Budget
3DeepSeek: DeepSeek V4.1 Flash (batch)DeepSeek1.0M
Ultra context (1M+)
$0.11Budget
4IBM: Granite 4.1 8BIbm Granite131K
Long context (128K+)
$0.05Budget
5Qwen: Qwen3 Coder FlashQwen1M
Ultra context (1M+)
$0.20Budget
6Qwen: Qwen3 Coder PlusQwen1M
Ultra context (1M+)
$0.65Budget
7Kwaipilot: KAT-Coder-Air V2.5Kwaipilot256K
Long context (128K+)
$0.15Budget
8Kwaipilot: KAT-Coder-Pro V1Kwaipilot256K
Long context (128K+)
$0.21Budget
9Kwaipilot: KAT-Coder-Pro V2Kwaipilot262K
Long context (128K+)
$0.30Budget
10Kwaipilot: KAT-Coder-Pro V2.5Kwaipilot262K
Long context (128K+)
$0.74Budget
11Qwen: Qwen3 Coder 480B A35BQwen262K
Long context (128K+)
$0.30Budget
12Qwen: Qwen3 Coder 480B A35B (exacto)Qwen262K
Long context (128K+)
$0.22Budget
13Qwen: Qwen3 Coder NextQwen262K
Long context (128K+)
$0.12Budget
14StepFun: Step 3.7 FlashStepfun262K
Long context (128K+)
$0.20Budget
15xAI: Grok Code Fast 1X Ai256K
Long context (128K+)
$0.20Budget
16Inception: Mercury CoderInception128K
Long context (128K+)
$0.25Budget
17Mistral: Devstral MediumMistral AI131K
Long context (128K+)
$0.40Budget
18OpenAI: GPT Audio MiniOpenAI128K
Long context (128K+)
$0.60Budget
19OpenAI: GPT AudioOpenAI128K
Long context (128K+)
$2.50Standard
20Qwen: Qwen3 Coder 480B A35B (free)Qwen262K
Long context (128K+)
$0.00Budget
21Z.ai: GLM 4 32BZ Ai128K
Long context (128K+)
$0.10Budget
22Qwen: Qwen2.5 Coder 7B InstructQwen33K
Short/standard context
$0.03Budget
23Qwen2.5 Coder 32B InstructQwen33K
Short/standard context
$0.66Budget
24Arcee AI: Trinity Large Preview (free)Arcee Ai131K
Long context (128K+)
$0.00Budget
25Google: Gemini 2.5 Flash Lite Preview 09-2025Google1.0M
Ultra context (1M+)
$0.10Budget

Frequently asked questions

What's the best AI coding model right now?

It depends on whether you need raw quality (Claude Opus, GPT-5 Codex), low cost (Qwen Coder, DeepSeek), or self-hosting (Qwen Coder, GPT-OSS). Use the table above sorted by capability score and price tier.

Do these models support tool use?

Most flagship coding models on this page support tool/function calling — look for the 'tool-use' tag. Open-weight models vary; check each model page for the supported parameters.

Which coding model has the largest context window?

Models with 1M+ context (sorted at the top of the long-context column) handle entire monorepos in a single prompt.

Related use cases

Advertisement