Bonus: Top up now and we'll double your first deposit — get x2 credits instantly.
How to choose · Coding

How to choose an AI coding model

Coding models differ far more on real repositories than on toy puzzles. This guide shows what to measure, what it costs per month, and which models lead today, using live data from our catalogue.

Illustration of a laptop with code surrounded by model comparison cards
Live catalogue · refreshed every Sunday

Coding models by the numbers

Tracked
28
Coding models tracked
Top rated
2
rated 4.0 or higher and live
Median price
$0.740
median input price per 1M tokens
Open weights
11
with open weights

Quick answer: top picks today

The three highest-rated models you can call on LLM API right now.

Find your model in 3 questions

1. What matters most?

2. Where will it run?

3. Budget?

Your top 3 update as you answer, from live catalogue data.

Price vs rating

Each dot is a model you can use. Up is better rated, left is cheaper. Hover for details, click to open.

Rated 4.0+3.0–3.9Below 3.0Labels name the top-rated models · hover any dot for name, rating and price

Largest context windows

What will it cost per month?

Drag the slider to your expected volume. Prices are live list prices of the top models.

An average coding agent step uses 5–20K tokens · blended 70% input / 30% output price
ModelPer month

Key numbers to know

1 line of code≈ 10 tokens
A 300-line file≈ 3,000 tokens
A mid-size repo map sent as context30–100K tokens
One agent step (read, edit, test)5–20K tokens
Output vs input priceOutput usually costs 3–5× more per token

How to choose, step by step

Decide between autocomplete and agents

Inline completion needs a fast, cheap model with low latency. Agents that edit several files and run tests need the strongest model you can afford, because one failed step costs more than the token difference.

Check real-repo benchmarks, not puzzles

SWE-bench Verified asks a model to fix real GitHub issues and passes only if the project's own tests pass. It predicts agent quality far better than short function-writing tests.

Size the context to your codebase

A 128K window fits a focused module plus instructions. For whole-repo reasoning look for 200K–1M tokens, and remember you pay for every token you resend.

Confirm tool calling and structured output

Coding agents depend on reliable function calls and JSON. Check the Tools and JSON chips in the category table before you commit.

Keep a cheaper fallback

Route easy tasks (renames, docstrings, tests) to a cheaper model and send hard ones to the top model. Most teams cut cost by half this way.

Decision diagram

Answer top to bottom. The first yes is your starting point.

Is it an autonomous agent editing many files?
Yes
Pick a top-rated model with tool calling (check the Rating column)
No
Must the code stay on your own servers?
Yes
Pick an open-weight coder (Qwen3-Coder, DeepSeek) and self-host
No
Is latency critical (autocomplete)?
Yes
Pick a small, fast model under $0.50 / 1M input
No → Pick the best rating you can afford

What the research says

The independent benchmarks that matter for this category, with links to the papers and methodology behind each one.

Reviews: what the labs and sources say

Verbatim quotes from public sources. Click through to read them in context.

“GPT‑5‑Codex is a version of GPT‑5 further optimized for agentic software engineering in Codex.”
GPT-5 Codex · OpenAI, Introducing upgrades to Codex, Sep 15, 2025
“Qwen3-Coder-480B-A35B-Instruct sets new state-of-the-art results among open models on Agentic Coding, Agentic Browser-Use, and Agentic Tool-Use, comparable to Claude Sonnet 4.”
Qwen3 Coder Plus · Qwen Team blog, Qwen3-Coder (the model behind Qwen3 Coder Plus), Jul 22, 2025
“Devstral Small 1.1 achieves a score of 53.6% on SWE-Bench Verified, and sets a new state-of-the-art for open models without test-time scaling.”
Devstral Small 1.1 · Mistral AI, Upgrading agentic coding capabilities with the new Devstral models, Jul 10, 2025
“How the world’s leading enterprises are using integrated coding solutions from Mistral AI to cut development, review, and testing time by 50%”
Codestral · Mistral AI, Announcing Codestral 25.08, Jul 30, 2025

Mistakes to avoid

1
Mistake 1

Picking by HumanEval-style scores. Nearly every model scores above 85%, so these tests no longer separate models.

2
Mistake 2

Ignoring output price. Agents write a lot, and output tokens usually cost 3–5× more than input.

3
Mistake 3

Sending the whole repo every turn. Retrieve only the files that matter; you pay for every resent token.

4
Mistake 4

Comparing SWE-bench numbers from different agent setups. The scaffolding changes the score as much as the model.

FAQ

What is the best model for coding right now?

The one at the top of the Rating column on our coding page for your budget. The rating combines real usage, the LMArena coding leaderboard and Artificial Analysis results, and updates every Sunday.

Are open-weight coding models good enough?

For many tasks, yes. Qwen3-Coder and DeepSeek models are close to closed models on agent benchmarks and can run on your own servers.

How much does a coding agent cost per month?

Use the calculator above. A small team running an agent for a few hours a day typically uses 20–100 million tokens a month.

Should I use one model or several?

Several. Route simple edits to a cheap model and hard, multi-file changes to a top model. With LLM API you switch by changing one model name.

Ready to compare? See every coding model with live prices and ratings.→

← All “How to choose” guides