Kimi K2.7 Code API pricing & setup
As of 2026-10-17, the cheapest Kimi K2.7 Code channel is OpenRouter: $0.95 input / $4 output per 1M tokens (blended $1.71); official ¥6.5 / ¥27. Context 262K.
→ Kimi hub: all prices, free access, setup
Context: 262K · Max output: 236K · Modalities: text, image · Listed: 2026-06-12
Channel comparison (per 1M tokens)
| Channel | Blended | Input | Output | Cached | Access & payment (this channel) | Notes | Source |
|---|---|---|---|---|---|---|---|
| Official (China) ¥6.5 / ¥27 | $1.74 | $0.97 | $4.03 | $0.194 | ✓CN direct✓Alipay✓ID✗Intl card conditions source2026-10-17 | models.dev ✓ | platform.moonshot.cn 2026-10-17 |
| OpenRouter $0.95 / $4 | $1.71 | $0.95 | $4 | $0.19 | ✓CN direct✓Alipay✗ID✗Intl card conditions source2026-10-17 | Original vendor endpoint: Moonshot AI Quantized min $0.6712 / $3.35 (int4, Inceptron) | openrouter.ai 2026-10-17 |
Access & payment conditions are verified per channel (see the column above); unverified never counts as met.
How to use Kimi K2.7 Code in Claude Code / Codex / OpenCode
OpenAI compatible base URL: https://api.moonshot.cn/v1 · MOONSHOT_API_KEY
Check the provider docs for exact model IDs. Source
Cheaper alternatives
GPT-5.4 mini ($1.69) · ERNIE 5.0 ($1.57) · Grok 4.3 ($1.56) ·
Compare
Kimi K2.7 Code vs Claude Sonnet 5.5 · MiniMax-M3 vs Kimi K2.6 · Kimi K3 vs GLM-5.3 · Compare any two →
Rankings: Cheapest LLM APIs · LLM APIs usable from mainland China · All Moonshot AI (Kimi) models
Price history
- 2026-10-17 · OpenRouter · Kimi K2.7 Code cached: $0.18 → $0.19 (OpenRouter basis change: model list price → Moonshot AI (original vendor); not a provider price change)
- 2026-10-17 · OpenRouter · Kimi K2.7 Code output: $3.35 → $4 (OpenRouter basis change: model list price → Moonshot AI (original vendor); not a provider price change)
- 2026-10-17 · OpenRouter · Kimi K2.7 Code input: $0.6712 → $0.95 (OpenRouter basis change: model list price → Moonshot AI (original vendor); not a provider price change)
- 2026-10-17 · Official (China) · Kimi K2.7 Code listed · ¥6.5 / ¥27
FAQ
How much does the Kimi K2.7 Code API cost?
Cheapest channel (OpenRouter): $0.95 input / $4 output per 1M tokens, verified 2026-10-17.
Can I use Kimi K2.7 Code from China?
Official (China): direct yes, Alipay yes, ID required yes, overseas card no; OpenRouter: direct yes, Alipay yes, ID required no, overseas card no
Is Kimi K2.7 Code free?
No free route or deal recorded for this model; pay-as-you-go.
What is Kimi K2.7 Code's context window?
262K tokens