Kimi K2.7 Code API pricing
Moonshot model
Short answer
Kimi K2.7 Code by Moonshot costs $0.95 per 1M input tokens and $4 per 1M output tokens, with a 256K token context window. It scores 78.2% on SWE-bench Verified. GLM-5.3 Flash scores about as well on SWE-bench Verified (92%) for $0.24 per 1M blended tokens versus $1.71.
Prices updated Oct 23, 2026 (APIpulse, CC BY 4.0) · Benchmarks: ARC Prize, Vals.ai · all models
API cost calculator
Enter your monthly usage in millions of tokens (1M tokens ≈ 750,000 words).
Standard rates; batch processing and prompt caching can lower the bill.
Benchmarks
Cheaper models with similar scores
Within 3 points on the same benchmark, at a lower blended price.
- GLM-5.3 FlashSWE-bench Verified 92% · $0.24 / 1M
- GPT-5.6 LunaSWE-bench Verified 93% · $0.45 / 1M
- DeepSeek V4 ProSWE-bench Verified 96.4% · $0.99 / 1M
Compare Kimi K2.7 Code
Other Moonshot models
Frequently asked questions
How much does the Kimi K2.7 Code API cost?
Kimi K2.7 Code costs $0.95 per 1M input tokens and $4 per 1M output tokens. A workload of 10M input and 2M output tokens a month costs $17.50.
What is the context window of Kimi K2.7 Code?
Kimi K2.7 Code supports a 256K token context window.
Is there a cheaper alternative to Kimi K2.7 Code?
GLM-5.3 Flash scores 92% on SWE-bench Verified, close to Kimi K2.7 Code, at $0.24 per 1M blended tokens versus $1.71.