Kimi K2.7 Code
moonshotai/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.
Key facts
- Input price
- $0.6712 / 1M tokens
- Output price
- $3.35 / 1M tokens
- Context window
- 262K tokens
- Max output
- 236K tokens
- Accepts
- Text, Images
- Returns
- Text
Example: 1,000 requests with 1,000 input and 500 output tokens each would cost about $2.35 (1M input tokens × $0.6712 + 0.5M output tokens × $3.35). Estimate your own usage.
Prices are the provider’s own per-token rates with zero markup, from our price list as of Oct 18, 2026. If a call has extra provider charges (images, audio, web search, cached prompts), you pay the reported cost.
Call it from your code
curl https://api.tokenctr.com/v1/chat/completions \
-H "Authorization: Bearer $TOKENCENTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "moonshotai/kimi-k2.7-code", "messages": [{"role": "user", "content": "Hello!"}]}'Works with any OpenAI-compatible SDK: set the base URL to https://api.tokenctr.com/v1. Quickstart
Benchmarks
Artificial Analysis
- Intelligence index
- 25.8
- Coding index
- 60.8
- Agentic index
- 21
Design Arena
| Category | Rank | Elo | Win rate |
|---|---|---|---|
| Agents: HTML slides | 7 | 1201 | 53.6% |
| Agents: Godot game dev | 20 | 1147 | 49.2% |
| Agents: Agentic game dev | 21 | 1130 | 43% |
| Agents: Full-stack | 22 | 1175 | 50.9% |
| Agents: Slides (python-pptx) | 22 | 1154 | 44.7% |
| Models: ASCII art | 24 | 1200 | 48.4% |
| Agents: Android native | 25 | 1151 | 46% |
| Agents: Web apps | 25 | 1169 | 46.9% |
| Agents: Mobile apps | 29 | 1140 | 46.3% |
| Models: Websites | 33 | 1266 | 51.4% |
| Models: SVG | 35 | 1176 | 44.4% |
| Models: 3D | 36 | 1241 | 50.3% |
| Models: UI components | 36 | 1259 | 50.8% |
| Models: Code | 39 | 1255 | 50% |
| Models: Game dev | 44 | 1223 | 47.1% |
| Models: Data visualization | 46 | 1227 | 48.6% |
Source: Artificial Analysis indexes and Design Arena results as published in OpenRouter’s model data, fetched Oct 15, 2026. Higher is better. Not measured by TokenCenter. See all rankings.