kimi-k2.7-code

kimi-k2.7-code

Kimi’s next-generation flagship large model for adaptive code engineering based on deep reinforcement learning
2026-06-13
LLM
Model capability: imageModel capability: videoModel capability: thinkingModel capability: function_call
Input:
$0.95/1M tokens
Output:
$4/1M tokens
Bulk order? Contact your manager for exclusive deals

API Overview

The Kimi-K2.7-Code model is a deeply reinforced-learning-aligned model built upon the K2.7 massive long-text foundation, specifically optimized for full-stack programming, large-scale codebase refactoring, and automated software testing. In core coding scenarios such as complex logical architecture design, multi-thousand-line breakpoint continuation, and multi-file collaborative debugging, the model demonstrates intelligence comparable to that of seasoned human architects. Its unique reflective thinking architecture perfectly supports complex programming agent workflows, making it a true powerhouse for long-text code development in production environments. ───────────────────────────────────────────────────────────────────

Core Capabilities

Lossless Global Understanding of Ultra-Large Codebases: The model maintains exceptionally high recall rates in global retrieval and correlation analysis of ultra-large, complex engineering codebases. It requires no tedious code slicing; instead, it can directly ingest hundreds of thousands of lines across multiple directories at once and precisely unravel intricate call topologies and underlying logic within milliseconds.

Deep Reinforcement Learning Adaptive Reasoning: The model incorporates cutting-edge runtime computation and code-specific reinforcement learning techniques. When confronted with unknown hardware environments, extremely complex boundary conditions, or highly challenging algorithm designs, the model can initiate deep internal reasoning chains, autonomously conducting closed-loop verification—“write-error-reflection-correction”—in a sandbox environment, ensuring that its output code achieves industry-leading first-tier compilation success rates on the first try.

Long-Range File Collaboration and Full-Stack Architecture Design: The model boasts exceptional multi-file concurrent refactoring capabilities. It not only excels at optimizing individual functions but also accurately manages global dependencies during microservice architecture refactoring, cross-language migration of legacy systems (e.g., migrating from Java to Go), and large-scale frontend component library refactoring, automatically generating comprehensive modification plans and associated patches.

Ultra-Low Latency Agile Completion and Readiness: The model has been meticulously optimized for developers’ high-frequency interaction patterns, featuring extreme acceleration of reasoning operator streams. While delivering unparalleled long-text processing and advanced reasoning capabilities, it significantly reduces first-word latency (TTFT). Whether serving as the core engine for backend automation agents or as real-time line-level completion in IDE plugins, the model provides silky-smooth, highly concurrent responses.

Playground

Log in to explore more features! Click to Log In

API Analytics

API Reference (1)

API DescriptionAPI EndpointRequest MethodStabilityParameter Description
Chat(Moonshot kimi AI-Vision)
POST
Stable
View Details

API Pricing

$
ModelDescriptionContextOfficial Price302.AI Price

kimi-k2.7-code

-
262144

Input$0.95 / 1M tokens
Output$4 / 1M tokens

Input$0.95/ 1M tokens
Output$4/ 1M tokens
Original Price