Last refreshed 2026-06-14. Next refresh: weekly.
Why use Kimi K2.7-Code on Moonshot AI Kimi?
Moonshot AI Kimi offers Kimi K2.7-Code with pay-as-you-go pricing at $0.95/1M input tokens. Moonshot AI's platform offers a comprehensive suite of AI-driven solutions, focusing on e-commerce optimization and advanced language processing.
Setup recipe
Docs fallbackUse the provider REST API or SDKCreate a provider API keymodel: kimi-k2.7-codekimi-k2.7-codeRequest example
kimi-k2.7-code.Gotchas
- Use provider model ID "kimi-k2.7-code", not the LLMReference slug "kimi-k2-7-code".
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.95 |
| Output tokens | $4.00 |
| Image input | $1.00 |
Capabilities
About Kimi K2.7-Code
Kimi K2.7-Code is Moonshot AI's coding-focused multimodal model released June 12, 2026, built on Kimi K2.6. Uses the same 1-trillion-parameter MoE architecture (32B active parameters, 384 experts with 8 selected per token, 61 layers) with a 262K context window and MoonViT vision encoder (400M parameters). Reports +21.8% on Moonshot's Kimi Code Bench v2, +11.0% on Program Bench, +31.5% on MLS Bench Lite versus K2.6, with approximately 30% fewer reasoning tokens. Forces thinking mode on by default and preserves reasoning content across multi-turn interactions for agentic use. Available via Kimi platform API and HuggingFace under Modified MIT license.
FAQ
What does Kimi K2.7-Code cost on Moonshot AI Kimi?
On Moonshot AI Kimi, Kimi K2.7-Code costs $0.950 per 1M input tokens and $4.000 per 1M output tokens.
What is the context window for Kimi K2.7-Code on Moonshot AI Kimi?
Kimi K2.7-Code supports a 262k token context window on Moonshot AI Kimi.
What API model ID do I use for Kimi K2.7-Code on Moonshot AI Kimi?
Use the model ID kimi-k2.7-code when calling Moonshot AI Kimi's API.
Who created Kimi K2.7-Code?
Kimi K2.7-Code was created by Moonshot AI as part of the Kimi K2 model family.
Is Kimi K2.7-Code open source?
Kimi K2.7-Code is open source under MIT according to the seed data.