AI/TLDR

Kimi K2.7-Code

Moonshot's strongest open-weight coding model, tuned for long-horizon agentic software work.

Overview

Kimi K2.7-Code is Moonshot AI's coding-focused agentic model, built on top of Kimi K2.6. It is a 1-trillion-parameter Mixture-of-Experts model that activates 32B parameters per token (384 experts, 8 selected per token plus 1 shared expert, across 61 layers), and ships with open weights under a Modified MIT License.

The model targets real-world, long-horizon software engineering: multi-step coding agents, codebase understanding, and tool-driven workflows. Moonshot reports substantial gains on long-horizon coding tasks over K2.6, together with roughly a 30% reduction in thinking-token usage, which lowers the cost of agentic runs.

K2.7-Code is served through Moonshot's Kimi API platform with OpenAI- and Anthropic-compatible endpoints, supports a 256K-token context window and tool calling, and runs with thinking enabled. It is also the model behind the Kimi Code CLI for terminal and IDE coding agents.

Released2026
LicenseModified MIT License
WeightsOpen weights
Parameters1T total · 32B active
Context256K
ArchitectureMixture-of-Experts
ModalitiesText, Vision, Video
StatusAvailable

Benchmarks

Evaluation Results — Kimi K2.7 Code vs. Kimi K2.6, GPT-5.5, and Claude Opus 4.8 on coding and agentic benchmarks (thinking mode enabled via Kimi Code CLI, temperature = 1.0, top_p = 0.95, averaged across multiple runs).

BenchmarkKimi K2.6Kimi K2.7 CodeGPT-5.5Claude Opus 4.8
Kimi Code Bench v250.9 score62 score69 score67.4 score
Program Bench48.3 score53.6 score69.1 score63.8 score
MLS Bench Lite26.7 score35.1 score35.5 score42.8 score
Kimi Claw 24/7 Bench42.9 score46.9 score52.8 score50.4 score
MCP Atlas69.4 score76 score79.4 score81.3 score
MCP Mark Verified72.8 score81.1 score92.9 score76.4 score

Comparison source ↗

This model's scores

  1. Kimi-Code-Bench v262%
  2. Program-Bench53.6%
  3. MCP Mark Verified81.1%

Scores on a 0–100 scale (25-point gridlines); higher is better. Each benchmark links to its published source.

Pricing

Input$0.95 / 1M tokens
Cached input$0.19 / 1M tokens
Output$4.00 / 1M tokens

Pricing source ↗

Strengths

  • Strong long-horizon, multi-step agentic coding performance built on the K2.6 base.
  • Token-efficient reasoning — about 30% fewer thinking tokens than K2.6, cutting agent run costs.
  • Large 256K-token context for whole-codebase understanding and long trajectories.
  • Native tool calling with OpenAI/Anthropic-compatible APIs for easy agent integration.
  • Open weights (Modified MIT) enabling self-hosting and customization.

Best for

  • Autonomous coding agents that plan and execute multi-step software tasks.
  • Code generation and refactoring across large, multi-file repositories.
  • Terminal/IDE coding assistants via the Kimi Code CLI.
  • Tool-using agents that integrate external systems through MCP-style workflows.

How to access

ProviderModel ID
Moonshot AI (Kimi) ↗kimi-k2.7-code

Kimi K2 — every version

The full lineage of the Kimi K2 line, newest first. Every version has its own page — click any to compare specs, benchmarks and pricing.

VersionReleasedContextLicense
Kimi K2.7-Codecurrent2026-06-12256KModified MIT
Kimi K2.62026-04-20Open weights
Kimi K2.52026-01-27Open weights
Kimi K2-Instruct-09052025-09-09Open weights
Kimi K22025-07-11MIT

FAQ

What is Kimi K2.7-Code?

Kimi K2.7-Code is Moonshot AI's open-weight, coding-focused agentic model built on Kimi K2.6. It is a 1-trillion-parameter Mixture-of-Experts model that activates 32B parameters per token, tuned for long-horizon software engineering, code generation, and tool-using coding agents, and released under a Modified MIT License.

How large is the context window?

Kimi K2.7-Code supports a 256K-token context window, large enough to load substantial portions of a codebase and to sustain long, multi-step agentic coding trajectories. Combined with native tool calling, this makes it well suited to whole-repository understanding and extended autonomous engineering sessions.

How much does the Kimi K2.7-Code API cost?

On Moonshot's Kimi platform, K2.7-Code is priced at $0.95 per million input tokens and $4.00 per million output tokens, with cache-hit input billed at $0.19 per million tokens. The model also reduces thinking-token usage by roughly 30% versus K2.6, which lowers the effective cost of agentic runs.

Are the model weights open?

Yes. Kimi K2.7-Code is an open-weight model published on Hugging Face under a Modified MIT License, so it can be self-hosted and customized. It is also available as a hosted API on Moonshot's Kimi platform with OpenAI- and Anthropic-compatible endpoints for teams that prefer managed inference.