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 .

RankNamePrice per M tokensLinks
1

Amazon Bedrock · Capability 83 · 1M context · 42 providers

$20/M tokens
2

ZenMux · Capability 81 · 1M context · 105 providers

$0.13/M tokens
3

Qwen3.8 27B

Lowest cost

NanoGPT · Capability 75 · 1M context · 76 providers

$0.12/M tokens
4

Claude Fable 5

Amazon Bedrock · Capability 83 · 1M context · 50 providers

$20/M tokens
5

Muse Spark 1.3

NanoGPT · Capability 82 · 1M context · 21 providers

$0.97/M tokens
6

Claude Opus 5

Amazon Bedrock · Capability 80 · 1M context · 51 providers

$10/M tokens
7

GPT-5.6 Sol

Azure AI Foundry · Capability 81 · 1.1M context · 52 providers

$8/M tokens
8

Kimi K3

Avian · Capability 79 · 1M context · 97 providers

$5.10/M tokens
9

GPT-6 Astra

Jiekou · Capability 82 · 1.1M context · 44 providers

$19/M tokens
10

Gemini 3.7 Flash

DeepInfra · Capability 79 · 1M context · 40 providers

$1.50/M tokens

How hard is the task?

Rank again for a quicker or a harder version of it.

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.

Other tasks