Best AI for coding
98 models ranked by their LMArena WebDev score, with prices from every provider that serves them.
Makers
/
| $9.98/1Mvia CometAPI | 256K | $1.66/1M | $9.98/1M | 1482 | ||
| $0.609/1Mvia OpenRouter | 1.05M | $0.304/1M | $0.609/1M | 1480 | ||
| Kimi K2.7 Code HighSpeedMoonshot AIOpen weights · with termsPrompt caching+4 | $2.76/1Mvia Kenari | 262K | $0.903/1M | $3.75/1M | 1474 | |
| OpenAI GPT-5.4OpenAIPrompt cachingJSON+3 | $12/1Mvia APIMart | 1.05M | $2.50/1M | $15/1M | 1463 | |
| $1.37/1Mvia APIMart | 1M | $0.276/1M | $1.65/1M | 1462 | ||
| $6.90/1Mvia Kenari | 1.05M | $2/1M | $12/1M | 1447 | ||
| $12/1Mvia Replicate | — | $2/1M | $12/1M | 1440 | ||
| $2.40/1Mvia CometAPI | 1.05M | $0.30/1M | $2.40/1M | 1440 | ||
| $0.224/1Mvia CometAPI | 1.05M | $0.112/1M | $0.224/1M | 1438 | ||
| Kimi K2.5Moonshot AIOpen weights · with termsPrompt caching+4 | $0.555/1Mvia APIMart | 262K | $0.411/1M | $0.555/1M | 1437 | |
| $1/1Mvia OpenRouter | 1.05M | $0.25/1M | $1/1M | 1436 | ||
| $1.10/1Mvia AIHubMix | 200K | $0.60/1M | $2.20/1M | 1435 | ||
| $1.28/1Mvia APIMart | 205K | $1/1M | $3.20/1M | 1435 | ||
| $6/1Mvia Jiekou.AI | — | $2/1M | $6/1M | 1434 | ||
| $2/1Mvia APIMart | 1.05M | — | $2.50/1M | 1434 | ||
| GPT-5OpenAIPrompt cachingJSON+3 | $8/1Mvia APIMart | 400K | $1.25/1M | $10/1M | 1418 | |
| OpenAI GPT-5.2OpenAIPrompt cachingJSON+3 | $11.20/1Mvia APIMart | 400K | $1.75/1M | $14/1M | 1417 | |
Inkling (256K)Thinking MachinesPrompt cachingReasoning+2 | $1.50/1Mvia Venice AI | 256K | $0.563/1M | $1.50/1M | 1415 | |
Inkling SmallThinking MachinesPrompt cachingReasoning+2 | $1.20/1Mvia Deep Infra | 1.05M | $0.45/1M | $1.20/1M | 1409 | |
| $3.10/1Mvia AIHubMix | 200K | $0.704/1M | $3.10/1M | 1402 | ||
| $0.986/1Mvia AIHubMix | 262K | $0.172/1M | $1.03/1M | 1400 | ||
| $0.60/1Mvia EmpirioLabs AI | 205K | $0.15/1M | $0.60/1M | 1398 | ||
| OpenAI GPT-5.4 MiniOpenAIPrompt cachingJSON+3 | $3.60/1Mvia APIMart | 400K | $0.75/1M | $4.50/1M | 1397 | |
| GPT-5.1OpenAIPrompt cachingJSON+3 | $8/1Mvia APIMart | 400K | $1.25/1M | $10/1M | 1396 | |
| $0.95/1Mvia Venice AI | 205K | $0.27/1M | $0.95/1M | 1386 | ||
| OpenAI GPT-5.3 CodexOpenAIPrompt cachingJSON+3 | $11.20/1Mvia APIMart | 400K | $1.40/1M | $11.20/1M | 1371 | |
| $0.308/1Mvia APIMart | 164K | $0.206/1M | $0.308/1M | 1363 | ||
| $0.901/1Mvia AIHubMix | 262K | $0.40/1M | $3.20/1M | 1361 | ||
| $0.677/1Mvia AIHubMix | 262K | $0.30/1M | $2.40/1M | 1359 | ||
| Grok 4.3xAIPrompt cachingJSON+2 | $2/1Mvia APIMart | 1M | $1.25/1M | $2.50/1M | 1357 | |
| $0.60/1Mvia OpenRouter | 262K | $0.18/1M | $0.60/1M | 1357 | ||
| $1.10/1Mvia AIHubMix | 200K | $0.60/1M | $2.20/1M | 1341 | ||
| GPT-5.2 CodexOpenAIPrompt cachingJSON+3 | $11.20/1Mvia APIMart | 400K | $1.40/1M | $11.20/1M | 1339 | |
| GPT-5.1 CodexOpenAIPrompt cachingJSON+3 | $8/1Mvia APIMart | 400K | $1/1M | $8/1M | 1337 | |
| $0.30/1Mvia Jiekou.AI | 256K | $0.10/1M | $0.30/1M | 1331 | ||
| $1/1Mvia DevPass (LLM Gateway) | 205K | $0.20/1M | $1/1M | 1297 | ||
| $0.95/1Mvia Helicone | 262K | $0.22/1M | $0.95/1M | 1275 | ||
| $0.308/1Mvia APIMart | 164K | $0.206/1M | $0.308/1M | 1272 | ||
| $7.50/1Mvia Azure | 262K | $1.50/1M | $7.50/1M | 1264 | ||
| $1.20/1Mvia APIMart | 1.05M | $0.20/1M | $1.20/1M | 1256 | ||
| $0.451/1Mvia AIHubMix | 262K | $0.25/1M | $2/1M | 1254 | ||
| GPT-5.1 Codex miniOpenAIPrompt cachingJSON+3 | $1.60/1Mvia APIMart | 400K | $0.20/1M | $1.60/1M | 1244 | |
| $0.26/1Mvia OpenRouter | 1M | $0.029/1M | $0.287/1M | 1244 | ||
| Grok 4.1 FastxAIPrompt cachingJSON+2 | $0.475/1Mvia Jiekou.AI | 2M | $0.19/1M | $0.475/1M | 1242 | |
| $8/1Mvia APIMart | 1.05M | $1.25/1M | $10/1M | 1226 | ||
| Mercury 2InceptionPrompt cachingJSON+2 | $0.75/1Mvia OpenRouter | 128K | $0.25/1M | $0.75/1M | 1171 | |
| Grok Code Fast 1xAIPrompt cachingJSON+2 | $1.43/1Mvia Jiekou.AI | 256K | $0.19/1M | $1.43/1M | 1167 | |
| Grok-4-FastxAIPrompt cachingJSON+2 | $0.50/1Mvia Azure | 2M | $0.20/1M | $0.50/1M | 1159 |
Frequently asked questions
This list is ranked by the LMArena WebDev leaderboard, where people compare two models' code side by side without knowing which is which. The top of the list is the best place to start; check the price columns before you pick one for daily use.
Sort by output price, or filter by price band, and look at the coding score beside it. Open-weight models served by third-party hosts are often the cheapest at a similar score.
An Elo-style rating from LMArena's WebDev arena. A higher number means people preferred the model's code more often in head-to-head votes. Only models with enough votes are ranked.
Can't find what you're looking for? Contact us
