Kimi K2.7 Code

MoonshotAI: Kimi K2.7 Code is a coding-focused model in Moonshot AI's Kimi K2 family, built to complete end-to-end programming tasks reliably over long contexts. It uses a native multimodal mixture-of-experts architecture that accepts text and image input, and it always operates in a thinking mode, preserving full reasoning content across multi-turn conversations. With a 256K-token context window, it targets long-horizon coding, agentic task decomposition, and multi-turn dialogue. The model activates 32B parameters out of roughly 1T total.

ChatMoonshot262k tokens$0.7303 / $3.7062 · 1M

moonshotai/kimi-k2.7-code

Context
262k tokens
Completion cap
262,144
Tools
Yes
JSON
Yes
Released
2026-06-12

Call it from Geek Hub

Same OpenAI SDK. Change the base URL and the model id.

curl https://api.geekhub.mx/v1/chat/completions \
  -H "Authorization: Bearer $GEEKHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "moonshotai/kimi-k2.7-code",
    "messages": [{"role": "user", "content": "Hola"}]
  }'
Get an API key

Frequently asked questions

What is Kimi K2.7 Code?
MoonshotAI: Kimi K2.7 Code is a coding-focused model in Moonshot AI's Kimi K2 family, built to complete end-to-end programming tasks reliably over long contexts. It uses a native multimodal mixture-of-experts architecture that accepts text and image input, and it always operates in a thinking mode, preserving full reasoning content across multi-turn conversations. With a 256K-token context window, it targets long-horizon coding, agentic task decomposition, and multi-turn dialogue. The model activates 32B parameters out of roughly 1T total. Kimi K2.7 Code runs on the Geek Hub API (OpenAI-compatible). Model id: moonshotai/kimi-k2.7-code.
Is Kimi K2.7 Code free?
No. Input is $0.7303 per 1M tokens and output is $3.7062 per 1M tokens on Geek Hub (markup included).
What is the context length of Kimi K2.7 Code?
Kimi K2.7 Code has a 262k tokens context window. It supports up to 262,144 completion tokens.
Does Kimi K2.7 Code support tool calling and structured outputs?
Kimi K2.7 Code accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
When was Kimi K2.7 Code released?
Kimi K2.7 Code was released on 2026-06-12.

More models from Moonshot