moonshotai logo

Moonshot AI

Kimi K2.7 Code

MoonshotAI: Kimi K2.7 Code is a coding-focused model in Moonshot AI's Kimi K2 family, built to complete end-to-end programming tasks reliably over long contexts.

At a glance

Input / 1M
$0.67
Output / 1M
$3.35
Context
262K
Max output
236K
Intelligence
25.8
Released
Jun 2026
Text inputImage inputReasoningTool calling

Pricing

Kimi K2.7 Code API pricing

Per-token rates, plus what common tasks actually cost.

Input tokensPer 1M tokens$0.67
Output tokensPer 1M tokens$3.35
Cached input (read)Per 1M tokens$0.18
Cache writePer 1M tokensNot available

Chat message

2K in, 500 out

$3.02

per 1,000 requests

Coding task

30K in, 4K out

$33.54

per 1,000 requests

Long document summary

150K in, 2K out

$107.38

per 1,000 requests

Benchmarks

Kimi K2.7 Code benchmark scores

Independent scores from Artificial Analysis. Higher is better.

Intelligence index

25.8

Coding index

60.8

Agentic index

21

Specs

Context window and capabilities

What it can read, what it can write, and which API features it supports.

Context window
262K tokens
Max output
236K tokens
Input types
Image, Text
Output types
Text
Reasoning effort
Not available
Release date
June 12, 2026
  • Tool calling
  • Structured outputs
  • JSON mode
  • Reasoning
  • Temperature
  • Stop sequences
  • Deterministic seed
  • Verbosity control

FAQ

Frequently asked questions

How much does Kimi K2.7 Code cost?

Kimi K2.7 Code costs $0.67 per 1M input tokens and $3.35 per 1M output tokens through the API. A typical chat message costs about $3.02 per 1,000 messages.

What is the context window of Kimi K2.7 Code?

Kimi K2.7 Code accepts up to 262K tokens of input and can write up to 236K tokens in a single response.

What is the best alternative to Kimi K2.7 Code?

Kimi K2.6 from Moonshot AI is a strong alternative. It offers: 1.4x cheaper output, higher intelligence score.

Can I use Kimi K2.7 Code alongside other models?

Yes. Shortcut Chat sends one prompt to Kimi K2.7 Code and any other models you pick at the same time, so you can compare answers side by side.

moonshotai logo

Try Kimi K2.7 Code next to every other model.

Use Kimi K2.7 Code alongside all the other models. Use one at a time, or multiple together. Get the best answer from every AI.