Kimi K2.7 Code

by Moonshot

Kimi K2.7 Code, released June 2026, is Moonshot's coding-specialized variant of the Kimi K2 line, built on the Kimi K2.6 foundation and purpose-built for software engineering rather than general chat. It uses a Mixture-of-Experts architecture with 1 trillion total parameters and 32 billion active per token, drawing on 384 experts with 8 selected plus 1 shared, and it natively handles text, image, and video input through the MoonViT vision encoder. The model is tuned for long-horizon, agentic coding, planning edits, running tools, and debugging across many steps within a 256K token context window. It shares the interleaved thinking and multi-step tool calling design of Kimi K2 Thinking while improving token efficiency, using roughly 30% fewer reasoning tokens than Kimi K2.6 on comparable work, which makes it well suited to extended coding sessions and autonomous engineering workflows. It is released as open weights under a Modified MIT License, with weights published on Hugging Face for self-hosting and fine-tuning.

Key info

Input
Output
Features
Context window
262K
Max output
262K
Input price
$0.96 /1M
Output price
$3.99 /1M
  • EU residency available
  • US residency available
  • Zero data retention on pay-as-you-go
  • No training by default
  • GDPR DPA available

Available routes

Kimi K2.7 Code runs on 4 different routes through the Opper gateway. Compare residency, ZDR, and training posture at a glance β€” full data-handling detail per route below.

ProviderRegionZero data retentionTrainingInputOutput
MultiEnterpriseNo$0.96$3.99
MultiEnterpriseNo$0.95$4.00
USEnterpriseNo$0.95$4.00
EUZero data retentionNo$1.25$4.50

Training posture across routes: No training on prompts by default.

Data handling per route

Each route hosting Kimi K2.7 Code has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

Alibaba Cloud β€” GermanyπŸ‡©πŸ‡ͺ

Zero data retention is available via Opper Enterprise contract. No training on customer data. GLOBAL; SCCs; DPA available.

Zero data retention
Available via Opper Enterprise contract.
Training
No training on customer data.
Logging
Abuse monitoring
Third-party access
None disclosed
GDPR DPA
DPA available
Transfer mechanism
SCCs

Fireworks β€” United StatesπŸ‡ΊπŸ‡Έ

Zero data retention is available via Opper Enterprise contract. No training on customer data. GLOBAL; SCCs; DPA available.

Zero data retention
Available via Opper Enterprise contract.
Training
No training on customer data.
Logging
None
Third-party access
None disclosed
GDPR DPA
DPA available
Transfer mechanism
SCCs

Novita β€” United StatesπŸ‡ΊπŸ‡Έ

Zero data retention is available via Opper Enterprise contract. No training on customer data. US; SCCs; DPA available.

Zero data retention
Available via Opper Enterprise contract.
Training
No training on customer data.
Logging
Abuse monitoring
Third-party access
None disclosed
GDPR DPA
DPA available
Transfer mechanism
SCCs

TensorX β€” European UnionπŸ‡ͺπŸ‡Ί

Zero data retention is on by default on Pay-as-you-go β€” no action required. No training on customer data. EEA; SCCs; DPA available.

Zero data retention
On by default on Pay-as-you-go.
Training
No training on customer data.
Logging
None
Third-party access
Provider may share with subprocessors / partners
GDPR DPA
DPA available
Transfer mechanism
SCCs

Benchmarks

Independent benchmark scores β€” composite indices for reasoning, coding, and math, plus individual eval scores where available.

Global rank#39 of 559 LLMs
TierStrong
Output speed46 tok/s
First token1.17s
Intelligence Index41.9
Coding Index60.8
Reasoning & knowledge
GPQA Diamond
90%
Humanity's Last Exam
33%
Long-context reasoning
66%
Coding
SciCode
48%
Agentic & tool use
Terminal-Bench Hard
45%
τ²-Bench Telecom
90%
Math & instruction following
IFBench
63%

Get started

Call Kimi K2.7 Code through the Opper gateway with one API key. Let your coding agent set it up, or call it directly β€” Opper is drop-in compatible with the OpenAI, Anthropic, and Google AI SDKs.

Set it up with your agent

Copy this and paste it into a coding agent like Claude Code, Cursor or Codex and it'll wire up Opper for you.

Or call it directly

import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.OPPER_API_KEY,
baseURL: "https://api.opper.ai/v3/compat",
});
const completion = await client.chat.completions.create({
model: "alibaba:global/kimi-k2.7-code",
messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);

Compare Kimi K2.7 Code with…

Side-by-side on privacy, EU hosting, pricing, and benchmarks.

Other models from Moonshot

Start building with 300+ models

One API key. Every major provider. Up and running in minutes.

Get startedView Documentation
Moonshot: Kimi K2.7 Code - API Pricing & Benchmarks