Skip to content
The AI Builder's Newsletter

Choosing AI coding models

The most capable model is not always the right one, and the token price alone will not tell you which is cheapest.

Every choice about AI coding models is a trade between three things: how fast the work gets done, how good the result is, and what it costs. You cannot maximise all three. You can make deliberate trade-offs, and most teams do not, because they pick one model and use it for everything.

This post is about making those trade-offs on purpose: which model for which job, what "cost" and "speed" actually include, and why model prices alone do not tell you what the work will cost.

read the rest, free

Enter your email to unlock the article. You will also get the AI Builder's Newsletter with practical notes on building & shipping products with AI.

No payment, no card, nothing else to fill in. Unsubscribe any time.

Three competing factors

Speed, quality and cost pull against each other, but not as neatly as the price list suggests. A lower token price does not guarantee a cheaper result, and a faster response does not guarantee a shorter build. Compare models on the job you need done, including the corrections and checks it takes to finish it, and expect to land in a different place for different kinds of work.

The most capable model is not always the best choice

It is tempting to use the top model for everything. It is usually a waste. Renaming a function, writing a straightforward test, fixing a lint error, drafting a changelog: these are handled perfectly well by faster, cheaper models, and the top model's extra reasoning buys nothing.

Reserve the expensive model for where reasoning matters: planning, architecture, the hard bug, the review of a risky change.

Choose per job, not per subscription

Planning wants reasoning and breadth. Implementation wants good technical judgement, tool use and adherence to conventions. Review wants independence and a critical eye. Keep those stages separate, and you can choose a model for each; a model-agnostic harness lets them come from different companies, or run one locally. It also means no single provider's availability, region or pricing can stop your work. We cover the stages in Plan, build, review, and our own setup in How we set up our AI coding toolchain.

The rest of this post is about how to tell whether those choices actually save time and money.

Consider total cost, not token price

The per-token price is the visible number and the least useful one. A model that is cheap per token and fails the task twice before succeeding has cost three runs. Retries, failed implementations, excessive tool use and long runs of unnecessary reasoning all turn a cheap model into an expensive one.

The right measure is the cost to get a slice to "reviewed and merged". A model with a higher price per token and a higher first-time success rate often wins on that measure. One cheap model we tried, Kimi K2.7 Code, ignored rules that were already written down, and we stopped it mid-build; everything it had cost was wasted. In a later run of the same brief, Opus planned and GLM 5.3, also cheap, built it well. The lesson was not to spend more, but to choose a model that can do the particular job.

The same logic applies to the expensive-planner trap: having a top model write detailed implementation code that a cheaper model then reproduces pays for the implementation twice, and locks the builder into choices made before anyone was in the code.

Consider speed beyond latency

Response time is the visible speed, and also not the useful one. A model that answers quickly but needs several corrections is slower, end to end, than one that takes longer and completes the task first time. Availability counts too: in our cheapest successful run, provider stalls cost about two and a half hours of waiting. A low bill did not mean a short wait. Measure time to a finished, verified slice, not time to first token.

Quality is hard to evaluate

Here is the uncomfortable part. Passing tests and producing working software does not guarantee good architecture, maintainability or long-term correctness. A cheaper model may pass every test with code you will regret in six months. The difference often only shows up later, when the next feature is harder to add than it should be.

Independent review helps, and so does a reviewer that looks at design and not just correctness. But accept that quality is partly a judgement, and that the judgement is worth a human's time on the changes that matter.

Match the model to the job, and the checks to the risk

Which brings us to the simplest rule. Choose a model capable of the job first: strong reasoning for planning, where mistakes are expensive and few tokens are used; a cheaper but capable model for clear implementation slices, where most of the tokens go. Then scale verification and human oversight to the cost of being wrong. A change to authentication, payments, data or anything destructive deserves more edge-case tests, a stricter review and a person looking at it, whichever model built it.

Improve the workflow before chasing cheaper tokens

This is the point most model comparisons miss. Better slice boundaries mean fewer failed attempts. Appropriate context means fewer wrong assumptions. Autonomy means fewer rounds of human interruption. Automated verification means problems are caught by a type checker rather than by an expensive review. Every one of these reduces waste whichever model you chose.

If you want to cut your AI spend, look at the workflow as well as the price list.

Do not over-optimise

Finally, a caution. Costs are easy to observe, so they attract attention. Quality and productivity are much harder to measure, and elaborate metrics for them tend to measure something else. We do not recommend building a dashboard of tokens per feature. Track the cost and the elapsed time of finished, reviewed work, revisit your choices when models or prices change, and otherwise get on with building.