Open-weight alternatives to Claude, measured

By Loïc Jané, founder of Frontière AI

Published 2026-12-03 · 8 min read

All four current Claude models passed all 42 exercises of our Code Bench, and so did one open-weight model: Kimi K3.1 Pro. The bench no longer separates the best models, so the choice comes down to two things it does measure: what a task really costs once you count the tokens each model writes, and where your data is processed. Kimi K3.1 Pro wrote 4.5 times the output tokens of Claude Opus 5.5: its full run cost €1.06, against €0.36 for Claude Opus 5.5, although its output tokens are 1.5 times cheaper. GPT-OSS 120B passed 40 of 42 for €0.028, the lowest cost of the open models within two exercises of the top.

What we measured

The Frontière Code Bench is a set of 42 Python exercises: 10 easy, 12 medium, 8 hard, two of which need an n log n algorithm on 100,000 elements, and 12 expert ones such as a JSON parser, a very hard sudoku and a maximum-flow solver. The model gets the statement and returns a function; the exercise's tests then run in an isolated Python with no network. The score is the number of exercises passed at the first attempt. Every model gets the same system prompt, the same instructions and the same output limit, and no sampling parameter is sent.

We ran the four current Claude models on 3 December 2026, through Anthropic's API with the official SDK, with reasoning left at the API's default: adaptive thinking, which is on by default for all four. The open models were run on 6 November 2026 through our gateway, with the same protocol. Reasoning tokens are billed as output on both sides, and they are counted in the table below.

ModelTypeExercises passedOutput tokens (42 exercises)Price per million, before tax (in / out)Cost of the full run, before tax
Claude Haiku 5.5Closed (Anthropic)42/4229,480€0.092 / €0.46€0.014
Claude Sonnet 5.5Closed (Anthropic)42/4217,239€1.84 / €9.21€0.17
Claude Opus 5.5Closed (Anthropic)42/4218,306€3.68 / €18.42€0.36
Kimi K3.1 ProEU sovereign42/4282,577€2.52 / €12.60€1.06
Claude Fable 5.2Closed (Anthropic)42/4240,348€7.37 / €36.85€1.53
Gemma 4 26BEU sovereign41/42206,432€0.14 / €0.70€0.15
GPT-OSS 120BEU sovereign40/4231,701€0.21 / €0.84€0.028
GLM-5.3EU sovereign40/4220,300€2.52 / €7.70€0.17
DeepSeek V4.1 FlashEU sovereign40/4297,784€0.84 / €2.52€0.25
GLM-5.4EU sovereign40/4291,325€2.16 / €6.78€0.63
Qwen3 235BEU sovereign39/4213,501€1.05 / €3.15€0.047

The table shows the open models within 3 exercises of the top. The other 9 we measured passed between 19 and 37; all the scores are on our benchmarks page.

Prices are per million tokens, before tax on both sides: Anthropic's published prices in US dollars, checked on 3 December 2026, converted at the European Central Bank reference rate of 2 December 2026; for the open models, our VAT-inclusive price divided by 1.2. The cost of the full run is the tokens each model actually used on the 42 exercises, multiplied by those prices. We do not compare response times: the two groups were measured on different days through different routes.

Why a perfect score is not the end

All four current Claude models passed all 42 exercises of our Code Bench, and so did one open-weight model: Kimi K3.1 Pro. When the cheapest Claude model scores as high as the most expensive one, the bench has reached its ceiling: it can tell a weak model from a strong one, but not a strong one from a stronger one. A perfect score on 42 short exercises says nothing about a three-hour refactor across a large codebase, which is where Claude Opus and Fable are sold.

For that kind of work, the only comparison available is the one model makers publish. Moonshot's own card for Kimi K3.1 Pro puts it next to two Claude models. These are Moonshot's figures, run with Moonshot's settings, and they compare with Claude Fable 5.1, the previous Fable, not 5.2:

Test (Moonshot's figures)Kimi K3.1 ProClaude Fable 5.1Claude Opus 5.5
Terminal-Bench 4.065.757.966.4
SWE Marathon v1.151.745.646.3
DeepSWE v1.175.567.474.2
Program Bench31.553.565.0
OSWorld V2.179.680.781.8
HLE-Full51.157.659.8

On those figures, Kimi K3.1 Pro is clearly ahead of Claude Opus 5.5 on SWE Marathon, within about a point on Terminal-Bench and DeepSWE, a little behind on OSWorld, and well behind on Program Bench and HLE. That is a fair summary of where the best open models stand: close on many agentic tasks, behind on some, and never best everywhere. Source: Kimi K3.1 Pro model card.

Price per token versus cost per task

An open model is usually cheaper per token than Claude Opus or Fable. That is not the same as being cheaper per task, because models do not write the same number of tokens for the same answer. A model that reasons at length before answering can write five or ten times more output tokens, and output tokens are the expensive ones.

Kimi K3.1 Pro wrote 4.5 times the output tokens of Claude Opus 5.5: its full run cost €1.06, against €0.36 for Claude Opus 5.5, although its output tokens are 1.5 times cheaper. The same effect runs the other way with Claude Fable 5.2: it is so expensive per token that Kimi K3.1 Pro costs less than it on the full run, €1.06 against €1.53, with the same score.

DeepSeek V4.1 Flash shows the trap at the mid-range: its output tokens cost 3.7 times less than Claude Sonnet 5.5's, yet it wrote 5.7 times as many, and its full run cost €0.25 against €0.17. GPT-OSS 120B goes the other way: it writes little, and its run cost 6.1 times less than Claude Sonnet 5.5's.

This is why our savings calculator counts, where both models have been measured, the tokens each one really uses on this bench rather than assuming the same count on both sides. The ratio comes from short coding exercises, so treat it as an order of magnitude for your own traffic, not a constant.

Which open model for which Claude

Pair by the work you give the model, then check the bill with your own token counts. What follows is where we would start, based on the measurements above; it is not a claim of equal quality.

  • Claude Fable 5.2: Kimi K3.1 Pro matched its score and its full run cost less. It has a 1M-token context and reads images, and it is served in Europe by Verda.
  • Claude Opus 5.5: Kimi K3.1 Pro is the only open model to match its score, but on this bench it cost 2.9 times as much per run because it writes more. GLM-5.3 passed 40 of 42 for €0.17, less than Claude Opus 5.5. Move the routine part of the work first and keep the hardest tasks where they are.
  • Claude Sonnet 5.5: GPT-OSS 120B passed 40 of 42 at 6.1 times less per run. GLM-5.3 scored 40 and cost about the same as Claude Sonnet 5.5 on the run. DeepSeek V4.1 Flash has a 1M-token context, but measure its token use on your prompts first.
  • Claude Haiku 5.5: No open model in the catalogue costs less than Claude Haiku 5.5 at a similar score: its full run cost €0.014. The reason to move from Haiku is where the data is processed, not price. The cheapest open model near its score on this bench, GPT-OSS 120B, cost 2.0 times as much for the same run. Mistral Small 4 119B and Mistral Small 3.2 24B cost less, but passed 34 and 28 of 42.

What this bench does not tell you

The exercises are short, single-turn and in Python. They do not test tool calling, long multi-step agent runs, very long contexts, writing quality, languages other than English, or images. A model can pass all 42 and still struggle with your codebase's conventions or your support tickets in French.

Token counts also depend on the tokenizer: the same text is not the same number of tokens for two models, and Anthropic notes that its newer tokenizer counts the same text as more tokens than the previous one. That difference is inside the costs above, because they use the tokens each provider billed, but it will be different on your text.

The practical test is cheap: take a few hundred real requests, send them to the open model, read the answers and the usage each call returns, and compare with what you pay today. Our benchmarks page also gives, for each open model, its time to the first token and its throughput through our gateway.

Where your requests are processed

Anthropic is a US company. The open models in the table above are labelled EU sovereign on Frontière AI: each is served in Europe by a European provider named on its model page, and the API response names the provider that served each request. Such a provider is outside the direct reach of the US CLOUD Act, which is a different question from where the data centre is. How we draw that line is explained on the sovereignty page, and the GDPR vs CLOUD Act guide explains why it matters.

For many teams this, not the bill, is the reason to move: customer data, health or legal documents, or a public-sector contract that requires processing in Europe by a European company.

How to switch without rewriting code

Frontière AI exposes an Anthropic-compatible Messages endpoint as well as an OpenAI-compatible one. With the Anthropic SDK or Claude Code, set the base URL to https://getfrontiereai.eu/api, use a Frontière AI key, and change the model id, for example to kimi-k3.1-pro. Claude Code needs every model slot mapped, the background one included; the Claude Code guide lists the variables. With the OpenAI SDK, the base URL is https://getfrontiereai.eu/api/v1.

You do not have to move everything. Send the simplest requests to an open model, keep the hardest on Claude, and compare the bills after a month. The savings calculator estimates both sides before you start.

FAQ

Is there an open-weight model as good as Claude Opus?

On our 42 coding exercises, Kimi K3.1 Pro scored the same as Claude Opus 5.5, but so did Claude Haiku 5.5: the bench cannot separate the best models. On Moonshot's own published table, Kimi K3.1 Pro is ahead of Opus 5.5 on some agentic coding tests and well behind on others. Test it on your own tasks.

Is an open model cheaper than Claude?

Per token, usually yes, except against Claude Haiku 5.5. Per task, it depends on how many tokens each model writes: a model that reasons at length can cost more than its price per token suggests. The table in this article gives the measured cost of the same 42 exercises on each model.

Can I keep using Claude Code with an open model?

Yes. Point Claude Code at the Anthropic-compatible endpoint by setting ANTHROPIC_BASE_URL to the Frontière AI API base, use a Frontière AI key, and map each model slot to an open model. The Claude Code guide on this site lists the exact variables.

How were the Claude scores obtained?

We ran the four models ourselves on 3 December 2026, through Anthropic's API with the official SDK and reasoning at the API default, with the same exercises, instructions and output limit as for the open models. The raw reports are kept with the date and the exact script version.

Did you measure OpenAI's GPT models too?

Not yet. The savings calculator includes GPT prices, and it says when a pair has not been measured, in which case it assumes both models use the same number of tokens.

Loïc Jané

Founder of Frontière AI

Founder of Frontière AI, an API gateway to open-weight AI models published by FLEECE AI SASU in Chamalières, France. Articles on this blog are written from our own measurements and from the sources linked in the text, dated on the day they were checked.

Ready to try it?

Create an account and call any model in the catalog in minutes.

Create an account