Moonshot AI · kimi-k3
Kimi K3 API
Moonshot's previous-generation flagship: a 2.8-trillion-parameter open-weight model with 1M context, built for long-horizon coding, knowledge work and deep reasoning. On AnyAIGC it costs about 40% of the official price.
kimi-k3 input $1.2150 per 1M tokens, output $6.0750 per 1M tokens, cache hit $0.1215. Works with the OpenAI-compatible API and in Claude Code.
- Model ID kimi-k3
- Context 1M tokens
- Input $1.2150 / 1M
- Concurrency Unlimited
- Business Self-service invoices
A trillion-scale open-weight model for long tasks
Moonshot AI says Kimi K3 is the first open-source model to reach 2.8 trillion parameters. It is built on Kimi Delta Attention (KDA) hybrid linear attention and Attention Residuals, two architecture changes meant to keep information flowing across longer sequences and deeper networks.
Under the Stable LatentMoE framework, K3 activates 16 of 896 experts per token. Moonshot says that together with improved training methods and data recipes, K3 reaches about 2.5x the overall scaling efficiency of K2. It has native vision, a 1,048,576-token context window, and thinking is always on.
On AnyAIGC, kimi-k3 runs on the OpenAI-compatible /v1/chat/completions endpoint and works directly in Claude Code. You do not need a Moonshot platform account, there are no top-up tiers, and concurrency is unlimited.
- Context window
- 1,048,576Max input tokens
- Max output
- 131,072Default, can be set up to 1,048,576
- Total parameters
- 2.8TMoE, 16 of 896 experts active
- Input
- Text, imagesNative vision
- Thinking
- Always onreasoning_effort: low / high / max
- Weights
- OpenHugging Face moonshotai/Kimi-K3
What Kimi K3 can do
- 01
Long-horizon coding
Works through long engineering tasks with little human input, understands large codebases and coordinates terminal tools. Moonshot reports 88.3 on Terminal-Bench 2.1.
- 02
Vision plus code
Uses screenshots and visual feedback to improve front end, game development and CAD workflows: read a design, write the UI, adjust styles against the render.
- 03
End-to-end knowledge work
Deep research, data visualization, dashboards and reports. Moonshot reports 91.2 on BrowseComp and 93.5 on GPQA Diamond.
- 04
1M-token context
Fit a full codebase, a contract set or long research material in one request. Repeated prefixes are cached automatically, and cache hits cost only $0.1215 per 1M tokens.
- 05
Agents and tool calls
Supports function calling, tool_choice, dynamic tool loading and structured output. Moonshot reports 94.5 on MCPMark-Verified and 84.8 on OSWorld-Verified.
- 06
Adjustable thinking
Thinking is always on. Set reasoning_effort to low, high or max: save tokens on simple tasks, use max on hard ones.
Kimi K3 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.
- 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.2150 | $3.00 | 60% |
| Outputper 1M tokens, incl. thinking | kimi-k3 | $6.0750 | $15.00 | 60% |
| Cache hitper 1M tokens | kimi-k3 | $0.1215 | $0.30 | 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.608
Official
$1.50 -
Analyze a 500K-token document
500K input tokens + 5,000 output
$0.638
Official
$1.57 -
1M input + 1M output
1M input tokens + 1M output tokens
$7.29
Official
$18.00
Kimi K3 official benchmarks
Kimi K3 scores published by Moonshot AI (max reasoning effort) across reasoning, coding, agent and vision tasks.
Kimi K3 · selected benchmarks
| Benchmark | Kimi K3 |
|---|---|
| GPQA DiamondScience reasoning | 93.5 |
| AA-LCRLong-context reasoning | 74.7 |
| Terminal-Bench 2.1Terminal coding | 88.3 |
| ProgramBenchCoding | 77.8 |
| FrontierSWESoftware engineering | 81.2 |
| DeepSWELong-horizon software engineering | 67.5 |
| Kimi Code Bench 2.0Coding | 72.9 |
| BrowseCompWeb browsing agent | 91.2 |
| MCPMark-VerifiedTool use | 94.5 |
| MCP-AtlasTool use | 84.2 |
| OSWorld-VerifiedComputer use | 84.8 |
| OmniDocBenchDocument understanding | 91.1 |
| Video-MMEVideo understanding | 90.0 |
Source: the Kimi K3 model card on Hugging Face. Scores are Moonshot AI's published results at max reasoning effort.
Kimi K3 vs K3.1 Pro vs K2.7 Code vs K2.6
For new projects, start with K3.1 Pro: it is newer and cheaper. K2.7 Code and K2.6 cost about a third as much as K3.
| Spec | K3 | K3.1 Pro | K2.7 Code | K2.6 |
|---|---|---|---|---|
| Role | Previous flagship | Latest flagship | Coding agent | General multimodal agent |
| Total parameters | 2.8T | 3T-class | 1T | 1T |
| Context | 1M | 1M | 256K | 256K |
| Thinking | Always on | Always on | Always on | On or off |
| AnyAIGC inputper 1M tokens | $1.2150 | $0.8100 | $0.3847 | $0.3847 |
| AnyAIGC outputper 1M tokens | $6.0750 | $4.0500 | $1.5980 | $1.5980 |
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.1 Pro API, Kimi K2.7 Code API and Kimi K2.6 API.
Where Kimi K3 fits
- 01 · Large repos
Cross-module refactors and migrations
Load the whole codebase into 1M context, let K3 map the dependencies and propose the change in one pass, then execute and verify it step by step with terminal tools.
- 02 · Agents
Long-running autonomous tasks
Run tasks with dozens or hundreds of steps in Claude Code or your own agent: research, write code, run tests, fix errors. AnyAIGC does not cap concurrency.
- 03 · Research
Deep research and reports
Read a stack of papers, financial reports or research files, cross-check them, and produce structured findings, chart code and a deliverable report.
- 04 · Vision
Screenshot to code
Give K3 a design file, an error screenshot or a render, and have it write or fix front-end, game and visualization code.
Connect to the Kimi K3 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-k3and 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",
"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",
messages=[
{"role": "system", "content": "You are a senior backend engineer. Answer with runnable code."},
{"role": "user", "content": "Write an HTTP client in Go with timeouts and retries."},
],
)
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",
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",
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 always thinks, and the reasoning comes back in reasoning_content. Moonshot recommends temperature=1.0 and top_p=0.95. 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, not just the content.
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 in Claude Code
Switch Claude Code to Kimi K3. The 1M context suits long coding sessions in large repos.
- 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.
{
"env": {
"ANTHROPIC_BASE_URL": "https://anyaigc.ai",
"ANTHROPIC_AUTH_TOKEN": "sk-your-API-key",
"ANTHROPIC_MODEL": "kimi-k3",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "kimi-k3",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "kimi-k3",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "kimi-k3",
"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.
For the full walkthrough and common errors, see the Claude Code setup guide. Swap the model name in the guide for kimi-k3.
Kimi K3 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 calls kimi-k3 the previous-generation flagship and the world's first open-source trillion-scale model, with 2.8 trillion parameters.
The vendor states it has native vision understanding and a 1,000,000-token context window, designed for long-horizon coding, knowledge work and deep reasoning.
This page lists Input at $1.2150, Output at $6.0750, Cache hit at $0.1215, matching the pricing table above.
Compared with kimi-k3.1-pro: the vendor calls K3.1 Pro its most capable flagship and also offers a high-speed variant at about 2 to 3 times the speed.
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 API FAQ
How much does the Kimi K3 API cost?
On AnyAIGC, kimi-k3 is billed per token: input $1.2150 per 1M tokens, output $6.0750 per 1M tokens, cache hit $0.1215 per 1M tokens. Moonshot's official USD prices are input $3.00, output $15.00 and cache hit $0.30, so AnyAIGC is about 40% of official. Output includes thinking tokens. See the model catalog for live pricing.
What is the Kimi K3 model ID, and how large is the context?
The model ID is kimi-k3. 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.
What sets Kimi K3 apart?
Moonshot says Kimi K3 is the first open-source model to reach 2.8 trillion parameters. It is built on Kimi Delta Attention (KDA) hybrid linear attention and Attention Residuals, and its MoE activates 16 of 896 experts per token, with native vision. Moonshot reports about 2.5x the overall scaling efficiency of K2, aimed at long-horizon coding, knowledge work and reasoning.
How do I adjust Kimi K3's thinking depth?
K3 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). Use low on simple tasks to cut output tokens.
Does Kimi K3 support tool calls and image input?
Yes. K3 supports function calling (tools / tool_choice), structured output (json_schema), streaming and image 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 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. Then run claude.
How is Kimi K3 different from K3.1 Pro?
Kimi K3.1 Pro is the first K3.1 series model. Moonshot says it is K3 with much more post-training compute, with clear gains in coding, 3D creation, financial research and long-horizon agents. It keeps the same parameter constraints as 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. For new projects, start with K3.1 Pro.
Kimi K3 or K2.7 Code: which should I use?
K3 is the 2.8T-parameter previous-generation flagship with 1M context, suited to large repos, long-running tasks and the hardest reasoning. K2.7 Code is a 1T-parameter coding model with 256K context at $0.3847 input and $1.5980 output on AnyAIGC, about a third of K3. Many teams use K2.7 Code day to day and switch to K3 for hard problems, with the same key.
Are there concurrency or rate limits?
AnyAIGC does not cap concurrency for kimi-k3, 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 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 at about 40% of the official price
Sign up, create an API key, and you can use kimi-k3 in your code or Claude Code within minutes.