Kimi K2.7 Code Review: Tested vs the Hype
Moonshot AI just shipped Kimi K2.7 Code — an open-weights, 1-trillion-parameter coding model it calls its most capable to date. The launch numbers look strong, but every one of them is self-reported, and as of this writing not a single independent leaderboard has scored it. So I read the fine print and ran the model on real coding tasks myself. Here is what holds up, what doesn't, and what to actually use today.
The short version
- What it is: Kimi K2.7 Code is Moonshot AI's open-weights (Modified MIT), 1T-parameter / 32B-active MoE coding model, built on Kimi K2.6, with a 256K context window. It is cheap and built for agentic, long-horizon software work.
- The benchmarks are self-graded. Every published number is from Moonshot's own proprietary benchmark suite — and on those same numbers, K2.7 Code trails GPT-5.5 and Claude Opus 4.8 on nearly everything. As of this writing it appears on zero independent leaderboards. The viral "89% on SWE-bench" figure has no verifiable source.
- I ran it myself. On three objective coding tasks (verified by executing the output), K2.7 Code scored a perfect 29/29 — but so did Qwen3 Coder Next, a model that cost about 10× less and ran ~7× faster. K2.7's always-on "thinking" spent over a thousand hidden reasoning tokens on routine work without buying more correctness.
- The honest verdict: a genuinely useful, low-cost, open-weights coding model — a clear step up from K2.6 — but not a frontier-beater on any evidence that exists yet. Best for cost-sensitive agentic coding you can supervise.
- It isn't on DataLLM Lab yet. The closest open coders available now are Kimi K2.6 and Qwen3 Coder Next; for top-tier planning, Claude Opus 4.7 and GPT-5.4.
What Kimi K2.7 Code actually is
Kimi K2.7 Code launched around June 12–15, 2026 as the coding-specialized successor to Kimi K2.6. It is not a general chat model — Moonshot positions it squarely for long-horizon software engineering: multi-file implementation, multi-step tool use and agentic workflows, refactoring, debugging, and long-context code understanding. Two headline efficiency claims: roughly 10% better agentic performance and about 30% fewer "thinking tokens" than K2.6.
| Spec | Kimi K2.7 Code |
|---|---|
| Type | Open-weights agentic coding model (Modified MIT license) |
| Architecture | 1T total / 32B active params · MoE (384 experts, 8+1 per token) · vision encoder · INT4 |
| Context window | 256K tokens |
| Built on | Kimi K2.6 |
| Price — Moonshot API | $0.19 cache-hit / $0.95 input · $4.00 output (per 1M) |
| Price — OpenRouter | $0.75 input / $3.50 output (per 1M) |
| Access | Moonshot API · Kimi Code CLI · OpenRouter · self-host (vLLM / SGLang) |
The open weights matter. Under the Modified MIT license you can self-host and fine-tune freely; the only added condition is an attribution clause that kicks in at large scale (products above 100M monthly active users or US$20M monthly revenue must show the model's name in the UI). For most teams, that's effectively MIT. The price is the other headline: even on OpenRouter's $0.75 / $3.50, it's a fraction of a frontier model's cost.
The benchmarks — read the fine print
Here is Moonshot's published comparison, exactly as it appears on the model card. Higher is better. The competitor columns are GPT-5.5 and Claude Opus 4.8.
| Benchmark (Moonshot's own) | K2.7 Code | K2.6 | GPT-5.5 | Opus 4.8 |
|---|---|---|---|---|
| Kimi Code Bench v2 | 62.0 | 50.9 | 69.0 | 67.4 |
| Program Bench | 53.6 | 48.3 | 69.1 | 63.8 |
| MLS Bench Lite | 35.1 | 26.7 | 35.5 | 42.8 |
| Kimi Claw 24/7 Bench | 46.9 | 42.9 | 52.8 | 50.4 |
| MCP Atlas | 76.0 | 69.4 | 79.4 | 81.3 |
| MCP Mark Verified (tool use) | 81.1 | 72.8 | 92.9 | 76.4 |
Two things jump out. First, the generation-over-generation gains are real and large: +21.8% on Kimi Code Bench v2, +11.0% on Program Bench, +31.5% on MLS Bench Lite versus K2.6. Second — and this is what the marketing skips — on Moonshot's own numbers, K2.7 Code trails both GPT-5.5 and Opus 4.8 on five of six benchmarks. The single exception is MCP Mark Verified (tool use), where it edges Opus 81.1 to 76.4. The "beats Opus" headlines you may have seen rest entirely on that one cell.
So I ran it myself
Benchmarks I can't reproduce don't tell me much. So I gave K2.7 Code three small but objective coding tasks and, crucially, executed every answer against a hidden test suite — pass or fail, no judgment calls. For contrast I ran the identical prompts through Qwen3 Coder Next, another cheap open coding model (and one that's already on the gateway). All runs were via OpenRouter, temperature 0.
The three tasks: (1) debug a broken parse_duration function so it handles multi-unit strings and rejects invalid input; (2) implement to spec a top_k_frequent_words with a non-standard "break ties by first appearance" rule designed to defeat memorized LeetCode answers; (3) refactor an O(n·k) function to O(n) while preserving exact behavior.
✓ Correctness verified by running the code
| Task | Test cases | Kimi K2.7 Code | Qwen3 Coder Next |
|---|---|---|---|
Debug parse_duration | 13 | 13 / 13 | 13 / 13 |
Implement top_k_frequent_words | 6 | 6 / 6 | 6 / 6 |
| Refactor to O(n) | 10 | 10 / 10 | 10 / 10 |
| Total correctness | 29 | 29 / 29 | 29 / 29 |
Both nailed all 29 cases. Both wrote clean, idiomatic code and handled the edge cases (empty input, k <= 0, the tie-break twist). On the debug task, K2.7 Code reached for a tidy guard — a single re.fullmatch to reject malformed strings before parsing:
# Kimi K2.7 Code — unedited output, task 1 (debug). Passed all 13 cases.
import re
def parse_duration(s: str) -> int:
if not re.fullmatch(r"(?:\d+[hms])*", s):
raise ValueError(f"Invalid duration string: {s!r}")
mult = {"h": 3600, "m": 60, "s": 1}
total = 0
for num, unit in re.findall(r"(\d+)([hms])", s):
total += int(num) * mult[unit]
return total
So correctness was a tie. The difference showed up in cost, speed, and how hard each model "thought":
| On the same 3 tasks | Kimi K2.7 Code | Qwen3 Coder Next |
|---|---|---|
| Total cost (measured) | $0.0071 | $0.0007 |
| Average latency | 15.9 s | 2.2 s |
| Hidden reasoning tokens | 1,295 | 0 |
K2.7 Code's always-on thinking mode burned 1,295 reasoning tokens across three routine tasks — roughly 10× the cost and 7× the wall-clock of a model that got the same answers without any visible deliberation. On problems this size, the thinking was overhead, not advantage.
What independent testers are finding
Beyond my own runs, the genuinely independent signal is still thin (the model is days old), but it's consistent:
- KernelBench (Elliot Arledge). On GPU-kernel generation, K2.7 Code wrote real Triton kernels rather than library wrappers — a step up from K2.6 — but several attempts failed on its own bugs, and one kernel regressed versus K2.6. The reviewer's summary: "more honest but not more capable."
- Working developers (Hacker News). Praise for cost — one dev rebased a large OpenSSL patch for an estimated $5–10 — alongside a recurring complaint that Kimi models "don't follow instructions and go off track," trying to "fix and refactor things that don't need fixing." Several note Claude still leads on intent-understanding and planning.
- Benchmark skeptics. Practitioners point out that the prior K2.6 scored only ~24% on the independent DeepSWE benchmark despite topping Moonshot's own suites — and K2.7 Code wasn't submitted to DeepSWE either. The reasonable read: wait for reproducible numbers.
Notably, my single-shot probe did not reproduce the "over-refactoring" complaint — K2.7's output was lean and on-spec. That behavior seems to surface in autonomous, multi-step agent loops, not one-shot prompts. Plan accordingly: supervise it on long tasks.
Compare coding models on your own prompts
Kimi K2.6, Qwen3 Coder Next, Claude Opus 4.7, GPT-5.4 and 300+ more — one OpenAI-compatible key, with live price comparison so you can see exactly what each run costs.
What to use today (and where K2.7 fits)
K2.7 Code isn't on DataLLM Lab yet — but several strong coding models are. Here's the lineup, with live prices from the pricing page, plus K2.7 Code for reference:
| Model | Profile | Context | Price (in / out, per 1M) | On DataLLM Lab |
|---|---|---|---|---|
| Qwen3 Coder Next | Cheapest competent open coder | 262K | $0.11 / $0.80 | Yes |
| Kimi K2.6 | Open, general + coding (K2.7's base) | 262K | $0.68 / $3.41 | Yes |
| DeepSeek V3.2 | Cheap, fast all-rounder | 131K | $0.23 / $0.34 | Yes |
| Claude Opus 4.7 | Best planning & instruction-following | 1M | $5 / $25 | Yes |
| GPT-5.4 | Strong all-round frontier | 1.1M | $2.50 / $15 | Yes |
| Kimi K2.7 Code | New open agentic coder | 256K | $0.75 / $3.50 (OpenRouter) | Not yet |
Gateway prices read from DataLLM Lab on June 15, 2026. K2.7 Code price is OpenRouter's listed rate.
Should you use Kimi K2.7 Code?
Good fit Reach for it when…
- You want a cheap, open-weights coding model you can self-host or fine-tune.
- The work is agentic and long-context — multi-file refactors, tool-using sessions — and you can supervise it.
- You're already on K2.6 and want a drop-in upgrade for coding specifically.
Look elsewhere Skip it when…
- You need top-tier planning and instruction-following — Opus 4.7 still leads, by both independent reports and my own experience.
- You want the lowest cost per correct answer on routine tasks — Qwen3 Coder Next matched it for ~10× less here.
- You need verified, reproducible benchmarks before committing — they don't exist for K2.7 Code yet.
The honest bottom line: Kimi K2.7 Code is a real, useful, low-cost open coding model and a clear improvement over K2.6 — but the "strongest coding model" framing rests on self-graded benchmarks where it still trails the frontier, and on independent evidence that doesn't exist yet. Treat the launch numbers as a hypothesis, not a result, and test it on your own code before you trust it. That's exactly what one API key across every model is for.
FAQ
Is Kimi K2.7 Code open source?
It's open-weights under a Modified MIT License. The terms are standard MIT plus one clause: products or services above 100M monthly active users or US$20M monthly revenue must display "Kimi K2.7 Code" in the UI. The weights are on Hugging Face.
Is Kimi K2.7 Code better than Claude Opus or GPT-5.5?
On Moonshot's own published benchmarks it trails both GPT-5.5 and Claude Opus 4.8 on every test except one tool-use benchmark (MCP Mark Verified, 81.1 vs Opus 76.4). There are no independent scores yet. In my hands-on probe it matched a far cheaper coder on correctness while costing and taking more.
How much does Kimi K2.7 Code cost?
Moonshot's API: $0.19/M cache-hit, $0.95/M input, $4.00/M output. OpenRouter: $0.75/M input, $3.50/M output. The two storefronts quote different rates, so check both for your usage pattern.
Did it really score 89% on SWE-bench Verified?
There's no verifiable source for that number. K2.7 Code doesn't appear on any independent SWE-bench leaderboard as of mid-June 2026, and Moonshot's release uses proprietary benchmarks, not SWE-bench. Treat the 89% claim as unverified.
Is Kimi K2.7 Code on DataLLM Lab?
Not yet. The closest open coders available now are Kimi K2.6 and Qwen3 Coder Next; for premium planning, Claude Opus 4.7 and GPT-5.4. You can call K2.7 Code today via OpenRouter or Moonshot's API.
What is Kimi K2.7 Code best at?
Long-horizon, agentic software work — multi-file edits, tool use, refactoring, long-context understanding — at a low price with open weights. Independent testers note it can over-refactor or drift in autonomous loops, so supervise it on long tasks.
DataLLM Lab