Best AI models for coding.
Prices checked
For coding, Claude Fable 5.1 is the best measured match of 42 models with published results, from $20 per M tokens at Amazon Bedrock, checked .
Top 10
Add your requirements| Rank | Name | Price per M tokens | Links |
|---|---|---|---|
| 1 | Claude Fable 5.1Best match
| $20/M tokens | |
| 2 | DeepSeek V4.1 Flash 1017Best value
| $0.13/M tokens | |
| 3 | Qwen3.8 27BLowest cost
| $0.12/M tokens | |
| 4 | Claude Fable 5
| $20/M tokens | |
| 5 | Muse Spark 1.3
| $0.97/M tokens | |
| 6 | Claude Opus 5
| $10/M tokens | |
| 7 | GPT-5.6 Sol
| $8/M tokens | |
| 8 | Kimi K3
| $5.10/M tokens | |
| 9 | GPT-6 Astra
| $19/M tokens | |
| 10 | Gemini 3.7 Flash
| $1.50/M tokens |
How hard is the task?
Rank again for a quicker or a harder version of it.
Change the range
Quick tasks
Explain a function, write a small test or fix a local syntax or logic error.
This list
Balanced
Implement a bounded feature, review a change or debug an issue across a few files.
Change the range
Complex tasks
Plan a migration, investigate an unfamiliar repository or coordinate a change across several components.
How we count
A short function, a debugging session and a change across a repository ask different things of a model. This shortlist emphasizes coding and agentic coding results, with reasoning and instruction following also contributing. Choose a difficulty level around the scope of the change you need.
The list weighs the published results that matter for coding and keeps the models close enough to the best one for a balanced task. Price picks the provider after that; it never lifts a weaker model into the list. 382 available models were considered and 42 have comparable evidence.
Each price is the cheapest provider read in the last three days, per M tokens, blended 3 in : 1 out.
Published coding results depend on the benchmark and evaluation setup. They do not predict success on your repository or guarantee that a provider reproduces the measured configuration.
The ranking uses the same Balanced settings as the Ask page. The Capability methodology has the sources, the exact identity rules, the task weights and the difficulty ranges.
- Best match
- The strongest published results for this task at a balanced difficulty.
- Best value
- The cheapest model within five points of the best match.
- Lowest cost
- The cheapest model in the range this page lists.