Kimi K2.7 Code

Kimi K2.7 Code is a coding-specialized model from Moonshot AI. It is designed for long-horizon software engineering, tool use, and agentic repository work.

Model details

  • Identifier: moonshotai/kimi-k2.7-code
  • Context window: 256K tokens
  • Capabilities: Text · Reasoning · Tools

Best for

  • Exploring and modifying large repositories
  • Multi-file implementation and refactoring
  • Long-running coding agents
  • Debugging, test repair, and terminal-based workflows

Platform defaults

When sampling parameters are omitted, Mixlayer applies:

1{
2 "temperature": 1.0,
3 "top_p": 0.95
4}

Reasoning behavior

Kimi K2.7 Code uses always-on thinking. Budget enough output tokens for both reasoning and the final answer, especially for long agentic tasks.

Use clear objectives, provide relevant repository context, and expose focused tools. For long tasks, let the model inspect the codebase before asking it to implement changes.

Call GET /v1/models to confirm current availability and limits for your API key.

See the official Kimi K2.7 Code model card for upstream architecture and behavior.