Skip to content
Gateway Architecture

Which LLM Should You Use for Coding?

POSTED ON UPDATED ON 16 min read MixRoute

Which LLM Should You Use for Coding?
Which LLM Should You Use for Coding?

Start with Claude Opus 5.5 for most coding work. It resolves 64.8% of Terminal-Bench 4.0 tasks on the tbench.ai leaderboard, the highest score listed there, at $4 input and $20 output per 1M tokens. GPT-6.1 Sol reaches 58.2% for a $0.6k run cost against $4.7k for Opus 5.5, so it is the pick when the bill matters more than the last few points. If code must stay on your own hardware, GLM-5.3 is the open-weight option on that board, at 41.8%. Whichever you shortlist, run one task from your own repository before you commit. All figures below were read on October 19, 2026.

A leaderboard measures one benchmark under one harness, and your repository is neither. Use the scores below to cut the field to two or three models, then let a real task from your backlog make the call.

Which coding model fits your deployment constraint?

Choose hosted access unless your code cannot leave your network. A hosted API puts the hardware on the provider and leaves you with per-token pricing, rate limits and the provider’s data terms. Self-hosting works only with open-weight checkpoints, and it swaps the token invoice for a hardware and utilization bill that depends on how hard you run the box.

When infrastructure is not your task

Interactive completion and debugging reward a fast model, while repository edits and long agent runs want stronger reasoning and a long output budget. Picture two developers: one tab-completing inside an editor all day, one handing an agent a migration overnight. They should not be on the same model.

MixRoute does not change which model is best. It changes where you compare them: one OpenAI-compatible base URL, https://api.mixroute.ai/v1, reaches models from several vendors, and switching candidates means changing the model ID. The IDs used in this article are claude-opus-5-5, claude-sonnet-5-5, claude-fable-5-1, gpt-6.1-sol, glm-5.3 and kimi-k3.

MixRoute model page for Claude Opus 5.5 showing Model ID claude-opus-5-5, 1M context, 128K max output and $4 input, $20 output per 1M tokens
The model page lists the exact ID to call, claude-opus-5-5, with its context window and per-token prices. Source: MixRoute, captured 2026-10-19.

For work that stays inside the editor, the loop matters as much as the checkpoint. Read the practical guide to keeping a vibe coding loop productive before you spend on hardware or API credits, and log reasoning effort and tool settings as evaluation variables next to the model choice. Both move results, and neither should go unrecorded.

Self-host with a checkpoint, not a family name

Start from a specific artifact you can download and read its card. Qwen3.8-27B shows what to check: the model card lists an Apache-2.0 license, 27 billion parameters, a 262,144-token native context extensible to 1,000,000 tokens, and a reasoning_effort setting that accepts xhigh (the default), medium or low. A product name such as Qwen3.8 Max is a hosted model, and it tells you nothing about what the downloadable weights can do.

Memory tracks precision and context, not parameter count. Pinggy’s October 2026 guide puts Qwen3.8-27B at 16 to 19 GB at 4-bit, about 31 GB at FP8 and 56 GB at BF16. Those are third-party estimates, and the KV cache adds more at long context, so check memory at the context length you plan to run rather than assuming a card will fit.

How do proprietary coding models compare on benchmarks?

Claude Opus 5.5 leads the current tbench.ai Terminal-Bench 4.0 leaderboard, and the rest of the top group sits close together. The table lists the current proprietary models with the harness each one ran in, the tokens the run used and the run cost the leaderboard lists.

Model (max effort) Harness Resolution rate Tokens Run cost
Claude Opus 5.5 Claude Code 64.8% +/- 3.1 8.0B $4.7k
Claude Sonnet 5.5 Claude Code 61.8% +/- 2.9 19.4B $7.3k
GPT-6 Astra Codex 58.2% +/- 2.8 1.5B $3.3k
GPT-6.1 Sol Codex 58.2% +/- 3.1 1.5B $0.6k
Claude Fable 5.1 Claude Code 57.9% +/- 3.8 2.7B $6.2k
Claude Opus 5 Claude Code 53.9% +/- 3.2 6.9B $6.1k

Source: tbench.ai Terminal-Bench 4.0 leaderboard, captured October 19, 2026. Opus 5 ran at xhigh effort; the others at max.

Range chart of Terminal-Bench 4.0 resolution rates with 95 percent intervals: Claude Opus 5.5 64.8, Claude Sonnet 5.5 61.8, GPT-6.1 Sol 58.2, Claude Fable 5.1 57.9, Claude Opus 5 53.9 and GLM-5.3 41.8
Opus 5.5 sits on top, Sonnet 5.5, Sol and Fable 5.1 overlap it, and GLM-5.3 is the only open-weight result clearly below.

What the reported leaders show

Opus 5.5’s lead over GPT-6.1 Sol and Fable 5.1 is real but narrow. Its interval runs from 61.7% to 67.9%, which only just clears Sol’s 55.1% to 61.3% and touches Fable 5.1’s top end. Sonnet 5.5’s 61.8% sits inside Opus 5.5’s interval, and Sol, Astra and Fable 5.1 are indistinguishable from each other. Read the top of the board as tiers, not as a strict ranking.

Each model ran in its own vendor’s agent: Anthropic models and GLM-5.3 in Claude Code, OpenAI models in Codex. Part of every score therefore belongs to the harness, and a fallback can mask model behavior too. Artificial Analysis labels its Opus 5.5 and Fable 5.1 runs “Max, Default Fallback”, so a fallback-enabled score is a different measurement from a run that never fell back.

Why leaderboards disagree

Boards disagree because they measure different things. BenchLM’s coding ranking, refreshed October 17, 2026, blends the benchmarks it tracks and puts Claude Sonnet 5.5 first at 84.2, ahead of Opus 5.5 at 82.6 and Fable 5.1 at 76.8. Artificial Analysis’s Intelligence Index, a general index that includes Terminal-Bench 4.0, has Opus 5.5 at 58, Fable 5.1 at 53 and GPT-6.1 Sol at 52. Anthropic’s own model guide tells readers to start with Opus 5.5 for most workloads and to reserve Fable 5.1 for demanding reasoning and long-horizon agent work.

For repository-scale edits, SWE-bench Pro is the benchmark most pages quote, and it is the one to read most carefully. Scale’s SWE-Bench Pro leaderboard, captured October 19, 2026, tops out at 61.5 and lists none of the current flagships in the table above, so a SWE-bench Pro number for them comes from a vendor or a third-party table, not from the benchmark’s owner.

If you are choosing between the OpenAI and Anthropic options, the GPT-6.1 Sol versus Claude Fable 5.1 comparison covers the differences a single score hides, including cost per task, long-context pricing and tool-calling limits.

What are the best open-weight models for self-hosting?

Qwen3.8-27B, GLM-5.3 and Kimi K3 are three separate downloads, and your hardware picks among them: one 24 GB GPU, eight H200s, or a cluster. On the Artificial Analysis Intelligence Index as Pinggy reported it on October 5, 2026, Xiaomi’s MiMo-V2.6-Pro leads open weights at 46, ahead of GLM-5.3 at 45, Kimi K3 at 44 and Qwen3.8-27B at 34. On Terminal-Bench 4.0, GLM-5.3 at 41.8% is the open-weight result on the tbench.ai board, and Pinggy found no other.

Three open-weight coding checkpoints and their smallest practical setup: Qwen3.8-27B on one 24 GB GPU, GLM-5.3 on eight H200s, Kimi K3 on at least eight GB300 or MI355X GPUs
Only Qwen3.8-27B fits one GPU; GLM-5.3 and Kimi K3 need multi-GPU nodes.

Kimi K3: top-tier open weights, cluster required

Kimi K3 is the largest of the three and needs a cluster. Its model card describes 2.8 trillion parameters with 104 billion active, 16 of 896 experts per token, a 1-million-token context, native vision and MXFP4 weights from quantization-aware training. Pinggy puts the download at 1.56 TB and cites vLLM’s recipe for at least eight GB300 or MI355X GPUs, with multiple nodes for production traffic. The Kimi K3 License allows self-hosting and fine-tuning, but model-as-a-service operators above $20M in revenue need a separate agreement.

Qwen3.8-27B: the single-GPU class

For one GPU, Qwen3.8-27B is the practical local option. Its card reports 73.0 on Terminal-Bench 2.1, 61.7 on SWE-bench Pro, 90.3 on LiveCodeBench v6 and 42.2 on DeepSWE 1.1, all Alibaba-reported. The harness changes by row: the card names Claude Code for SWE-bench Pro and DeepSWE and a different harness for Terminal-Bench, so do not compare rows across them. Apache-2.0 licensing and 16 to 19 GB at 4-bit put it first on the list for a single 24 GB card or a 24 GB Mac. Artificial Analysis measured it at 47.8 output tokens per second, so lower the reasoning effort for interactive edits.

GLM-5.3: separate model, separate license

GLM-5.3 shares the GLM-5.2 base model, and its official card attributes every gain to post-training. The card reports a 50 percent improvement over GLM-5.2 on Z.ai’s in-house code bench and open-source state-of-the-art claims on Terminal-Bench 3.0 and Agents’ Last Exam. Those are vendor results under named harnesses, so they belong on a shortlist, not in a universal claim.

The default checkpoint is native FP8 at about 756 GB, which fits eight H200s but not an 8×80 GB H100 node. GLM-5.3 downloads under its own GLM-5.3 License, which grants broad rights but requires model-as-a-service operators above $10 billion in revenue to pass a Z.ai security review, and it is not the same artifact as GLM-5.3-Flash. Do not infer the license or hardware footprint of one from the other. Evaluation context in the card varies by task, so check the serving configuration you intend to run. For how GLM-5.3 lines up against the current Claude models, read the GLM-5.3 versus Opus 5.5 versus Fable 5.1 comparison before you pick a family.

Checkpoint Size Context License Smallest practical setup
Qwen3.8-27B 27B dense 262,144 native, extensible to 1M Apache-2.0 One 24 GB GPU (16 to 19 GB at 4-bit)
GLM-5.3 753B total, 40B active 1M GLM-5.3 License Eight H200s (about 756 GB FP8)
Kimi K3 2.8T total, 104B active 1M Kimi K3 License At least eight GB300 or MI355X (1.56 TB MXFP4)

Which model fits which coding job?

Match the model to the job, because the cheapest model per token is often not the cheapest per finished task. These picks follow the numbers above and the prices on MixRoute’s model pages.

  • Daily repository work and agents: Claude Opus 5.5 (claude-opus-5-5, $4 and $20). It has the top Terminal-Bench 4.0 score at 64.8%, and Anthropic points readers to it first.
  • Lowest bill in the same quality band: GPT-6.1 Sol (gpt-6.1-sol, $2 and $10). It scored 58.2% at a $0.6k run cost, and OpenAI describes it as near-Astra performance at a lower cost.
  • Well-scoped everyday coding: Claude Sonnet 5.5 (claude-sonnet-5-5, $2 and $10). It scored 61.8%, but its run cost $7.3k because it used 19.4B tokens against 8.0B for Opus 5.5, so half the token price did not mean a lower bill.
  • Hardest long-horizon agent work: Claude Fable 5.1 (claude-fable-5-1, $10 and $50). Test it when Opus 5.5 falls short on your own tasks; on Terminal-Bench 4.0 it scored 57.9% at a $6.2k run cost.
  • Open weights you can host: GLM-5.3 (glm-5.3, $1.40 and $4.40) for the open-weight Terminal-Bench 4.0 result on the board (41.8%), Qwen3.8-27B for one GPU.
  • High-volume, cost-sensitive work: DeepSeek V4.1 Flash (deepseek-v4.1-flash, $0.30 and $1.20), which its MixRoute page positions for coding, terminal and computer-use agents. No sourced coding score for it was captured, so measure it on your own task first.

How much does coding API usage cost per million tokens?

Every provider bills per 1 million tokens, prices input separately from output, and charges more for output. Coding widens that gap, because an agent produces output tokens across many turns and retries. Multiply input tokens and output tokens by their own rates, and count every turn, not just the first prompt and the final answer.

Cost arithmetic with a fixed workload

Take a workload of 80 million input tokens and 20 million output tokens with no caching. At GPT-6.1 Sol’s list rate of $2 input and $10 output, that is $160 for input plus $200 for output, or $360. The same workload costs different amounts on other models:

Model Input / output per 1M tokens 80M in, 20M out
GLM-5.3 $1.40 / $4.40 $200
GPT-6.1 Sol $2 / $10 $360
Claude Sonnet 5.5 $2 / $10 $360
Kimi K3 $3 / $15 $540
Claude Opus 5.5 $4 / $20 $720
Claude Fable 5.1 $10 / $50 $1,800

Prices are from MixRoute’s model pages, captured October 19, 2026. Two conditions change the result. GPT-6.1 Sol reprices the whole request at $4 input and $15 output once a prompt passes 272K input tokens. And the token total is not the same for every model: on the leaderboard run, Sonnet 5.5 used 19.4B tokens against 8.0B for Opus 5.5 and 1.5B for Sol. The run costs of $7.3k, $4.7k and $0.6k follow the tokens as much as the rates.

Bar chart of Terminal-Bench 4.0 run cost in thousand dollars: Claude Sonnet 5.5 7.3, Claude Fable 5.1 6.2, Claude Opus 5.5 4.7, GPT-6 Astra 3.3 and GPT-6.1 Sol 0.6
Sonnet 5.5 lists half Opus 5.5's token price but its run cost more, because it used 19.4B tokens against 8.0B.

Cached input is billed lower, and agents re-read the same repository on every step, so look at the cache-read rate too: $0.10 per 1M tokens for GPT-6.1 Sol, $0.20 for Opus 5.5, $0.25 for Fable 5.1, $0.26 for GLM-5.3 and $0.30 for Kimi K3. When you are ready to turn an estimate into spend, compare current MixRoute rates for the models on your shortlist before you fund an account.

Where reported prices come from

Published price tables go stale within weeks. Anthropic’s Opus 5.5 launch post lists $4 and $20 per million tokens, and OpenAI’s page lists GPT-6.1 Sol at $2 and $10 with cached input at $0.10. Read the vendor’s own pricing page for the version and context you intend to run, and treat a leaderboard’s price column as a starting point. Whether a rejected or failed request is billed also varies by provider, so check the billing policy before you budget.

How to run a reproducible coding evaluation?

Pin the repository, the starting commit, the task, the harness, the model settings and the grader, then record tokens and cost for every run. A benchmark score tells you what a model did on someone else’s tasks under someone else’s harness. Without those pins, a comparison drifts into measuring the harness or the prompt instead of the model.

Six ordered steps of a reproducible coding evaluation: task, commit, harness, settings, run and record
Fix the task, commit, harness and settings first, so the only thing that changes between runs is the model.

Pin the variables that change the outcome

Start with one issue or failing test from your own backlog and record its starting commit. For an isolated model comparison, use one compatible harness, one settings block that every candidate supports, and the same task, prompt and grader for each model. Published harnesses are provenance, not requirements: tbench.ai runs Anthropic models and GLM-5.3 in Claude Code and OpenAI models in Codex, and Qwen3.8-27B’s card uses Claude Code for SWE-bench Pro and DeepSWE. If you want to compare native bundles, such as a vendor’s agent paired with its own model, label that a bundle comparison and do not credit the difference to the model alone. The Codex versus Claude Code comparison covers how those two agents differ.

Log these for every run, because each one moves both the score and the token count:

  • the reasoning_effort value
  • temperature and top-p
  • maximum output tokens
  • context window
  • timeout

Score refactoring, tests and review, not just pass or fail

Coding work is more than writing new functions, so give each candidate one task of each kind. For a refactor, ask for a behavior-preserving change to one module and check that the existing tests still pass and that the diff stays inside the files you named. For tests, point the model at an untested function and check whether its tests fail when you plant a bug. For code review, hand it a real diff with one seeded defect and count whether it finds the defect and how many false alarms it raises. A model that is best at one of these is not automatically best at the others.

Record tokens, cost and review

Capture the usage fields from each API response: input and output tokens per call, summed across every agent turn and retry. Multiply those totals by the rate you are actually quoted to get cost per accepted result. Decide what counts as accepted before you start, and have a human review the diff. A model that passes the test but rewrites unrelated code is not a clean pass, and no automated score captures that.

When you switch between providers, or between a hosted API and a local runtime, call the exact model ID that will serve the request, such as claude-opus-5-5 or gpt-6.1-sol, rather than a shorthand that could resolve to a different checkpoint. Run the comparison yourself, because public rankings do not measure your agent harness, your review standards or the cost of a failed change.

FAQ

What is the best proprietary LLM for coding?

Claude Opus 5.5 is the best default today, though no single model wins every benchmark. It leads tbench.ai’s Terminal-Bench 4.0 at 64.8%, ahead of GPT-6.1 Sol at 58.2% and Claude Fable 5.1 at 57.9%. Sol is the cheaper pick, with a $0.6k run cost against $4.7k for Opus 5.5. Fable 5.1 is worth testing only when Opus 5.5 falls short on your own tasks.

Which open-weight model has the highest coding index?

It depends on the index, and no coding-specific index names one winner. On the Artificial Analysis Intelligence Index as Pinggy reported it in October 2026, MiMo-V2.6-Pro scores 46, GLM-5.3 45, Kimi K3 44 and Qwen3.8-27B 34. On tbench.ai’s Terminal-Bench 4.0, GLM-5.3 is the open-weight result at 41.8%. Hardware decides which you can run: Qwen3.8-27B fits one 24 GB GPU, while the other two need multi-GPU nodes.

What hardware runs Qwen3.8-27B for coding?

A single 24 GB GPU or a 24 GB Mac is the practical starting point. Pinggy’s October 2026 guide estimates 16 to 19 GB at 4-bit, about 31 GB at FP8 and 56 GB at BF16, with an 18 GB default Ollama download. Those are estimates, not measurements. Check memory at the context length you intend to run, because the KV cache grows with context and a card that fits a short prompt may not fit a long one.

How much does Kimi K3 cost via API?

MixRoute’s Kimi K3 page lists $3 per million input tokens, $15 per million output tokens and $0.30 per million cached input tokens, as of October 19, 2026. Budget by turns rather than by prompt, since a coding agent’s total is the sum of every turn and retry, and a $15 output rate makes loops that keep regenerating the same file expensive. On the 80M-in, 20M-out workload above, Kimi K3 comes to $540.

What benchmark shows terminal coding ability?

Terminal-Bench, and only within the same version. Terminal-Bench 4.0 is the current one on tbench.ai, where Claude Opus 5.5 resolves 64.8% of tasks in Claude Code and GPT-6.1 Sol 58.2% in Codex. Terminal-Bench 2.1 and 3.0 are different tests with different difficulty, and vendor cards still quote them, so a 2.1 score is not comparable to a 4.0 score. The agent harness is part of every number.

Can I self-host GLM-5.3 on one node?

Yes, on a node with eight H200 GPUs, but not on an 8×80 GB H100 node. The default checkpoint is native FP8 at about 756 GB, and a BF16 copy is roughly twice that. GLM-5.3 uses its own GLM-5.3 License, which asks model-as-a-service operators above $10 billion in revenue to pass a Z.ai security review. GLM-5.3-Flash is a separate, smaller checkpoint with separate requirements.

Is Claude Opus 5.5 or GPT-6.1 Sol better for coding?

Opus 5.5 scores higher, Sol costs less. On Terminal-Bench 4.0 Opus 5.5 resolves 64.8% of tasks and Sol 58.2%, and their intervals just separate. Sol’s run cost $0.6k against $4.7k, and its list price is $2 and $10 per million tokens against $4 and $20. Pick Opus 5.5 when a missed task costs more than the token bill, and Sol for routine traffic. Test both on one of your own tasks.

How do I compare coding LLMs for refactoring, tests and code review?

Give every candidate one task of each kind from your own repository and grade them separately. For refactoring, check that existing tests pass and the diff stays in scope. For tests, check whether the new tests fail when you plant a bug. For review, count the seeded defects found and the false alarms. Keep the commit, harness, settings and grader fixed, and log tokens and cost per task.


Scan to share
Scan to share
Gateway Architecture DeepSeek vs Claude: Which Route Fits Your Workload MixRoute 15 min read Gateway Architecture Grok vs Claude: Which Surface Fits Your Task? MixRoute 14 min read Gateway Architecture Claude MCP Connectors: Connect, Test, and Review Permissions MixRoute 15 min read