MoonshotAI, released Jun 12, 2026

Kimi K2.7 Code

Kimi K2.7 Code is MoonshotAI's dedicated coding model from the K2 generation, meant for working through whole programming jobs across big codebases. It came out on June 12, 2026, right before Kimi K3 and Kimi K3.1 Pro arrived, and while those newer models sit above it in the lineup, K2.7 Code stays much cheaper on output tokens while still giving you a huge context window and open weights. If you're building coding workflows where the model writes a lot of code back, this is the spot in MoonshotAI's lineup aimed at that.

Already paying for Kimi?

Kimi K2.7 Code costs $3.50 per 1M output tokens. Use Kimi K3 through your Kimi plan instead, $0 per token.

Get your API key Free plan, no card needed

Updated

Kimi K2.7 Code pricing and specs

Input
$0.63per 1M tokens
Output
$3.50per 1M tokens
Cached input
$0.15per 1M tokens
Context window
262K262,144 tokens
Max output
236K235,929 tokens
Released
Jun 12, 2026
Accepts
TextImages
Features
Tool callingReasoningStructured outputsOpen weights

What Kimi K2.7 Code is good at

  • Agentic coding loops that need to call tools, work across a big codebase and return structured JSON over multiple steps, since tool calling, JSON output and always-on reasoning are all built in.
  • Frontend and UI debugging from screenshots. It takes images directly alongside text, so you don't need a separate vision model in front of it.
  • Heavy code generation in a single reply, because its output cap is nearly as big as its entire context window.
  • Teams that want the option to self-host (the open weights are published as moonshotai/Kimi-K2.7-Code).

Good to know

  • Reasoning is always on. You can't switch it off for trivial prompts or bare-bones completions.
  • The pricing relative to MoonshotAI's newer K3 models is flipped from what you might expect - input tokens cost more here than on Kimi K3 or Kimi K3.1 Pro, while output tokens are way cheaper. Compared to the rest of the K2 family, it's slightly cheaper than Kimi K2.6 and a bit pricier than Kimi K2.5.

Kimi K2.7 Code vs similar models

API price per 1M tokens
ModelInputOutputPlan2APIContext
Kimi K2.7 Code$0.63$3.50Not available262K
Kimi K3.1 Pro$0.253$8.80Not available1M
Kimi K3$0.192$16$0 on Kimi1M
Kimi K2.6$0.65$3.41Not available262K
Qwen3.5 397B A17B$0.50$3.60Not available262K
Gemini 3.7 Flash$0.75$3.75Not available1M

Kimi K2.7 Code cost per month

Tokens a month at $0.63 input and $3.50 output per 1M
WorkloadAPI price
Side project2M in, 500K out$3.01
Production app25M in, 5M out$33.25
Agents at scale250M in, 50M out$333

FAQ

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

Kimi K2.7 Code costs $0.63 per 1M input tokens and $3.50 per 1M output tokens, and cached input costs $0.15 per 1M.

What is the Kimi K2.7 Code context window?

Kimi K2.7 Code takes 262,144 tokens of context, with up to 235,929 output tokens per request.

When was Kimi K2.7 Code released?

MoonshotAI released Kimi K2.7 Code on Jun 12, 2026.

Can I use Kimi K2.7 Code with my subscription?

Plan2API turns Claude, ChatGPT, Gemini and Kimi subscriptions into one OpenAI-compatible API. Kimi K3 runs through your Kimi plan at $0 per token instead.

Can I turn reasoning off?

No. Reasoning is always on with Kimi K2.7 Code, and there's no toggle to disable it on simpler requests.

Is Kimi K2.7 Code open weights?

Yes, MoonshotAI released it as moonshotai/Kimi-K2.7-Code. So if you start out calling an API and decide later to run it on your own infrastructure, you have that option.

More MoonshotAI models

All 5 MoonshotAI models

Already paying for Kimi? Use Kimi K3 through your plan, $0 per token.

  • Free: 1 subscription, no daily cap, no card
  • Pro: $12 a month

Kimi K3 at $0 per tokenFree plan, no card needed

Get your API key

Guides

80