Kimi K2.7 Code API Pricing
Deprecated: Moonshot closes the K2 series to newly registered users from October 31, 2026, keeps it for existing users, and plans to retire it by the end of December 2026; its migration guide points to Kimi K3.1 Pro. Kimi K2.7 Code is Moonshot Kimi's coding-specialized model for long-context programming and agent tasks. The official Kimi pricing page lists $0.19/M cache-hit input, $0.95/M cache-miss input, and $4/M output. Pulled directly from platform.kimi.ai.
Kimi K2.7 Code API cost calculator.
Live calculator pre-loaded with Kimi K2.7 Code rates, which existing users pay until Moonshot retires the K2 series. Tweak spend, output mix, or cache assumptions and share the URL to share the calculation.
Kimi K2.7 Code cost on real workloads.
Long-horizon coding
Repository migration
Screenshot-to-code implementation
Developer assistant
This is a chars-per-token approximation, not a real tokenizer. Actual tokens vary by language, code density, and tool-call overhead — counts are typically ±10–20% off for English prose, more for code or non-Latin scripts. For exact billing, use the vendor's official tokenizer.
| Model | Input /M | Output /M | Effective blended | Context | Best for |
|---|---|---|---|---|---|
| Kimi K2.7 Code Current | $0.95 cache $0.19 | $4.00 | $0.621 agentic 92/8 | 262K | Long-context coding agents |
| Kimi K2.6 | $0.95 cache $0.16 | $4.00 | $0.598 deprecated · −4% | 262K | frontier |
| Kimi K3 | $3.00 cache $0.30 | $15.00 | $1.92 +3.1× | 1M | Kimi flagship |
| GPT-6.1 Terra | $1.00 cache $0.05 | $5.00 | $0.645 +4% | 1.05M | OpenAI's fast, efficient GPT-6 tier |
| Grok Build 0.1 | $1.00 cache $0.20 | $2.00 | $0.476 −23% | 256K | coding |
| DeepSeek V4.1 Flash | $0.30 cache $0.006 | $1.20 | $0.15 −4.1× | 1M | budget |
Audit links
Kimi K2.7 Code API pricing FAQ.
Short answers for teams evaluating Kimi K2.7 Code for coding agents and long-context development workflows.
Q · 01 Can I still use Kimi K2.7 Code? +
Q · 02 What is Kimi K2.7 Code's input price? +
$0.95/M for cache-miss input and $0.19/M for cache-hit input. The calculator uses cache hits when you select a cache hit-rate preset.Q · 03 What is Kimi K2.7 Code's output price? +
$4.00/M tokens. Prices exclude applicable taxes, which Kimi says are calculated at checkout based on jurisdiction.