Best AI for coding
98 models ranked by their LMArena WebDev score, with prices from every provider that serves them.
Makers
/
| Claude Opus 5.5AnthropicPrompt cachingJSON+3 | $16/1Mvia APIMart | 1M | $4/1M | $20/1M | 1807 | |
| GPT-6 AstraOpenAIPrompt cachingJSON+3 | $25/1Mvia CrazyRouter | 1.05M | $10/1M | $50/1M | 1775 | |
| Claude Sonnet 5.5AnthropicPrompt cachingJSON+3 | $8/1Mvia APIMart | 1M | $2/1M | $10/1M | 1767 | |
| GPT-6.1 SolOpenAIPrompt cachingJSON+3 | $8/1Mvia APIMart | 1.05M | $2/1M | $10/1M | 1749 | |
| Claude Fable 5.1AnthropicPrompt cachingJSON+3 | $40/1Mvia APIMart | 1M | $10/1M | $50/1M | 1743 | |
| Claude Opus 5AnthropicPrompt cachingJSON+3 | $20/1Mvia APIMart | 1M | $5/1M | $25/1M | 1690 | |
| GPT-6 SolOpenAIPrompt cachingJSON+3 | $8/1Mvia APIMart | 1.05M | $2/1M | $10/1M | 1682 | |
| $4.11/1Mvia APIMart | 1M | $1.65/1M | $4.95/1M | 1673 | ||
| $8/1Mvia APIMart | 1.05M | $2/1M | $10/1M | 1673 | ||
| $0.03/1Mvia UnoRouter | 1.05M | $0.007/1M | $0.03/1M | 1664 | ||
| $4.25/1Mvia EmpirioLabs AI | 1.05M | $1.25/1M | $4.25/1M | 1657 | ||
| Kimi K3Moonshot AIOpen weights · with termsPrompt caching+4 | $8.28/1Mvia Kenari | 1.05M | $2.78/1M | $13.89/1M | 1655 | |
| Grok 4.7xAIPrompt cachingJSON+2 | $4.80/1Mvia APIMart | 500K | $2/1M | $6/1M | 1637 | |
| $0.10/1Mvia UnoRouter | 1.05M | $0.05/1M | $0.10/1M | 1634 | ||
| $2.25/1Mvia OpenRouter | 1.05M | $0.751/1M | $2.25/1M | 1631 | ||
| $0.376/1Mvia CometAPI | 262K | $0.12/1M | $0.376/1M | 1628 | ||
| $0.696/1Mvia CometAPI | 1.05M | $0.348/1M | $0.696/1M | 1625 | ||
| Claude Fable 5AnthropicPrompt cachingJSON+3 | $40/1Mvia APIMart | 1M | $10/1M | $50/1M | 1624 | |
| $1.10/1Mvia NanoGPT | 1.05M | $1.40/1M | $4.40/1M | 1623 | ||
| Grok 4.6xAIPrompt cachingJSON+2 | $4.80/1Mvia APIMart | 500K | $2/1M | $6/1M | 1617 | |
| GPT-5.6OpenAIPrompt cachingJSON+3 | $10/1Mvia Boundless | 1.05M | $4/1M | $20/1M | 1615 | |
| $0.20/1Mvia APIMart | 1.05M | $0.15/1M | $0.50/1M | 1608 | ||
| $1.80/1Mvia Deep Infra | 1M | $1.40/1M | $4.40/1M | 1604 | ||
| $0.50/1Mvia EmpirioLabs AI | 262K | $0.50/1M | $3/1M | 1591 | ||
| $1.13/1Mvia Kie.ai | 1.05M | $0.225/1M | $1.13/1M | 1591 | ||
| $0.45/1Mvia EmpirioLabs AI | 1.05M | $0.15/1M | $0.60/1M | 1590 | ||
| $3/1Mvia APIMart | 1.05M | $0.75/1M | $3.75/1M | 1585 | ||
| Claude Haiku 5.5AnthropicPrompt cachingJSON+3 | $0.30/1Mvia Kie.ai | 1M | $0.10/1M | $0.50/1M | 1585 | |
| GPT-6 LunaOpenAIPrompt cachingJSON+3 | $0.40/1Mvia APIMart | 1.05M | $0.10/1M | $0.50/1M | 1578 | |
| $2.70/1Mvia Deep Infra | 1.05M | $1/1M | $2.70/1M | 1568 | ||
| Claude Opus 4.7AnthropicPrompt cachingJSON+3 | $20/1Mvia APIMart | 1M | $5/1M | $25/1M | 1558 | |
| Claude Opus 4.8AnthropicPrompt cachingJSON+3 | $20/1Mvia APIMart | 1M | $5/1M | $25/1M | 1556 | |
| Grok 4.5xAIPrompt cachingJSON+2 | $3.20/1Mvia APIMart | 500K | $2/1M | $6/1M | 1553 | |
| Claude Opus 4.6AnthropicPrompt cachingJSON+3 | $20/1Mvia APIMart | 1M | $5/1M | $25/1M | 1546 | |
| $2.09/1Mvia Opper | 1.05M | $1.36/1M | $4.18/1M | 1543 | ||
| $4.25/1Mvia EmpirioLabs AI | 1.05M | $1.25/1M | $4.25/1M | 1543 | ||
| Claude Sonnet 5AnthropicPrompt cachingJSON+3 | $6.90/1Mvia Kenari | 1M | $2/1M | $10/1M | 1541 | |
| $3/1Mvia CometAPI | 1.05M | $0.75/1M | $3.75/1M | 1538 | ||
| $4.25/1Mvia EmpirioLabs AI | 1.05M | $1.25/1M | $4.25/1M | 1534 | ||
| $4.25/1Mvia Baseten | 1.05M | $1.25/1M | $4.25/1M | 1527 | ||
| Claude Sonnet 4.6AnthropicPrompt cachingJSON+3 | $12/1Mvia APIMart | 1M | $3/1M | $15/1M | 1523 | |
| GPT-5.6 TerraOpenAIPrompt cachingJSON+3 | $9.60/1Mvia APIMart | 1.05M | $2/1M | $12/1M | 1521 | |
| GPT-5.6 LunaOpenAIPrompt cachingJSON+3 | $0.96/1Mvia APIMart | 1.05M | $0.20/1M | $1.20/1M | 1519 | |
| $3.75/1Mvia DevPass (LLM Gateway) | 1M | $1.65/1M | $4.95/1M | 1515 | ||
| OpenAI GPT-5.5OpenAIPrompt cachingJSON+3 | $24/1Mvia APIMart | 1.05M | $5/1M | $30/1M | 1513 | |
| Kimi K2.6Moonshot AIOpen weights · with termsPrompt caching+4 | $2.40/1Mvia APIYI | 262K | $0.903/1M | $3.75/1M | 1509 | |
| $1.44/1Mvia APIMart | 200K | $1.40/1M | $4.40/1M | 1508 | ||
| $0.33/1Mvia OpenRouter | 262K | $0.083/1M | $0.33/1M | 1506 | ||
| $2.70/1Mvia Kie.ai | 1.05M | $0.45/1M | $2.70/1M | 1499 | ||
| $0.90/1Mvia EmpirioLabs AI | 1M | $0.30/1M | $1.20/1M | 1482 |
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