Kimi K2.7-Code: Open-Source Coding Model with Better Token Efficiency

Moonshot AI has released Kimi K2.7-Code, an open-source coding model available on Hugging Face under the moonshotai/Kimi-K2.7-Code namespace. The model is tagged as image-text-to-text and uses the Transformers library. It positions itself as a token-efficient alternative for code generation and understanding tasks.
Key Features
- Inference providers: Novita offers the model with live status, tool calling support (
toolCalling: true), and structured output currently unavailable. Throughput measured at 36.1 tokens/second. - Model architecture: The model comes in 64 shards (safetensors format:
model-00001-of-000064.safetensors). - Token efficiency: The model uses a custom chat template that preserves reasoning content (
preserve_thinking: true) and optimizes token usage by separating history and suffix messages. The template includes special tokens like<|im_user|>,<|im_assistant|>, and<|im_system|>for role management, and<think>/</think>blocks to encapsulate chain-of-thought reasoning. - Tool calling: Native support for tool calls with structured argument formatting, using
<|tool_call_begin|>and<|tool_call_end|>markers. - Community engagement: 334 likes on Hugging Face, with 4 HN comments and 41 points as of publication.
Practical Implications
The template design explicitly avoids embedding reasoning tokens in history when preserve_thinking is false, reducing context overhead. For developers using AI coding agents, this means lower token consumption per interaction — especially beneficial for long agentic loops where reasoning chains are repeated. The tool calling format is JSON-aligned, making it straightforward to integrate with existing function-calling pipelines.
The model is available for immediate use via Novita, and the Hugging Face repository includes full tokenizer config and template source.
📖 Read the full source: HN AI Agents
👀 See Also

Reddit user compares Claude Sonnet 4.6 and GPT-5 on 10 blogging tasks
A Reddit user tested Claude Sonnet 4.6 against GPT-5 using identical prompts for 10 common blogging tasks, finding the editing time difference to be the most useful metric.

CEOs Who Think AI Replaces Their Employees Are Just Bad CEOs
CEO Aaron Levie explains 'AI psychosis' — when leaders, detached from real work, see happy-path demos and overestimate agentic tools like Claude Code, ignoring the last mile of production.

Anthropic ships 1M context window for Claude Opus at no extra cost
Anthropic has made the 1M token context window available to all Claude Code users on Max, Team, and Enterprise plans in version 2.1.75, removing the previous extra usage fee. The default window remains 200k tokens.

AI Inference Is Obviously Profitable: Breaking Down the Economics
Frontier AI inference providers report 70-80% gross margins. Cost estimates show ~$1 per million tokens to serve a 70B model, while API pricing is $4.50+ per million tokens.