Moonshot AI · kimi-k3.1-pro
Kimi K3.1 Pro API
The first Kimi K3.1 series model, with 1M context. Moonshot says it improves on K3 in coding, 3D creation, financial research and long-horizon agents, and it costs about a third less. On AnyAIGC it costs about 40% of the official price.
kimi-k3.1-pro input $0.8100 per 1M tokens, output $4.0500 per 1M tokens, cache hit $0.0810. Works with the OpenAI-compatible API and in Claude Code.
- Model ID kimi-k3.1-pro
- Context 1M tokens
- Input $0.8100 / 1M
- Concurrency Unlimited
- Business Self-service invoices
The first K3.1 model, with heavier post-training
Moonshot AI says Kimi K3.1 Pro is the first model in the new K3.1 series and its strongest 3T-class open-weight model so far. Moonshot describes it as a post-trained version of Kimi K3, built with much more post-training compute and joint reinforcement learning across hundreds of downstream domains.
Moonshot reports gains in four areas: long-horizon coding (Unity, Unreal Engine and Godot support, plus more complete layout, typography and animation in front-end and Three.js work), 3D creation (Blender and CAD scripts for parametric modeling), financial research (64.4 on OfficeQA Pro v2), and a lower hallucination rate. It has a 1,048,576-token context, thinking is always on, and it accepts text, image and video input.
On AnyAIGC, kimi-k3.1-pro runs on the OpenAI-compatible /v1/chat/completions endpoint with the same parameter constraints as K3, so migrating from K3 only means changing the model name. It also works directly in Claude Code, with unlimited concurrency.
- Context window
- 1,048,576Max input tokens
- Max output
- 131,072Default, can be set up to 1,048,576
- Parameters
- 3T-classPost-trained from Kimi K3
- Input
- Text, images, videoNative vision
- Thinking
- Always onreasoning_effort: low / high / max
- Weights
- Coming soonMoonshot says by November 4
What Kimi K3.1 Pro can do
- 01
Long-horizon coding
Moonshot reports 61.2 on Kimi Code Bench 3.0 for long-horizon coding (K3: 55.95), 51.7 on SWE Marathon v1.1 and 65.7 on Terminal-Bench 4.0.
- 02
Games and 3D front end
Covers Unity, Unreal Engine, Godot and Three.js. Moonshot says its front-end output is better in layout, typography, animation and completeness.
- 03
3D creation and CAD
Handles parametric modeling and can write Blender and CAD scripts directly, without an MCP connector. Moonshot reports 92.7 on BenchCAD (with tools).
- 04
Financial research
In Moonshot's internal evals, financial research rose from 58.8 to 70.4 and financial modeling from 50.4 to 57.6. OfficeQA Pro v2 is 64.4.
- 05
Fewer hallucinations
Moonshot says the per-claim hallucination rate fell from 23.4% on K3 to 8.3%, and the share of answers with a factual error fell to 42.4% of K3's.
- 06
Long-horizon agents
Moonshot reports 92.1 on BrowseComp, 70.0 on HLE-Full (with tools) and 73.3 on Automation Bench-AA. AnyAIGC does not cap concurrency, so many agents can run at once.
Kimi K3.1 Pro API pricing
Pay per token at fixed rates, with no subscription or monthly fee. Input, output and cache hits all cost about 40% of Moonshot's official USD prices, and about a third less than K3.
- Per tokenInput, output and cache priced separately
- About 60% offvs Moonshot official USD prices
- Unlimited concurrencyOn by default for every user
- USDOne balance for 300+ models
| Item | Model | AnyAIGC | Moonshot official | Savings |
|---|---|---|---|---|
| Inputper 1M tokens | kimi-k3.1-pro | $0.8100 | $2.00 | 60% |
| Outputper 1M tokens, incl. thinking | kimi-k3.1-pro | $4.0500 | $10.00 | 60% |
| Cache hitper 1M tokens | kimi-k3.1-pro | $0.0810 | $0.20 | 60% |
Prices are in USD and billed on the tokens you actually use. Output includes thinking tokens, and repeated prompt prefixes are billed at the cache-hit rate automatically. Official prices come from the Kimi platform pricing page (USD). The table shows the lowest price in the model catalog; see the AnyAIGC model catalog for live pricing.
Cost examples
Estimates for common workloads. The struck-through figure is the same usage at Moonshot official prices.
-
20 agent coding turns
Each turn: 50K cache-hit tokens + 5,000 input + 3,000 output
$0.405
Official
$1.00 -
Analyze 500K tokens of financial reports
500K input tokens + 5,000 output
$0.425
Official
$1.05 -
1M input + 1M output
1M input tokens + 1M output tokens
$4.86
Official
$12.00
Kimi K3.1 Pro official benchmarks
Scores Moonshot AI published in the K3.1 Pro technical blog (max reasoning effort), alongside the other models it compared against.
K3.1 Pro vs K3 · Moonshot evals
| Benchmark | K3.1 Pro | Claude Opus 5.5 | GPT-6 Astra |
|---|---|---|---|
| Terminal-Bench 4.0Terminal coding | 65.7 | 66.4 | 58.2 |
| SWE Marathon v1.1Long-horizon software engineering | 51.7 | 46.3 | 42.5 |
| DeepSWE v1.1Software engineering | 75.5 | 74.2 | 74.1 |
| Kimi Code Bench 3.0Long-horizon coding, internal | 61.2 | 58.5 | 66.5 |
| BenchCADCAD modeling, with tools | 92.7 | 96.2 | 95.9 |
| HLE-FullGeneral reasoning, with tools | 70.0 | 67.7 | 57.2 |
| BrowseCompWeb browsing agent | 92.1 | 90.8 | 91.5 |
| OSWorld V2.1Computer use | 79.6 | 81.8 | 75.8 |
| OfficeQA Pro v2Office and finance QA | 64.4 | 62.2 | 54.4 |
| Frontier FinanceFinance | 58.6 | 56.7 | 45.0 |
| Automation Bench-AAAutomation agent | 73.3 | 69.5 | 68.5 |
| GDPval-AA v2.1Knowledge work, Elo | 1846 | 1866 | 1573 |
| GPQA-DiamondScience reasoning | 94.2 | 93.9 | 96.1 |
| MMMU-ProMultimodal understanding | 84.1 | 87.7 | 86.9 |
Source: the Kimi K3.1 Pro technical blog. Scores are Moonshot AI's published results at max reasoning effort; most coding scores use Claude Code as the harness. K3 comparison figures come from Moonshot's internal evals.
Kimi K3.1 Pro vs K3 vs K2.7 Code
For new projects, start with K3.1 Pro: it is newer and cheaper than K3. For high-volume, budget-sensitive coding, use K2.7 Code.
| Spec | K3.1 Pro | K3 | K2.7 Code |
|---|---|---|---|
| Role | Latest flagship | Previous flagship | Coding agent |
| Parameters | 3T-class | 2.8T | 1T |
| Context | 1M | 1M | 256K |
| Input | Text, images, video | Text, images | Text, images |
| AnyAIGC inputper 1M tokens | $0.8100 | $1.2150 | $0.3847 |
| AnyAIGC outputper 1M tokens | $4.0500 | $6.0750 | $1.5980 |
| Cache hitper 1M tokens | $0.0810 | $0.1215 | $0.0770 |
Specs come from Moonshot AI's public materials. Prices are current AnyAIGC prices; see the model catalog for live pricing. More on the Kimi K3 API and Kimi K2.7 Code API.
Where Kimi K3.1 Pro fits
- 01 · Long-horizon coding
Large repos and game development
Load the whole codebase into 1M context for cross-module refactors and migrations, or keep iterating on Unity, Godot and Three.js projects.
- 02 · Financial research
Reports, valuation and sector research
Load full annual reports, prospectuses and research notes into context to extract data, build financial models and write up findings. Reused material is billed at the cache-hit rate.
- 03 · 3D creation
Parametric modeling and CAD scripts
Describe a part or a scene, have the model write Blender or CAD scripts, then refine them against rendered screenshots.
- 04 · Agents
Long-running autonomous tasks
Run tasks with dozens or hundreds of steps in Claude Code or your own agent. A lower hallucination rate means fewer errors over long chains. AnyAIGC does not cap concurrency.
Connect to the Kimi K3.1 Pro API in three steps
- Sign up and add credit: create an account at anyaigc.ai. Top up from $1; your balance works across every model on the platform.
- Create an API key: create a key in the console, copy the value that starts with
sk-, and store it in theANYAIGC_API_KEYenvironment variable. - Send a request: call
POST https://anyaigc.ai/v1/chat/completionswithmodelset tokimi-k3.1-proand anAuthorization: Bearerheader. With the OpenAI SDK, just setbase_urltohttps://anyaigc.ai/v1.
curl https://anyaigc.ai/v1/chat/completions \
-H "Authorization: Bearer $ANYAIGC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k3.1-pro",
"messages": [
{"role": "user", "content": "Explain what a MoE model is in three sentences."}
]
}'
import os
from openai import OpenAI
client = OpenAI(
base_url="https://anyaigc.ai/v1",
api_key=os.environ["ANYAIGC_API_KEY"],
)
resp = client.chat.completions.create(
model="kimi-k3.1-pro",
messages=[
{"role": "system", "content": "You are a senior financial analyst. Cite the data source for every conclusion."},
{"role": "user", "content": "Compare how the gross margins of two companies changed over the last three years, and explain why."},
],
)
msg = resp.choices[0].message
print(getattr(msg, "reasoning_content", None)) # reasoning trace, if any
print(msg.content)
print(resp.usage)
import os
from openai import OpenAI
client = OpenAI(base_url="https://anyaigc.ai/v1", api_key=os.environ["ANYAIGC_API_KEY"])
# The K3 series always thinks; reasoning_effort sets the depth: low / high / max (default max)
resp = client.chat.completions.create(
model="kimi-k3.1-pro",
reasoning_effort="low",
messages=[{"role": "user", "content": "Rewrite this SQL to use window functions: SELECT ..."}],
)
print(resp.choices[0].message.content)
import os
from openai import OpenAI
client = OpenAI(base_url="https://anyaigc.ai/v1", api_key=os.environ["ANYAIGC_API_KEY"])
stream = client.chat.completions.create(
model="kimi-k3.1-pro",
messages=[{"role": "user", "content": "Explain why the sky is blue."}],
stream=True,
)
for chunk in stream:
if not chunk.choices:
continue
delta = chunk.choices[0].delta
# reasoning_content deltas arrive first, then the final answer in content
reasoning = getattr(delta, "reasoning_content", None)
if reasoning:
print(reasoning, end="", flush=True)
if delta.content:
print(delta.content, end="", flush=True)
print()
Tip: K3.1 Pro always thinks, and the reasoning comes back in reasoning_content. Sampling parameters such as temperature and top_p are fixed by Moonshot, so do not send them. In multi-turn chats and tool calls, send the full assistant message from the API (including reasoning_content and tool_calls) back in the next request unchanged.
See the Chat Completions reference for every parameter. Replace the model name in the docs examples with the Kimi model ID you want.
Use Kimi K3.1 Pro in Claude Code
Switch Claude Code to Kimi K3.1 Pro: 1M context, and Moonshot ran most of its coding benchmarks with Claude Code as the harness.
- Install Claude Code: use the official installer (for example
npm install -g @anthropic-ai/claude-code). - Add the config: edit
~/.claude/settings.json, add the env block below, and replaceANTHROPIC_AUTH_TOKENwith the key you created on AnyAIGC. - Start coding: run
claudein your project folder. Type/modelto confirm the current model iskimi-k3.1-pro.
{
"env": {
"ANTHROPIC_BASE_URL": "https://anyaigc.ai",
"ANTHROPIC_AUTH_TOKEN": "sk-your-API-key",
"ANTHROPIC_MODEL": "kimi-k3.1-pro",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "kimi-k3.1-pro",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "kimi-k3.1-pro",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "kimi-k3.1-pro",
"API_TIMEOUT_MS": "300000"
}
}
Save on side tasks: set ANTHROPIC_DEFAULT_HAIKU_MODEL to kimi-k2.7-code so Claude Code's lightweight subtasks use the cheaper model while the main task stays on K3.1 Pro.
For the full walkthrough and common errors, see the Claude Code setup guide. Swap the model name in the guide for kimi-k3.1-pro.
Kimi K3.1 Pro API for teams and enterprises
Teams can top up, issue invoices themselves, and work with a dedicated support and technical contact.
- Invoices
Issue them yourself
Issue an invoice in the console for the amount you actually topped up, whenever you need one.
- Dedicated support
Account and technical contacts
Work with a dedicated support contact and technical engineer for onboarding, migration and troubleshooting.
- WeChat Pay
- Alipay
- USDT
- Credit card
Why teams trust AnyAIGC
Trial credit, top-ups, refunds, data handling and billing, spelled out up front.
5M free tokens to start
New accounts get trial credit, so you can test before you top up.
Top up from $1, refundable
Top up from $1. Unused balance can be refunded with no fee.
Official channels, real models
Requests go to official model channels, never cheaper or reverse-engineered substitutes.
No retention, no training
Unless the law requires it, your prompts and outputs are not persistently stored or used for training. See the privacy policy.
Transparent billing, spend caps
See tokens and cost for every request in the console, and set a quota on each API key.
24/7 support
Contact support any time about integration, billing or incidents.
Other Kimi models
One API key calls every Kimi model below. Pick by task difficulty and budget.
- Kimi overviewK3.1 Pro, K3, K2.7 Code and K2.6 pricing compared
- LatestKimi K3.1 ProFirst K3.1 series model, 1M context · input $0.8100 / 1M
- Kimi K32.8T-parameter open weights, 1M context · input $1.2150 / 1M
- CodingKimi K2.7 CodeCoding-tuned K2.6, always thinks · input $0.3847 / 1M
- Kimi K2.6General multimodal agent, thinking optional · input $0.3847 / 1M
Specs and how to choose it
Kimi's official model list describes kimi-k3.1-pro as the first model in the Kimi K3.1 series and its most capable flagship to date.
The vendor states it has trillion-scale (3 trillion) parameters, native vision understanding and a 1,000,000-token context window, with notable gains in code, 3D creation, and financial research and modeling.
A high-speed variant, kimi-k3.1-pro-highspeed, is offered at roughly 2 to 3 times the speed of the standard version.
This page lists Input at $0.8100, Output at $4.0500, Cache hit at $0.0810, matching the pricing table above.
Compared with kimi-k3: the official list calls K3 the previous-generation flagship with 2.8 trillion parameters, while K3.1 Pro improves notably in code, 3D creation and financial research.
Specs come from the vendor's official documentation (platform.kimi.com). The table on this page is the price, and the model catalog is authoritative for live rates.
Kimi K3.1 Pro API FAQ
How much does the Kimi K3.1 Pro API cost?
On AnyAIGC, kimi-k3.1-pro is billed per token: input $0.8100 per 1M tokens, output $4.0500 per 1M tokens, cache hit $0.0810 per 1M tokens. Moonshot's official USD prices are input $2.00, output $10.00 and cache hit $0.20, so AnyAIGC is about 40% of official. Output includes thinking tokens. See the model catalog for live pricing.
What is the Kimi K3.1 Pro model ID, and how large is the context?
The model ID is kimi-k3.1-pro. Moonshot lists a 1,048,576-token (1M) context window. max_completion_tokens defaults to 131,072 and can be set as high as 1,048,576.
How is Kimi K3.1 Pro different from K3?
Moonshot says K3.1 Pro is Kimi K3 trained with much more post-training compute, using joint reinforcement learning across hundreds of downstream domains. The gains Moonshot reports include long-horizon coding (Kimi Code Bench 3.0 up from 55.95 to 61.2), financial research (internal eval up from 58.8 to 70.4) and factual accuracy (per-claim hallucination rate down from 23.4% to 8.3%). Parameter constraints match K3, so migrating only means changing the model name. On AnyAIGC, K3.1 Pro costs $0.8100 input and $4.0500 output, about a third less than K3.
How do I adjust Kimi K3.1 Pro's thinking depth?
K3.1 Pro always thinks and thinking cannot be turned off. Use the top-level reasoning_effort field in the request body to set depth: low, high or max (default max). Sampling parameters such as temperature and top_p are fixed by Moonshot, so leave them out of the request.
Does Kimi K3.1 Pro support tool calls, image and video input?
Yes. Moonshot's docs list function calling (tools / tool_choice), structured output (json_schema), streaming, and image and video input. In multi-turn chats and tool calls, send the full assistant message (including reasoning_content and tool_calls) back in the next request unchanged.
Can I use Kimi K3.1 Pro in Claude Code?
Yes. In the env block of ~/.claude/settings.json, set ANTHROPIC_BASE_URL to https://anyaigc.ai, ANTHROPIC_AUTH_TOKEN to your API key, and ANTHROPIC_MODEL to kimi-k3.1-pro. Then run claude.
Is Kimi K3.1 Pro open source?
Moonshot calls K3.1 Pro its strongest 3T-class open-weight model so far and says the full weights will be released by November 4, 2026. Calling the API through AnyAIGC means you do not have to host it yourself. Model licenses and commercial use are governed by Moonshot AI's official terms.
Are there concurrency or rate limits?
AnyAIGC does not cap concurrency for kimi-k3.1-pro, and every user gets this by default. That suits batch jobs, CI pipelines and parallel agents. Moonshot's own platform limits concurrency, RPM, TPM and TPD by top-up tier; those tiers do not apply when you call through AnyAIGC.
How do I get a Kimi K3.1 Pro API key?
Sign up at anyaigc.ai, add credit, and create a key in the console. The same key works for every Kimi model and 300+ other models on the platform, so you do not need a separate Moonshot platform account.
Can I get an invoice from AnyAIGC?
Yes. You can issue invoices yourself in the console, for the amount you actually topped up.
Which payment methods are supported?
You can top up with WeChat Pay, Alipay, USDT or a credit card. Your balance is in USD and works across every model on the platform. Invoices can be issued in the console for the amount you topped up.
Is there free trial credit for new users?
Yes. New accounts get 5 million tokens of trial credit, so you can test before deciding to top up. Top-ups start at $1.
Can I get a refund on my balance?
Yes. Unused balance can be refunded with no fee. Contact support to start a refund.
Are these the real models? Is my data safe?
Requests go to official model channels, never cheaper or reverse-engineered substitutes. Unless the law requires it, we do not persistently store your prompts or outputs or use them for training, and the console shows tokens and cost for every request.
Will my data be used for training?
No. Except where required by law, AnyAIGC does not persistently store your prompts or outputs and does not use them to train models. Requests are encrypted over HTTPS. See the AnyAIGC Privacy Policy. The model's own data policy is governed by Moonshot AI's official terms.
Run Kimi K3.1 Pro at about 40% of the official price
Sign up, create an API key, and you can use kimi-k3.1-pro in your code or Claude Code within minutes.