> >
Released June 12, 2026

Kimi K2.7 Code
Moonshot's New Coding Flagship

The newest dedicated coding model from Moonshot AI achieves higher instruction compliance, 30% less overthinking, and a blazing HighSpeed variant — all with 256K context.

Officially Released 📅 June 12, 2026 👤 By ZVHH Research ⏱ 5 min read
256Kctx
Context Window
30%
Less Overthinking
10%
Better Agent Scores
180tok/s
HighSpeed Output

🎯 What Is Kimi K2.7 Code?

Moonshot AI has officially released Kimi K2.7 Code, their most capable coding model to date. Positioned as Kimi's dedicated coding specialist, it was announced alongside a HighSpeed variant optimized for developers who prioritize raw output speed.

The model is described by Moonshot as being built to "follow instructions more reliably in long contexts" and "complete coding tasks with higher success rates". It represents a focused evolution on the coding vertical, distinct from the broader K2.6 multimodal model.

ℹ️ Model Identifier

The model is available under the name kimi-k2.7-code on the Kimi API platform. A kimi-k2.7-code-highspeed variant is also available for latency-sensitive applications.

📊 Key Improvements Over K2.6

External benchmark evaluations reveal three major areas of improvement:

Instruction Compliance ↑ Significantly Improved
Long-Horizon Coding ↑ Significantly Improved
Overthinking Tendencies ↓ 30% Reduction
Agentic Capabilities ↑ 10% Improvement

The Overthinking Problem

One of K2.7 Code's standout improvements is the 30% reduction in overthinking tendencies compared to K2.6. For coding tasks, this is significant — it means the model is less likely to go down unnecessary reasoning rabbit holes when writing code, resulting in faster, more focused output for programming tasks.

Long-Horizon Coding

With a 256K context window, K2.7 Code handles large codebases and extended coding sessions far better than its predecessor. This matters for tasks like codebase migration, refactoring entire projects, or building multi-file applications where the model needs to maintain context across thousands of lines of code.

⚡ HighSpeed Variant

Moonshot also released Kimi K2.7 Code HighSpeed — the same model architecture but optimized for output speed:

⚠️ Resource Limitation

Moonshot notes that HighSpeed resources are currently limited, and experience may fluctuate. They are "gradually increasing the resource" allocation for the HighSpeed variant.

💰 Pricing

HighSpeed
kimi-k2.7-code-highspeed
Optimized for speed
Cache Hit $0.38 / 1M tokens
Cache Miss (Input) $1.90 / 1M tokens
Output $8.00 / 1M tokens
Output Speed ~180 tok/s

Comparison with K2.6 Pricing

Model Cache Hit Cache Miss Output
K2.7 Code $0.19 $0.95 $4.00
K2.7 Code HighSpeed $0.38 $1.90 $8.00
K2.6 $0.16 $0.95 $4.00
K2.5 $0.10 $0.60 $3.00
💡 Value Insight

K2.7 Code's pricing is nearly identical to K2.6 — just $0.03/MTok more for cache hits. Given the 30% reduction in overthinking and improved coding performance, K2.7 Code offers better cost efficiency per useful output token, especially in long-context coding sessions.

🔧 Technical Capabilities

Native Multimodal Architecture

K2.7 Code supports text, image, and video input natively — it can analyze code screenshots, review UI mockups, and understand video demonstrations of bugs. This makes it particularly useful for visual debugging workflows.

Thinking Mode

The model supports multi-step tool invocation and reasoning, excelling at complex logical problems, mathematical reasoning, and code generation. Notably, it does not support non-thinking mode — every inference includes built-in reasoning capability.

Tool Calling & JSON Mode

K2.7 Code supports the full suite of Kimi API features:

🧩 IDE & Agent Integration

Moonshot has published integration guides for popular coding tools:

Best for: Coding Workloads

Unlike general-purpose models, K2.7 Code is purpose-built for code. It trades broader reasoning for deeper coding proficiency — making it ideal for developers who want the best possible coding model without paying for capabilities they don't need.

🏗️ Moonshot AI — The Company Behind Kimi

Moonshot AI is a Chinese AI company based in Beijing, founded in 2023. Their mission statement is "Seeking the optimal conversion from energy to intelligence" — a philosophical nod to the fundamental challenge of making AI more efficient.

The Kimi product has gained significant traction both in China and globally, with the API platform reporting millions of professional developers as users. Moonshot's broader portfolio includes the K2.6 multimodal model, K2.5, and specialized tools like Kimi Code (their own AI-powered code editor) and Kimi Claw (an autonomous agent tool).

📝 Quick Start

Getting started with K2.7 Code is straightforward thanks to Kimi's OpenAI-compatible API:

Python — pip install
pip install --upgrade 'openai>=1.0'
Python — Basic Usage
from openai import OpenAI

client = OpenAI(
    api_key="your-api-key",
    base_url="https://api.moonshot.com/v1"
)

response = client.chat.completions.create(
    model="kimi-k2.7-code",
    messages=[
        {"role": "user", "content": "Write a Python function to merge two sorted arrays."}
    ]
)
print(response.choices[0].message.content)

You can get an API key at Kimi's Developer Console and test the model in the Playground before integrating into your projects.


📌 The Bottom Line

Kimi K2.7 Code represents Moonshot AI's commitment to the coding-specialist approach — rather than trying to be everything to everyone, they've built a model that excels at one thing: writing and understanding code.

The 30% reduction in overthinking is a particularly meaningful improvement. For coding tasks, less overthinking means faster, more direct code generation — and at the same price as K2.6 (roughly), it represents excellent value for development teams and individual developers alike.

If you're looking for a dedicated coding model with 256K context, strong agentic capabilities, and competitive pricing, K2.7 Code is worth testing immediately — especially given Moonshot's ongoing promotional pricing.

Sources