Kimi K3.1 Pro (2026): Specs, Pricing and API Code
Unicorn API Team · · 9 min read
Kimi K3.1 is Moonshot AI’s follow-up to Kimi K3, and its first release, Kimi K3.1 Pro, is the company’s most capable open-weight model so far. It is a post-trained version of K3 with a 1-million-token context window, text and image input, and an API that speaks the familiar OpenAI chat format. This guide covers what the model is, what changed from K3, what it costs per request, how to call it with working code, and where it fits next to the other frontier models you might be weighing.
What is Kimi K3.1?
Moonshot AI is a Beijing-based lab, often grouped with China’s “AI tigers”, that publishes the Kimi family of large language models. Kimi K3 arrived in July 2026 as a very large open-weight model built for long-horizon coding, research and visual reasoning. “Open-weight” means the trained parameters are downloadable, so anyone with enough hardware can run, inspect or fine-tune the model, unlike closed models that only exist behind a vendor’s API.
Kimi K3.1 is the next step in that line. Moonshot released Kimi K3.1 Pro in late October 2026 as the first model of the K3.1 series. It is not a new architecture. It takes the K3 base and applies further post-training, the stage where a pretrained model is tuned with curated examples and reinforcement learning to reason better, follow instructions more reliably and use tools. Moonshot describes it as its strongest model to date at the 3-trillion-parameter scale.
In practice that means you get the same footprint and context length as K3, with behaviour aimed more squarely at agents: multi-step tasks, function calling and long coding sessions. It became available on Unicorn API on 6 November 2026 under the model id kimi-k3-1-pro.

Kimi K3.1 Pro specs: parameters, context and modalities
Public write-ups disagree slightly on the headline number. Some call the model “3T-class”, others give the precise figure of about 2.8 trillion parameters. Both describe the same thing: the total parameter count of a mixture-of-experts model.
What mixture-of-experts means here
A mixture-of-experts (MoE) model splits its layers into many smaller sub-networks called experts. For each token, a router picks a handful of experts to run, and the rest stay idle. Because Kimi K3.1 Pro is a post-trained K3, it shares that design: roughly 104 billion parameters are active per token out of about 2.8 trillion total. You get the knowledge capacity of a huge model, while the compute per token is closer to that of a model around 100 billion parameters. The catch is memory: all 2.8 trillion parameters still have to be loaded somewhere, which is why self-hosting is a serious hardware project.
| Spec | Kimi K3.1 Pro |
|---|---|
| Developer | Moonshot AI |
| Released | October 2026 (on Unicorn API since 6 November 2026) |
| Architecture | Mixture-of-experts, post-trained from Kimi K3 |
| Total parameters | About 2.8 trillion (“3T-class”) |
| Active parameters per token | About 104 billion |
| Context window | 1 million tokens |
| Input | Text and images (native vision) |
| Output | Text, including tool calls and structured JSON |
| Weights | Open, downloadable |
What a 1M-token context buys you
The context window is the amount of text, measured in tokens (word fragments, roughly three quarters of an English word each), that the model can consider in one request. A million tokens is enough for a mid-sized codebase, a stack of contracts or several long reports at once. That lets you skip a retrieval pipeline for some jobs and simply paste the material in. It is not free, though: you pay for every input token on every call, so long contexts reward caching, which we cover in the pricing section.
Kimi K3.1 vs Kimi K3: what changed
If you already use Kimi K3, the short answer is that Kimi K3.1 Pro is the same model with more training on top. The parameter count, MoE layout, vision support and context length carry over. What changes is behaviour:
- Reasoning and multi-step work. The extra post-training targets harder reasoning and longer chains of actions, the kind of work coding agents and research assistants do.
- Tool use. Agent workloads depend on calling functions with correct arguments and recovering from errors. That is where the K3.1 training was focused.
- Request controls. On Unicorn API the model accepts a
reasoning_effortfield alongside the usual chat parameters, so you can trade answer depth against latency and output tokens. Accepted values are listed in the API documentation.
On independent benchmarks it is a strong open model rather than the overall leader. On Humanity’s Last Exam, a deliberately hard reasoning test, published results put Kimi K3.1 Pro at 37.3, ahead of Tencent Hy4 at 32.7 but well behind closed models such as Gemini 4 Carbon at 69.1 and GPT-6 Astra at 63.8. Read that as a calibration point: it is very capable, especially for an open-weight release, and it is not a drop-in replacement for the top closed models on the hardest reasoning tasks.
Should you switch from K3? For new work, yes: there is no architectural reason to prefer the older checkpoint. For a production system tuned around K3’s quirks, run your own evaluation set through both before moving traffic, because post-training changes tone, verbosity and how the model formats tool calls.
How much does Kimi K3.1 cost on the API?
On Unicorn API, usage is billed in credits. Monthly plans give you credits at $0.01 each (Starter $25, Creator $50, Studio $100, Pro $200 per month), and top-ups cost $0.015 per credit and never expire. Kimi K3.1 Pro is priced per million tokens:
| Token type | Credits per 1M | On a plan ($0.01/credit) | Top-up ($0.015/credit) |
|---|---|---|---|
| Input | 160 | $1.60 | $2.40 |
| Output | 800 | $8.00 | $12.00 |
| Cached input | 16 | $0.16 | $0.24 |
The exact cost of each request is debited from the token usage the model reports, so you never pay for a fixed bucket you did not use. If you want a number before running something, the POST /v1/models/price endpoint returns the price up front. Full plan details are on the pricing page.
Worked example: a long-context review
Say you paste a 200,000-token codebase and ask for a 4,000-token review.
- Input: 0.2M × 160 = 32 credits
- Output: 0.004M × 800 = 3.2 credits
- Total: 35.2 credits, about $0.35 on a plan
Now ask a follow-up question against the same codebase. If those 200,000 tokens are served from cache, the input part drops to 0.2M × 16 = 3.2 credits, and the whole call costs about 6.4 credits. That is the main lever with a 1M-token context: keep the large, stable part of the prompt identical at the start of every request so it can be cached, and put the changing question at the end.
Worked example: a daily coding agent
An agent making 500 calls a day, each with 30,000 input tokens and 2,000 output tokens, uses 15M input and 1M output tokens. That is 2,400 + 800 = 3,200 credits, about $32 a day before caching. Agents resend a lot of history, so caching often cuts this substantially.

How to call the Kimi K3.1 API (with code)
Kimi K3.1 Pro runs through the OpenAI-compatible endpoint POST /v1/chat/completions. Create a key on the API keys page, export it as UNICORN_API_KEY, and you are ready. If you would rather try prompts first, the browser playground runs the same model without code.
curl
curl https://api.unicornapi.net/v1/chat/completions \
-H "Authorization: Bearer $UNICORN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k3-1-pro",
"messages": [
{"role": "system", "content": "You are a concise senior code reviewer."},
{"role": "user", "content": "Explain what a race condition is in two sentences."}
],
"max_tokens": 300,
"temperature": 0.3
}'
The response follows the OpenAI shape: the text is in choices[0].message.content, and the token counts you are billed for are in usage.
Python with the OpenAI SDK
Because the endpoint is OpenAI-compatible, the official SDK works by pointing it at a different base URL.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.unicornapi.net/v1",
api_key=os.environ["UNICORN_API_KEY"],
)
with open("service.py") as f:
source = f.read()
response = client.chat.completions.create(
model="kimi-k3-1-pro",
messages=[
{"role": "system", "content": "You review Python code for bugs and risky patterns."},
{"role": "user", "content": f"Review this file:\n\n{source}"},
],
max_tokens=2000,
temperature=0.2,
)
print(response.choices[0].message.content)
print("Tokens:", response.usage.prompt_tokens, "in /", response.usage.completion_tokens, "out")
JavaScript with tool calling
Tool calling lets the model ask your code to run a function. You describe the function in tools, the model replies with a structured call, you run it and send the result back.
const res = await fetch("https://api.unicornapi.net/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.UNICORN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "kimi-k3-1-pro",
messages: [{ role: "user", content: "What's the open issue count for repo acme/api?" }],
tools: [{
type: "function",
function: {
name: "get_open_issues",
description: "Return the number of open issues for a GitHub repository",
parameters: {
type: "object",
properties: { repo: { type: "string", description: "owner/name" } },
required: ["repo"],
},
},
}],
tool_choice: "auto",
max_tokens: 500,
}),
});
const data = await res.json();
const msg = data.choices[0].message;
if (msg.tool_calls) {
const call = msg.tool_calls[0];
console.log("Model wants:", call.function.name, JSON.parse(call.function.arguments));
} else {
console.log(msg.content);
}
Add "stream": true to receive tokens as they are generated, and response_format when you need JSON output. If you work inside Cursor, Claude Code or a similar agent, you can wire the same key in through MCP; see using Unicorn API from agents.
Kimi K3.1 Pro vs Claude Opus 5.5, Gemini 4 Hydrogen and DeepSeek V4.1 Flash
One practical advantage of a single API is that switching models is a one-word change to the model field. Here is how Kimi K3.1 Pro’s pricing compares with other chat models released in the same weeks:
| Model | Input (credits/1M) | Output (credits/1M) | Cached input (credits/1M) | Weights |
|---|---|---|---|---|
| Claude Opus 5.5 (Anthropic) | 320 | 1,600 | 32 | Closed |
| Kimi K3.1 Pro (Moonshot) | 160 | 800 | 16 | Open |
| Gemini 4 Hydrogen (Google) | 120 | 600 | n/a | Closed |
| DeepSeek V4.1 Flash (DeepSeek) | 24 | 95 | 0.5 | See model page |
Gemini 4 Hydrogen OpenAI is listed as a separate id at the same price as Gemini 4 Hydrogen; check its page for how it differs.
A few ways to read the table:
- Against Claude Opus 5.5, Kimi K3.1 Pro costs half as much per token in every column. If an open model passes your quality bar for a task, that halves the bill.
- Against Gemini 4 Hydrogen, Kimi is somewhat more expensive per token but offers cached-input pricing on Unicorn API, which can make it cheaper for repeated long contexts.
- Against DeepSeek V4.1 Flash, Kimi costs several times more. Flash models suit high-volume, simpler work like classification, extraction or first-pass summaries; route only the hard calls to the bigger model.
A common pattern is routing: send routine requests to a cheap model and escalate to Kimi K3.1 Pro or Opus 5.5 when a task needs deeper reasoning. Browse the full model catalog for other options.
Self-hosting the open weights vs using an API
Open weights tempt teams to run Kimi K3.1 themselves. Sometimes that is right. Usually it is not, at least at first.
When self-hosting makes sense
- Data must never leave your infrastructure for legal or contractual reasons.
- You need to fine-tune the weights, not just prompt them.
- You run sustained, very high volume and already operate a multi-GPU cluster.
When an API is the better call
- You are prototyping or your traffic is uneven. An idle cluster big enough to hold about 2.8 trillion parameters is expensive whether or not anyone calls it.
- You want to compare models. With one key you can test Kimi K3.1 Pro against Opus 5.5 or Gemini 4 Hydrogen in an afternoon.
- You do not want to run inference software, quantisation and scaling yourself.
The two are not mutually exclusive. Many teams build on an API, measure real usage, then decide whether hosting pays off. For a deeper look at free and local options, see Is Kimi K3 free?
Common mistakes with Kimi K3.1
- Filling the context because you can. A 1M-token window is a ceiling, not a target. Every input token is billed, and models can miss details buried in huge prompts. Send what the task needs.
- Breaking the cache. Putting a timestamp or user question at the top of a long prompt changes the prefix and forfeits the 16-credit cached rate. Keep stable material first.
- Forgetting
max_tokens. Output is five times the price of input. Set a sensible limit, especially with higherreasoning_effort, where the model writes more. - Assuming K3 prompts transfer unchanged. Post-training shifts formatting and verbosity. Re-run your evaluation prompts when you move to Kimi K3.1.
- Expecting video or images out. The model reads images but writes text only. For media, pair it with a generation model: Kimi writes the prompt, a video or image model renders it.
- Skipping your own tests on sensitive topics. Moonshot is a Chinese lab, and behaviour on political subjects can differ from Western models. If that matters for your product, test it directly.
Kimi K3.1 Pro is one of the strongest open-weight models available, with a context window large enough to change how you design long-document and coding workflows. The quickest way to judge it for your own work is to run your real prompts through it, check the reported usage, and compare it side by side with a cheaper and a more expensive model on the same key.
Frequently asked questions
Can Kimi K3 create videos?
No. Kimi K3 and Kimi K3.1 Pro are language models: they read text and images and write text. They can draft a video script, a shot list or a prompt for a video model, but they do not render video. To produce the clip you send that prompt to a dedicated video generation model, which you can call with the same Unicorn API key from the model catalog.
Is Kimi K3 censored?
Moonshot AI is a Chinese company, and its hosted products follow Chinese content rules, so some political topics get refusals or guarded answers there. The open weights give you more control because you choose the hosting and the system prompt, but post-training shapes behaviour too. If your use case touches sensitive subjects, test the model with your own prompts before you rely on it.
Is there a free version of Kimi K3?
The weights are free to download under Moonshot's licence, but a model of roughly 2.8 trillion parameters needs a multi-GPU server, so running it yourself is free only if you already own that hardware. Moonshot's consumer app has offered free use with limits. For API access you pay per token; on Unicorn API, Kimi K3.1 Pro costs 160 credits per million input tokens.
What's special about Kimi K3?
Three things: scale, openness and context. Kimi K3 is a mixture-of-experts model of about 2.8 trillion parameters that activates around 104 billion per token, it is released with open weights, and it reads up to 1 million tokens at once, including images. Kimi K3.1 Pro keeps all of that and adds further post-training for stronger reasoning and agent work.
What is the difference between Kimi K3 and Kimi K3.1 Pro?
Kimi K3.1 Pro is a post-trained version of Kimi K3, not a new architecture. It keeps the same mixture-of-experts design, parameter count and 1-million-token context window, but receives additional training aimed at reasoning, coding and tool use. Moonshot calls it its most capable open-weight model so far and the first release in the K3.1 series. For new projects, start with K3.1 Pro.