Kimi K3.1 Pro: Call Moonshot's 2.8T Open MoE with Reasoning Effort
Kimi K3.1 Pro is an open-weight 2.8T MoE with 1M-token context. What changed from K3, how reasoning_effort works, and how to call it.
The code in this post comes from the model's docs and hasn't been run in our CI yet. If something breaks, let us know.
Kimi K3.1 Pro is Moonshot AI’s open-weight, natively multimodal agentic model, which the card calls its “most capable 3T-class model to date.” It is the first model in the K3.1 series, post-trained from Kimi K3 with large-scale joint reinforcement learning across hundreds of downstream domains. It has a 1-million-token context window, and the card reports gains in coding, 3D creation, financial research and factual accuracy. If you read our Kimi K3 post, this one covers what is different and how to call the new model.
What’s new versus K3
The card names one architectural change: compared with Kimi K3, the full-attention Gated MLA layers are replaced with Gated DeepSeek Sparse Attention (Gated DSA) layers, “for more efficient long-context modeling.” The rest of the story is post-training.
Key specs
| Architecture | Mixture-of-Experts, 93 layers (1 dense) |
| Total / active parameters | 2.8T / 104B |
| Experts | 896, with 16 selected per token and 2 shared |
| Attention | 69 KDA layers + 24 Gated DSA layers |
| Context length | 1,048,576 tokens |
| Vocabulary | 160K |
| Vision encoder | MoonViT-V2, 401M parameters |
| Quantization | MXFP4 weights / MXFP8 activations (quantization-aware training) |
| Modality | Text, image |
| License | Kimi K3.1 Pro License (other on the Hub) |
Run it
The card gives two routes:
- Hosted API. Moonshot serves the model on its platform under the model name
kimi-k3.1-pro, with OpenAI- and Anthropic-compatible APIs. - Self-hosting. The card recommends vLLM, SGLang and TokenSpeed, and links a recipe or cookbook for each. It does not give launch commands itself, so follow those pages.
The card does not list hardware requirements. With 2.8T total parameters, treat self-hosting as a multi-GPU, data-center job.
Choose a reasoning effort
Thinking effort is set with a top-level reasoning_effort request field. It accepts "low", "high" and "max", and the default is "max". The card’s benchmark numbers use max with temperature = 1.0 and top-p = 0.95 unless noted.
Multi-turn chat with preserved thinking
For multi-turn conversations and tool calls, the card says the model requires the complete assistant message returned by the API to be passed back as-is, including reasoning_content and tool_calls, not just content. This is the card’s own example:
import openai
def chat_with_preserved_thinking(client: openai.OpenAI, model_name: str): messages = [ { "role": "user", "content": "Tell me three random numbers." }, { "role": "assistant", "reasoning_content": "I'll start by listing five numbers: 473, 921, 235, 215, 222, and I'll tell you the first three.", "content": "473, 921, 235" }, { "role": "user", "content": "What are the other two numbers you have in mind?" } ]
response = client.chat.completions.create( model=model_name, messages=messages, stream=False, max_tokens=4096, reasoning_effort="max", ) # the assistant should mention 215 and 222 that appear in the prior reasoning content print(f"response: {response.choices[0].message.reasoning}") return response.choices[0].message.contentThe function expects an openai.OpenAI client and the model name. The card does not show how to construct the client or give the API base URL; get both from the Kimi K3.1 Pro Quickstart. Pass "kimi-k3.1-pro" as model_name for the hosted API.
The quickstart and the Thinking Effort guide also cover vision input, structured output, partial mode, tool choice, dynamic tool loading and context caching. The card does not show code for those, so this post doesn’t either.
What the card’s numbers say
All figures below are the card’s own, and many come from internal or harness-specific setups (see its footnotes). Scores are for K3.1 Pro at max effort.
| Benchmark | K3.1 Pro | Claude Opus 5.5 | DeepSeek-V4.1-Flash-1017 |
|---|---|---|---|
| Terminal-Bench 4.0 | 65.7 | 66.4 | 42.3 |
| SWE Marathon v1.1 | 51.7 | 46.3 | 40.0 |
| GPQA-Diamond | 94.2 | 93.9 | 92.2 |
| Program Bench | 31.5 | 65.0 | 29.1 |
| HLE-Full | 51.1 | 59.8 | 42.6 |
The picture is mixed. K3.1 Pro leads on some benchmarks and trails the closed models on others, such as Program Bench and HLE-Full. The card also reports hallucination rates on an internal Kimi benchmark (lower is better): 5.4 without tools for K3.1 Pro, against 6.8 for Claude Opus 5.5 and 13.1 for DeepSeek-V4.1-Flash-1017. That benchmark is Moonshot’s own, so treat it as a claim to verify on your data.
Gotchas
- Send the whole assistant message back. Dropping
reasoning_contentortool_callsfrom earlier turns breaks the card’s stated requirement for multi-turn and tool use. maxis the default. If you don’t setreasoning_effort, you getmax. For simple tasks, testloworhigh. The card doesn’t give latency or cost comparisons between levels.- License. It is released under the Kimi K3.1 Pro License, not a standard open-source license. Read the LICENSE file before commercial use.
- Benchmark comparisons are not like-for-like. The card’s footnotes show different harnesses, such as Claude Code and Kimi Code, and some scores taken from other published reports.
- Hardware is unstated. Plan for a large deployment if you self-host.
When to pick it
Pick K3.1 Pro if you want open weights for long-context agent and coding work and have either the infrastructure to serve a 2.8T MoE or are fine using Moonshot’s hosted API. The adjustable reasoning_effort is useful for mixing quick and hard tasks.
Skip it if you need a model you can run on a single GPU, or if your task resembles the benchmarks where the card shows it trailing. If K3 already works for you, test K3.1 Pro on your own prompts before switching, since the card’s gains come from Moonshot’s evaluations rather than yours.
Related
Inkling 2 Small: 594B MoE, 17B Active, 1M-Token Context
Thinking Machines' Apache-2.0 multimodal MoE: what the card says about hardware, serving options, benchmarks and limits.
thinkingmachines/Inkling-2-Small
Run Kimi K3: Moonshot's 2.8T Open MoE for Agents and Coding
Kimi K3 is a 2.8T-parameter open-weight multimodal MoE with a 1M-token context. What the model card says and how to call it.
moonshotai/Kimi-K3
DeepSeek-V4.1-Flash: a 1M-context multimodal MoE built for agent work
DeepSeek's 552B MoE activates 8B params on prefill and stores 890 bytes of KV cache per token. What the card says and how to start running it.
deepseek-ai/DeepSeek-V4.1-Flash