Moonshot AI released Kimi K2.7 Code on 12 June 2026: a coding-focused model with one trillion total parameters, open weights, and a 256,000-token context window. The company's pitch is not that it beats the closed frontier everywhere — the published table shows it does not — but that a downloadable model now sits within reach of the best closed models on tool-use benchmarks while using roughly 30% fewer reasoning tokens than its predecessor.
This article works from the model card and the company's published evaluation tables. Where a number comes from Moonshot's own harness rather than an independent evaluator, it is marked as such, because that distinction decides how much weight the number can carry.
What was actually released
Kimi K2.7 Code is a post-trained derivative of Kimi K2.6, adapted for software engineering and agentic tool use. The full weights are downloadable from Hugging Face and from ModelScope under a modified MIT licence, and the model is also sold as a metered API. On the API, list pricing is about $0.95 per million input tokens on a cache miss, $0.19 on a cache hit, and $4.00 per million output tokens.
Two features matter more than the parameter count for day-to-day use. The context window is 256K tokens, which is roughly a mid-sized repository's worth of source files plus conversation. And the model is multimodal through a 400-million-parameter MoonViT vision encoder, which is why Moonshot's own examples include reading a screen recording of a workflow and turning it into code.
The specification, from the model card
| Property | Value |
|---|---|
| Architecture | Mixture of Experts (MoE) |
| Total parameters | 1 trillion |
| Active parameters per token | 32 billion |
| Experts | 384, with one shared expert |
| Layers | 61, including one dense layer |
| Attention | Multi-head Latent Attention (MLA), 64 heads, hidden dimension 7168 |
| Context length | 256K tokens (262,144) |
| Vision encoder | MoonViT, 400M parameters |
| Vocabulary | 160K tokens |
| Licence and access | Modified MIT; weights on Hugging Face and ModelScope |
| API list price | $0.95 per million input tokens (cache miss), $0.19 (cache hit), $4.00 output |
"Trillion-parameter" is a total, not a per-token cost
The headline number needs one piece of context to be useful. In a mixture-of-experts model, only a subset of parameters is used for each token. Here 32 billion of the trillion are active per token. That is why a 1T model can be served at all: compute and memory traffic per token track the active count, not the total. The trillion is the knowledge capacity; the 32 billion is roughly the cost profile.
The same design choice is what makes the model's economics arguable. A dense model of comparable active size would be cheaper to run but would have less stored knowledge to draw on. Moonshot's claim is that 384 experts plus attention routing gets more capability per active parameter, which is a claim about training data and routing quality rather than about scale.
The thinking-token claim
Kimi K2.7 Code keeps the model in thinking mode by default but was post-trained to cut what Moonshot calls unnecessary hesitation: the repeated re-confirmation loops that long agent runs produce. The company reports roughly 30% lower thinking-token usage than K2.6 on long-horizon tasks at higher scores.
This is the most economically meaningful claim in the release and the least independently verified. Token counts are measured by the vendor on its own traffic. What a buyer can check afterwards is their own bill: if the same task completes with fewer output tokens, the saving is real regardless of the exact percentage.
The benchmark table, with its provenance
Moonshot evaluated K2.7 Code against K2.6, and put GPT-5.5 and Claude Opus 4.8 in the same table as reference points. The published figures are below.
| Benchmark | K2.6 | K2.7 Code | GPT-5.5 | Claude Opus 4.8 | Run by |
|---|---|---|---|---|---|
| Kimi Code Bench v2 | 50.9 | 62.0 | 69.0 | 67.4 | Moonshot (in-house) |
| Program Bench | 48.3 | 53.6 | 69.1 | 63.8 | External task set, vendor-run |
| MLS Bench Lite | 26.7 | 35.1 | 35.5 | 42.8 | External task set, vendor-run |
| Kimi Claw 24/7 Bench | 42.9 | 46.9 | 52.8 | 50.4 | Moonshot (in-house) |
| MCP Atlas | 69.4 | 76.0 | 79.4 | 81.3 | External task set, vendor-run |
| MCP Mark Verified | 72.8 | 81.1 | 92.9 | 76.4 | External task set, vendor-run |
Program Bench is the one worth explaining, because it is not a code-completion test. Agents are given only a compiled binary and its documentation and must rebuild the program's behaviour; the task set spans 200 programs from small command-line tools to systems like FFmpeg and SQLite, judged against more than 248,000 fuzz-generated behavioural tests. That is closer to reverse-engineering than to writing a function, and it is a hard test to game with memorised snippets.
What the numbers do and do not support
Three readings are supported by the table as published. First, the generational jump over K2.6 is large and consistent: every benchmark moved up, by 11% to 31.5%. Second, on MLS Bench Lite the model is effectively level with GPT-5.5 (35.1 against 35.5) and behind Claude Opus 4.8 (42.8). Third, on tool use, MCP Mark Verified is where it leads a closed model: 81.1 against Opus 4.8's 76.4, while GPT-5.5 stays ahead at 92.9.
What the table does not support is a general claim of leadership. On Kimi Code Bench v2 and Program Bench it trails both closed reference models, and those are the two most code-specific tests in the set. The fair summary is the one an independent review reached: a clear generational jump and best-in-class open-weight tool use, not an across-the-board lead over the frontier.
Three caveats limit all of it. Every row is vendor-run; there is no independent SWE-bench Verified figure in the release, and no third-party harness has published a reproduction. Benchmarks are single reported scores, without confidence intervals, so a two-point gap is not a meaningful difference. And none of these tests measure the thing buyers actually care about — whether the model improves your repository, with its build system, its flaky tests, and its conventions.
Licence, deployment, and what "open" means here
The licence is described as a modified MIT, not plain MIT. Modified MIT licences in this family typically add an attribution requirement and a clause that triggers above a user threshold, so the practical question for a company is which clause applies at its scale; that has to be read in the licence file rather than inferred from the phrase "open source".
Running the weights locally is the other open question. A 1T-parameter model at 32B active still needs a serving stack that supports expert parallelism, and Moonshot has not published a reference hardware configuration in the material summarised here. Anyone planning a private deployment should size it against the active-parameter count and the 256K context, and test on their own hardware before committing.
Why this release matters beyond the model
The more durable point is not the score table but the pattern: a Chinese lab shipping frontier-adjacent weights on day one, with an API price an order of magnitude below the closed frontier, and a licence that permits commercial self-hosting. That combination is what makes an open-weight model a real option for teams with data-residency constraints — financial, healthcare, and public-sector work where code cannot leave the building.
It also sets the comparison readers should make. The question is no longer whether an open model can code, but whether the gap to the closed frontier is small enough that price, control over deployment, and the ability to fine-tune outweigh a few benchmark points. On the published numbers, that gap is roughly 5 to 15 points depending on the test — real, but no longer categorical.
Corrections to the earlier version of this article
- "Trillion-parameter" is now stated as one trillion total with 32 billion active per token, taken from the model card, rather than as an unqualified parameter count.
- The claim that the model "covers the full spectrum from backend to frontend to embedded systems" was removed: no document in the release measures that, and the benchmarks do not test embedded work.
- A reported funding valuation was removed; it was not verifiable from a primary source and is not relevant to what the model does.
- Benchmark provenance was added: two of the six benchmarks are Moonshot's in-house harnesses, and none of the scores has been independently reproduced.