News / AI models / Moonshot AI
Kimi K2.7 Code
Kimi K2.7 Code is an open-weight model by Moonshot AI, released 12 Jun 2026. It reads text, image and writes text, with a context window of 262K tokens and up to 236K tokens out. Through OpenRouter it costs $0.6 per million input tokens and $3 per million output tokens.
Facts from OpenRouter and Hugging Face · updated 24 Nov 2026
What it costs in practice
1,000 requests with 2,000 tokens in and 500 tokens out each cost about $2.7 through OpenRouter.
Use it
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-d '{"model": "moonshotai/kimi-k2.7-code", "messages": [{"role": "user", "content": "Hello"}]}'Other Kimi versions
- Kimi K3.1 Pro23 Oct 2026
- Kimi K316 Jul 2026
- Kimi K2.620 Apr 2026
- Kimi K2.527 Jan 2026
More from Moonshot AI
- Kimi Latest27 Apr 2026
FAQ
What is the context window of Kimi K2.7 Code?
Kimi K2.7 Code has a context window of 262,144 tokens, about 393 pages of text, and can write up to 235,929 tokens in one reply.
How much does Kimi K2.7 Code cost?
Through OpenRouter, $0.6 per million input tokens and $3 per million output tokens. The maker's own price can differ.
Is Kimi K2.7 Code open source?
Yes, its weights are published on Hugging Face as moonshotai/Kimi-K2.7-Code under the other licence.
When was Kimi K2.7 Code released?
It became available on 12 Jun 2026.
Something wrong? Email hello@capylaunch.com. All AI models