Moonshot AI Releases Kimi K2.7-Code: a Coding Model Reporting +21.8% on Kimi Code Bench v2 Over K2.6
Blog

Moonshot AI Releases Kimi K2.7-Code: a Coding Model Reporting +21.8% on Kimi Code Bench v2 Over K2.6

Asif Razzaq
2026.06.14
·Web·by 성산
#Agentic AI#AI#Coding Model#LLM#Open Source

Key Points

  • 1Kimi K2.7-Code is Moonshot AI's new open-weight, agentic, coding-focused Mixture-of-Experts model, featuring 1T total parameters, a 256K token context window, and multi-modal capabilities.
  • 2It demonstrates significant performance gains over K2.6 on coding benchmarks, including a 21.8% improvement on Kimi Code Bench v2, and reports approximately 30% lower reasoning-token usage for enhanced efficiency.
  • 3Designed for long-horizon software engineering tasks like repo-scale refactoring and debugging, it offers an OpenAI-compatible API and self-hosting options, though it has fixed sampling parameters and substantial deployment requirements.

Kimi K2.7-Code, developed by Moonshot AI, is an agentic, coding-focused large language model designed for long-horizon software engineering tasks. It is distributed with open weights on Hugging Face under a Modified MIT license and is also accessible via the Kimi API and Kimi Code platform.

Architecturally, K2.7-Code is a Mixture-of-Experts (MoE) model, comprising a total of 11 trillion parameters with 3232 billion parameters activated per token. Its MoE design incorporates 384384 experts, from which 88 are selected per token, and 11 is shared across tokens. The model features 6161 layers, including a single dense layer. For attention mechanisms, it utilizes Multi-Query Attention (MLA), and its feed-forward network employs the SwiGLU activation function. Additionally, it integrates a MoonViT vision encoder, contributing 400400 million parameters, to support image and video input. The model employs native INT4 quantization for efficient deployment. It boasts a substantial context window of 256,000256,000 tokens (262,144262,144). Operational constraints include a mandatory "thinking mode" for its agentic process, which cannot be disabled via API, and fixed sampling parameters (temperature 1.01.0, top\_p 0.950.95, n 11, penalties 0.00.0). The default maximum output length is 32,76832,768 tokens. For self-hosting, compatibility is provided with vLLM, SGLang, and KTransformers, though the model's 595595 GB disk size positions it as a server-class deployment.

Moonshot AI's internal benchmarks indicate that K2.7-Code consistently outperforms its predecessor, K2.6, across various coding and agentic evaluation suites. Notably, it achieved a 21.8%21.8\% improvement on the Kimi Code Bench v2, increasing from 50.950.9 to 62.062.0. It also showed significant gains on Program Bench (+11.0%+11.0\%), MLS Bench Lite (+31.5%+31.5\%), Kimi Claw 24/7 Bench (+9.3%+9.3\%), MCP Atlas (+9.5%+9.5\%), and MCP Mark Verified (+11.4%+11.4\%). In comparisons against frontier models, K2.7-Code surpassed Claude Opus 4.8 on MCP Mark Verified (81.181.1 vs. 76.476.4) and approached GPT-5.5's performance on MLS Bench Lite (35.135.1 vs. 35.535.5). These benchmarks were conducted using Kimi Code CLI for K2.7-Code, Codex xhigh for GPT-5.5, and Claude Code xhigh for Opus 4.8.

A key cost optimization highlighted is a reported 30%30\% reduction in "reasoning-token" usage compared to K2.6, which translates to lower output-token costs, faster interactive CLI sessions, and an extended effective context window in multi-step agentic workflows.

Targeted use cases include repo-scale refactors where the agent can read files, edit across modules, and iteratively debug; code review by analyzing pull request diffs; complex tool-use workflows integrating Model Context Protocol (MCP) for CI checks, ticket updates, and file edits; and long-context analysis combining text, image, and video inputs for comprehensive prompt understanding.

The Kimi API is OpenAI-compatible, requiring adherence to the fixed sampling parameters and strict preservation of reasoning_content in multi-turn tool calls. Its competitive API pricing is 0.95/1M0.95 / 1\text{M} tokens for cache-miss input and 4.00/1M4.00 / 1\text{M} tokens for output, with a cached input rate of 0.19/1M0.19 / 1\text{M}.

Strengths include its open weights, consistent performance gains over K2.6, competitive API pricing relative to closed-source models, and a strong showing on the MCP Mark Verified benchmark. Weaknesses noted are the reliance on first-party benchmarks, the inability to disable "thinking mode," locked sampling controls, the requirement to preserve reasoning_content for tool use, and the substantial size of the model weights for self-hosting.