On July 11, 2025, Beijing-based Moonshot AI open-sourced Kimi K2, a mixture-of-experts (MoE) language model with 1 trillion total parameters and 32 billion active per token. Unlike most open releases of the time, Kimi K2 was tuned first for agentic work, meaning tool calling, multi-step coding and autonomous problem-solving, rather than for chat alone. It became one of the largest open-weight models available and put an open model close to proprietary systems on agentic coding benchmarks, according to Moonshot's own results.
Key Facts#
- Release: July 11, 2025, with weights, a model card and deployment guides on GitHub and Hugging Face. A full technical report followed later in July.
- Architecture: 1T total parameters and 32B activated, with 384 experts (8 selected per token plus 1 shared expert), 61 layers, multi-head latent attention (MLA) and a 128K-token context window.
- Training: pretrained on 15.5 trillion tokens with MuonClip, Moonshot's extension of the Muon optimizer, which the company says produced "zero training instability" at this scale.
- Variants: Kimi-K2-Base for fine-tuning and research, and Kimi-K2-Instruct for chat and agents, which Moonshot calls "a reflex-grade model without long thinking."
- License: a modified MIT license. Commercial products with more than 100 million monthly active users or more than $20 million in monthly revenue must display "Kimi K2" in their user interface.
- Coding claim: 65.8 percent pass@1 on SWE-bench Verified with bash and editor tools in a single attempt, according to Moonshot.
- Access: an OpenAI- and Anthropic-compatible API on Moonshot's platform, plus self-hosting through vLLM, SGLang, KTransformers or TensorRT-LLM.
What Happened#
Moonshot published Kimi K2 as two checkpoints in block-FP8 format. The Base model targets researchers and teams that want to fine-tune. The Instruct model is the one most developers will use: it answers directly, without the long reasoning traces of "thinking" models, which keeps latency and token costs down in agent loops that make many calls.
Moonshot's benchmark table compared Kimi-K2-Instruct with DeepSeek-V3-0324, Qwen3-235B-A22B in non-thinking mode, Claude Sonnet 4 and Claude Opus 4 without extended thinking, GPT-4.1 and Gemini 2.5 Flash. The strongest claims were in agentic coding. Besides the 65.8 percent single-attempt SWE-bench Verified score, Moonshot reported 47.3 percent on SWE-bench Multilingual, and 71.6 percent on SWE-bench Verified when using parallel test-time compute with an internal scoring model to pick the best patch. It also reported 53.7 percent on LiveCodeBench v6 and 97.4 percent on MATH-500. These are vendor-reported numbers.
For tool use, the model card describes a simple contract: pass the list of tools with every request and let the model decide when to call them. The published example loops until the model stops returning tool calls. Moonshot recommends a temperature of 0.6 for the Instruct model, and its Anthropic-compatible API scales the requested temperature by 0.6 so that existing applications behave sensibly.
Background#
Moonshot AI was best known in China for its Kimi chatbot. Kimi K2 followed a wave of Chinese open-weight releases in the first half of 2025, including DeepSeek-R1 in January and Alibaba's Qwen3 in April. Architecturally, K2 uses multi-head latent attention, the same attention design as DeepSeek-V3, together with a large pool of fine-grained experts, and scales the total parameter count to 1 trillion.
The most distinctive engineering claim concerns training stability. Moonshot's earlier Moonlight project had argued that the Muon optimizer scales to LLM training, and the company says it developed MuonClip to fix the instabilities that appeared when scaling Muon to a trillion-parameter run. If that holds up in independent work, it matters for everyone who trains large models, not only for Moonshot.
Why It Matters for Developers#
Kimi K2 showed that an open model can be designed around the agent loop rather than the chat window. For teams building agents with Microsoft Agent Framework or Semantic Kernel, that means a credible open-weight option for tool-heavy workloads, either through a hosted API or on your own GPU cluster.
Because the API is OpenAI-compatible, .NET code can use the official OpenAI library and Microsoft.Extensions.AI unchanged. Only the endpoint, key and model name differ, so keep them in configuration:
using System.ClientModel;
using System.ComponentModel;
using Microsoft.Extensions.AI;
using OpenAI;
// Any OpenAI-compatible K2 endpoint: Moonshot's platform, a vendor or your own vLLM/SGLang.
var endpoint = new Uri(Environment.GetEnvironmentVariable("K2_ENDPOINT")!);
var apiKey = Environment.GetEnvironmentVariable("K2_API_KEY")!;
var model = Environment.GetEnvironmentVariable("K2_MODEL")!;
IChatClient client = new ChatClientBuilder(
new OpenAI.Chat.ChatClient(model, new ApiKeyCredential(apiKey),
new OpenAIClientOptions { Endpoint = endpoint }).AsIChatClient())
.UseFunctionInvocation()
.Build();
var options = new ChatOptions
{
Temperature = 0.6f, // Moonshot's recommended setting for Kimi-K2-Instruct
Tools = [AIFunctionFactory.Create(GetOpenIncidents)],
};
var response = await client.GetResponseAsync(
"Summarize today's open P1 incidents and suggest an owner for each.", options);
Console.WriteLine(response.Text);
[Description("Returns open incidents with the given priority, such as P1.")]
static string[] GetOpenIncidents(string priority) =>
["INC-1042: checkout latency", "INC-1043: login errors"];The harder lesson came after launch. Moonshot later released K2 Vendor Verifier, a project that measures tool-calling accuracy across the many providers that host K2. The company said it had seen "significant differences" in tool-call behavior between vendors and open-source serving stacks, and warned that users who pick providers on price and latency may overlook accuracy. The same model can behave differently depending on who serves it, because quantization, chat templates and parsers all affect tool calls. Before you switch providers, run a tool-calling regression suite. Our function-calling guide covers how to structure one.
Finally, check the license terms. The modified MIT license is permissive for almost everyone, but very large consumer products must credit Kimi K2 in the user interface. Self-hosting a 1T-parameter model also needs a multi-GPU cluster, so most teams will start with an API and move in-house only if volume justifies it.
What's Next#
Moonshot kept building on the K2 base. By November 2025, its vendor verifier was testing a "kimi-k2-thinking" model. In January 2026, the company released Kimi K2.5, which it describes as a native multimodal agentic model created by continued pretraining on about 15 trillion mixed visual and text tokens on top of Kimi-K2-Base. K2.5 keeps the 1T/32B design, extends context to 256K tokens and adds an "agent swarm" mode that splits tasks across parallel sub-agents.
The open question from the K2 launch, whether open models can stay competitive on agentic benchmarks rather than only on chat, has become central to model selection. For patterns that make agents robust regardless of the model underneath, see our guide to AI agent architecture.