Kimi K2.7 Code (batch)
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.
moonshotai/kimi-k2.7-code:batch
- Context
- 262k tokens
- Completion cap
- —
- 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:batch",
"messages": [{"role": "user", "content": "Hola"}]
}'Get an API keyFrequently asked questions
- What is Kimi K2.7 Code (batch)?
- 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 (batch) runs on the Geek Hub API (OpenAI-compatible). Model id: moonshotai/kimi-k2.7-code:batch.
- Is Kimi K2.7 Code (batch) free?
- No. Input is $1.0356 per 1M tokens and output is $4.3602 per 1M tokens on Geek Hub (markup included).
- What is the context length of Kimi K2.7 Code (batch)?
- Kimi K2.7 Code (batch) has a 262k tokens context window.
- Does Kimi K2.7 Code (batch) support tool calling and structured outputs?
- Kimi K2.7 Code (batch) 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 (batch) released?
- Kimi K2.7 Code (batch) was released on 2026-06-12.
More models from Moonshot
Kimi K2 0711Kimi K2 Instruct is a large-scale Mixture-of-Experts (MoE) language model developed by Moonshot AI, featuring 1 trillion total parameters with 32 billion active per forward pass. I
Kimi K2 0905Kimi K2 0905 is the September update of [Kimi K2 0711](moonshotai/kimi-k2). It is a large-scale Mixture-of-Experts (MoE) language model developed by Moonshot AI, featuring 1 trilli
Kimi K2 ThinkingKimi K2 Thinking is Moonshot AI’s most advanced open reasoning model to date, extending the K2 series into agentic, long-horizon reasoning. Built on the trillion-parameter Mixture-
Kimi K2.5Kimi K2.5 is Moonshot AI's native multimodal model, delivering state-of-the-art visual coding capability and a self-directed agent swarm paradigm. Built on Kimi K2 with continued p
Kimi K2.6Kimi K2.6 is Moonshot AI's next-generation multimodal model, designed for long-horizon coding, coding-driven UI/UX generation, and multi-agent orchestration. It handles complex end
Kimi K2.7 CodeMoonshotAI: 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 m