Skip to main content
Best models · Coding · November 2026

Best LLMs for Coding

Choosing a coding model involves a real tradeoff: the strongest models on code benchmarks are often an order of magnitude more expensive per token than models that score within a few points of them. This page ranks models by their measured performance on code-generation benchmarks (SciCode, Terminal-Bench Hard, and LiveCodeBench where published), so the quality side of that tradeoff rests on published evidence rather than creator claims.

The quality index shown is the same per-task projection the Inferbase router consults when it routes coding traffic in production. Terminal-Bench Hard, an agentic coding evaluation that measures task completion in a real terminal, is part of that projection; benchmark publishers have been shifting their newest evaluation rounds toward it, so for the most recent frontier models it is often the coding evidence that exists. Where a model has no published result on a benchmark, the cell says so; absence of evidence is shown as absence, not filled in with a guess.

Top pick

The top pick

The strongest measured fit for this task right now, taken from the live ranking below.

Top pick · Coding
Rank 1 of 191
Quality index100.0
SciCode
66.9%
Context
1M
Ranking

The ranking

191 models ranked · refreshed November 10, 2026

Ordered from live catalog data; the note beneath the table states exactly how. Missing values are shown as missing, never estimated.

#ModelQuality indexSciCodeTerminal-Bench HardContext
1
anthropic
100.0
66.9%No data1M
2
anthropic
98.6
61.0%62.9%1M
3
google
98.6
61.8%No data1M
4
anthropic
97.3
61.0%No data1M
5
openai
96.2
No data53.0%400K
6
anthropic
94.9
No data51.5%1M
7
anthropic
94.6
60.9%No data1M
8
xiaomi
94.6
60.9%No data1M
9
openai
93.7
No data45.5%400K
10
openai
93.6
No data43.2%400K

This list is ordered by the same per-task quality projection the Inferbase router uses to route production traffic: benchmark results from independent suites are normalized and combined per task. The quality index is a 0-100 percentile among the 191 models with measured evidence for this task. Models without published benchmark results here are not ranked, and not guessed at.

marks models served through the Inferbase API. Missing values are shown as No data rather than estimated.

Runners-up

Also worth evaluating

The next ranks after the top ten, for teams that want a wider shortlist.

Routing

Or stop choosing manually

The honest answer changes as benchmarks and prices move. Routing makes the choice per request instead of once.

Send model="auto" to one OpenAI-compatible endpoint and each request is served by the best fit from the same quality and price data behind this ranking, with the decision disclosed per request.

Every routed request records the task it was classified as, the models that qualified, the one that won and why, so a pick made here can be checked against what the router chose in production. A model pinned by name is served as named, with no routing decision.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.inferbase.ai/v1",
    api_key="YOUR_INFERBASE_KEY",
)

# Let routing pick the best model per request,
# or pin any model id from GET /models.
response = client.chat.completions.create(
    model="auto",
    messages=[{"role": "user", "content": "..."}],
)
FAQ

Frequently asked questions

How this ranking works and how to act on it.

Put intelligence in the middle.

Start on the free plan with 5,000 requests a month, no card required.