---
last_updated: 2026-12-01
source_url: https://opper.ai/moonshot/kimi-k2-7-code
title: "Kimi K2.7 Code by Moonshot"
description: "Kimi K2.7 Code by Moonshot: open-weight, code-specialized agentic model on a 1 trillion parameter MoE, tuned for long-horizon software engineering and tool use."
---

# Kimi K2.7 Code

By [Moonshot](https://opper.ai/moonshot).

Released 12 Jun 2026, 53 days after [Kimi K2.6](https://opper.ai/moonshot/kimi-k2-6) · [All Moonshot releases](https://opper.ai/model-releases/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.

## Available routes

Kimi K2.7 Code runs on 6 different routes through the Opper gateway. Prices are per 1M tokens. In the EU it is served by Inceptron, Lyceum and TensorX. [See every Kimi model hosted in the EU](https://opper.ai/models/eu/kimi). Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=kimi-k2.7-code.

| Provider | Model id | Region | Zero data retention | Training | Input | Output | Cache read |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [Alibaba Cloud](https://opper.ai/provider/alibaba) | `alibaba:global/kimi-k2.7-code` | Multi-region | Abuse monitoring | No | $0.98 | $4.06 | Input price |
| [Inceptron](https://opper.ai/provider/inceptron) | `inceptron/moonshotai/Kimi-K2.7-Code` | EU | Yes | No | $0.65 | $3.55 | $0.17 |
| [Lyceum](https://opper.ai/provider/lyceum) | `lyceum/moonshotai/kimi-k2.7-code` | EU | Yes | No | $1.25 | $4.50 | $0.31 |
| [Novita](https://opper.ai/provider/novita) | `novita/moonshotai/kimi-k2.7-code` | US (United States) | Yes | No | $0.95 | $4.00 | $0.19 |
| [Tencent Cloud](https://opper.ai/provider/tencent-cloud) | `tencent:sg/kimi-k2.7-code` | Multi-region | Yes | No | $0.95 | $4.00 | $0.19 |
| [TensorX](https://opper.ai/provider/tensorx) | `tensorx/moonshotai/kimi-k2.7-code` | EU | Yes | No | $1.25 | $4.50 | $0.31 |

## Key info

- Model id: `kimi-k2.7-code` (routes across Alibaba Cloud, Inceptron, Novita, Tencent Cloud, TensorX)
- Input: Text, Image, Video
- Output: Text
- Features: Reasoning, Tools, Structured output
- Context window: 262K
- Max output: 262K
- Input price: $0.98 per 1M tokens
- Output price: $4.06 per 1M tokens
- Released: 12 Jun 2026
- EU residency available on Inceptron, Lyceum and TensorX
- US residency available on Novita
- Zero data retention on pay-as-you-go
- No training 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 — Multi-region

Zero data retention with abuse monitoring: prompts and outputs are kept for abuse monitoring only, for a window the provider does not state, and are not used for training. No training on customer data. GLOBAL; SCCs.

- Zero data retention: With abuse monitoring, window not stated.
- Training: No training on customer data.
- Logging: Abuse monitoring
- Abuse monitoring: On by default, holds flagged content
- Caching: Prompt cache
- Transfer mechanism: SCCs

Verified by Opper on 2026-09-16.

### Inceptron — EU

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: On by default, keeps nothing
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-09-16.

### Lyceum — EU

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: No classifier
- Caching: Prompt cache
- Subprocessor access: Subprocessors may read content
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-10-15.

### Novita — United States

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. US; SCCs.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: On by default, keeps nothing
- Transfer mechanism: SCCs

Verified by Opper on 2026-09-15.

### Tencent Cloud — Multi-region

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. GLOBAL; SCCs.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: On by default, keeps nothing
- Caching: Prompt cache
- Transfer mechanism: SCCs

Verified by Opper on 2026-10-06.

### TensorX — EU

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. EU.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: No classifier
- Caching: Prompt cache
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-09-16.

## Best for

Where Kimi K2.7 Code ranks among the models on Opper with a score for each use case (0 to 100).

- [Agents](https://opper.ai/models?use=agents): 12.8 (Terminal-Bench 4.0 and AutomationBench)

## Benchmarks

Independent benchmark scores via [Artificial Analysis](https://artificialanalysis.ai) ([view on AA](https://artificialanalysis.ai/models/kimi-k2-7-code)). Indices and domain scores are out of 100, Omniscience runs from −100 to 100, Briefcase is an Elo rating, and the other evaluation scores are the share of tasks solved.

- Global rank: #135 of 525 LLMs on the [LLM leaderboard](https://opper.ai/llm-leaderboard)
- Tier: Efficient
- Output speed: 95 tok/s
- Intelligence Index (previous version): 25.8

### Coding

- Terminal-Bench 4.0: 1%
- SciCode: 48%

### Agentic & knowledge work

- AutomationBench: 25%
- GDPval: 27%
- GDP.pdf: 11%
- Briefcase (Elo): 859
- Terminal-Bench Hard: 45%
- τ²-Bench Telecom: 90%

### Science & reasoning

- HLE Diamond: 15%
- Humanity's Last Exam: 35%
- GPQA Diamond: 90%
- Long-context reasoning: 79%

### Math & instruction following

- IFBench: 63%

## Get started

Call Kimi K2.7 Code through the Opper gateway with one API key. Opper is drop-in compatible with the OpenAI, Anthropic and Google AI SDKs.

Kimi K2.7 Code is a premium model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

### Set it up with your agent

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Use curl to download, read and follow: https://skills.opper.ai Call Kimi K2.7 Code
```

### Or call it directly

OpenAI:

```javascript
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: "kimi-k2.7-code",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);
```

Anthropic:

```javascript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const message = await client.messages.create({
  model: "kimi-k2.7-code",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello" }],
});
console.log(message.content);
```

Gemini:

```javascript
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({
  apiKey: process.env.OPPER_API_KEY,
  httpOptions: { baseUrl: "https://api.opper.ai/v3/compat" },
});

const response = await ai.models.generateContent({
  model: "kimi-k2.7-code",
  contents: "Hello",
});
console.log(response.text);
```

cURL:

```bash
curl https://api.opper.ai/v3/compat/chat/completions \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k2.7-code",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'
```

## Use Kimi K2.7 Code in your apps

Pick your tool to see how to run it on Kimi K2.7 Code through Opper.

- [Claude Code](https://opper.ai/apps/claude-code/kimi-k2-7-code)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/kimi-k2-7-code)
- [Codex](https://opper.ai/apps/codex/kimi-k2-7-code)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/kimi-k2-7-code)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/kimi-k2-7-code)
- [Aider](https://opper.ai/apps/aider/kimi-k2-7-code)
- [Goose](https://opper.ai/apps/goose/kimi-k2-7-code)
- [Droid](https://opper.ai/apps/droid/kimi-k2-7-code)
- [OpenCode](https://opper.ai/apps/opencode/kimi-k2-7-code)
- [Pi](https://opper.ai/apps/pi/kimi-k2-7-code)
- [OpenClaw](https://opper.ai/apps/openclaw/kimi-k2-7-code)
- [Hermes](https://opper.ai/apps/hermes/kimi-k2-7-code)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/kimi-k2-7-code)
- [OmniRoute](https://opper.ai/apps/omniroute/kimi-k2-7-code)
- [Cursor](https://opper.ai/apps/cursor/kimi-k2-7-code)
- [Cline](https://opper.ai/apps/cline/kimi-k2-7-code)
- [Continue](https://opper.ai/apps/continue/kimi-k2-7-code)
- [Kilo Code](https://opper.ai/apps/kilo-code/kimi-k2-7-code)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/kimi-k2-7-code)
- [Zed](https://opper.ai/apps/zed/kimi-k2-7-code)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/kimi-k2-7-code)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/kimi-k2-7-code)
- [n8n](https://opper.ai/apps/n8n/kimi-k2-7-code)
- [LibreChat](https://opper.ai/apps/librechat/kimi-k2-7-code)
- [Open WebUI](https://opper.ai/apps/open-webui/kimi-k2-7-code)
- [See all apps](https://opper.ai/apps)

## Other models from Moonshot

- [Kimi K3.1 Pro](https://opper.ai/moonshot/kimi-k3-1-pro)
- [Kimi K3](https://opper.ai/moonshot/kimi-k3)
- [Kimi K2.6](https://opper.ai/moonshot/kimi-k2-6)
- [Kimi K2.7 Code Fast](https://opper.ai/moonshot/kimi-k2-7-code-fast)
- [Kimi K2.5](https://opper.ai/moonshot/kimi-k2-5)
- [Kimi K2 0905](https://opper.ai/moonshot/kimi-k2-0905)
