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.
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:
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:
- ~180 Tokens/s average output speed
- Up to 260 Tokens/s in short context scenarios
- Same model weights as standard K2.7 Code
- Currently experiencing some resource constraints
Moonshot notes that HighSpeed resources are currently limited, and experience may fluctuate. They are "gradually increasing the resource" allocation for the HighSpeed variant.
Pricing
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 |
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:
- Tool Calls (Function Calling) — automatic tool selection and execution
- JSON Mode — structured output for programmatic consumption
- Partial Mode — streaming partial results for interactive applications
- Context Caching — automatic caching to reduce costs on repeated inputs
IDE & Agent Integration
Moonshot has published integration guides for popular coding tools:
- Claude Code / Cline / Roo Code — Direct integration available via official documentation
- OpenClaw — Build AI agents with the Kimi API for Telegram, Discord, and WhatsApp
- Hermes Agent — Integration guides exist for connecting Kimi to agent workflows
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:
pip install --upgrade 'openai>=1.0'
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
- Moonshot AI Official Blog — Kimi K2.7 Code announcement, June 23, 2026
- Kimi API Platform — https://platform.kimi.ai (model details, pricing, documentation)
- Kimi API Documentation — K2.7 Code quickstart and API reference (platform.kimi.ai/docs)
- Kimi K2.7 Code Pricing Page — Detailed pricing breakdown for standard and HighSpeed variants
- Moonshot AI Homepage — https://www.moonshot.ai (company information)
- Moonshot AI Research — Agent Swarm and Kimi K2.6 research publications