Skip to content

Kimi K2.7 Code

Kimi K2.7 Code is Moonshot AI's coding-focused agentic model, built with a Mixture-of-Experts architecture for improved long-horizon coding tasks and token efficiency.

Freemium · API, CLI, Self-hosting

Kimi K2.7 Code in short

Kimi K2.7 Code excels at long-horizon agentic coding with its massive context, but demands a workflow shift for autonomous task management.
stork0:00 / 0:04
Ava, one of 89 voices. Press play.
A voiceover costs 5 cents a minute.
Type up to 20,000 characters, get an MP3. 89 voices, 38 languages. Three free a day, a minute each.
Make a voiceover

What is Kimi K2.7 Code?

Kimi K2.7 Code is a coding-focused agentic AI model developed by Moonshot AI that enables developers and teams to perform advanced software engineering tasks. It is optimized for real-world software engineering and agent-based coding workflows, including long-horizon task completion and complex code review. Released on June 12, 2026, Kimi K2.7 Code utilizes a Mixture-of-Experts (MoE) architecture, featuring 1 trillion total parameters with 32 billion active per token, to enhance efficiency and performance in multi-step code generation, CI/CD integration, and large-context codebase analysis. The model supports multimodal input, including text, image, and video, which is beneficial for full-stack development scenarios involving UI screenshots and layout requirements. Moonshot AI positions Kimi K2.7 Code as a cost-effective and open-source solution, available on Hugging Face under a Modified MIT license, with an API and subscription-based CLI for access.

Key Features of Kimi K2.7 Code

Kimi K2.7 Code integrates several advanced capabilities designed to streamline software development workflows. Its core architecture, a 1-trillion-parameter Mixture-of-Experts (MoE) model with 32 billion active parameters per token, contributes to its efficiency in handling complex coding tasks. The model's design prioritizes long-horizon task completion and agentic coding workflows, enabling autonomous management of development processes from planning to debugging. It also supports multimodal inputs, allowing for diverse data types in development contexts.

  • Mixture-of-Experts (MoE) Architecture: 1 trillion total parameters, 32 billion active per token.
  • Ultra-Long Context Window: 256K (262,144) tokens for extensive codebase analysis.
  • Agentic Coding Workflows: Designed for autonomous coding agents, managing planning, editing, tool execution, and debugging.
  • Multimodal Input Support: Processes text, image, and video for comprehensive development scenarios.
  • Long-Horizon Task Completion: Excels in multi-step code generation and CI/CD integration.
  • Code Review Capabilities: Analyzes pull request diffs and provides risk analysis.
  • Token Efficiency: Achieves a 30% reduction in reasoning token usage compared to K2.6.
  • High-Speed Version: Kimi K2.7 Code HighSpeed API outputs 180-260 tokens/s.
  • Open-Source Availability: Model weights are free to download on Hugging Face under a Modified MIT license.

Who Should Use Kimi K2.7 Code?

Kimi K2.7 Code is primarily designed for software developers, engineering teams, and organizations engaged in complex, multi-step coding projects. Its agentic capabilities and long-horizon task completion make it suitable for automating significant portions of the software development lifecycle. The model's efficiency and open-source nature also appeal to cost-sensitive teams and those requiring deployment flexibility.

  • Software Developers: For multi-step code generation, large-context codebase analysis, and integrating CI/CD processes.
  • Engineering Teams: To implement autonomous coding agents that manage complex development workflows from planning to debugging.
  • Code Reviewers: For analyzing pull request diffs, assessing risk, and leveraging its 256K context window for comprehensive review.
  • Full-Stack Developers: Utilizing multimodal input for UI screenshots, layout requirements, and interaction debugging.
  • Cost-Sensitive or Self-Hosting Teams: Benefiting from its open-source availability, competitive pricing, and token efficiency for large-scale agentic workflows.

Kimi K2.7 Code Pricing & Plans

Moonshot AI offers Kimi K2.7 Code through a freemium model, providing access via its API and a subscription-based Command Line Interface (CLI). The model weights are also available for free download for self-hosting, though this requires substantial hardware resources, such as an 8xH100 node for full-context serving, due to its 1-trillion-parameter Mixture-of-Experts architecture. Reasoning tokens generated by the model's mandatory 'thinking mode' are billed as output tokens, which users should consider for usage limits.

  • Freemium: Free tier available.
  • API Pricing - Input (cache miss): $0.95 per million tokens.
  • API Pricing - Input (cache hit): $0.19 per million tokens.
  • API Pricing - Output: $4.00 per million tokens.
  • API Pricing - Web Search: $0.015 per invocation.
  • Kimi Code CLI Membership: Plans start at $19/month.
  • Self-hosting: Free model weights download; hardware costs apply (e.g., 8xH100 node).

Kimi K2.7 Code vs Competitors

Kimi K2.7 Code is positioned as a strong open-source alternative in the AI coding assistant market, competing with both proprietary and other open-source models. Its Mixture-of-Experts architecture, token efficiency, and open-source license are key differentiators against established players.

Kimi K2.7 Code

Freemium · API, CLI, Self-hosting

From the Stork blog

Enjoying this? Get one like it in your inbox each morning.

one email a day · unsubscribe in two clicks · no third-party tracking