Kimi K3
AvailableKimi K3 is Moonshot AI’s large general model.
Good for Coding agents · Long context · Images and screenshots
Is it right for you?
On Yunshu Router it has the largest context window of the models we serve today, which makes it the one to pick when an agent needs to hold a big part of a codebase or a long conversation at once. It accepts images as well as text, calls tools and reasons by default. Output tokens are its main cost, so check the output price before long generations.
Best for
- Long sessions and large prompts: whole modules, long logs, big diffs, up to 256K tokens.
- Agent work that mixes code with screenshots or diagrams.
- A fallback for a 128K model when a prompt is too long for it.
Not ideal for
- Output-heavy jobs on a tight budget, such as generating many files from scratch: check $16.4498 first.
- Short, frequent calls where DeepSeek V4.1 Flash costs less.
Next to the rest of the Moonshot AI line
| Model | Input | Output | Context | Per session |
|---|---|---|---|---|
| Kimi K2.6 | $1.1515 | $4.7831 | 256K | $0.3752 |
| Kimi K2.7 Code | $1.1515 | $4.7831 | 256K | $0.3922 |
| Kimi K3 (this page) | $3.2900 | $16.4498 | 256K | $1.0462 |
What it costs
Prepaid, per token, no subscription. Set your traffic to see your bill.
30 days, at today's prices. You're billed on actual tokens.
- Per request
- $0.019279
- Coding session
- $1.05
- Per day
- $38.56
- Suggested key budget
- $1,335.00
- Alert at 80%
- $1,068.00
A coding session is 30 requests of 20,000 input tokens, 80% from cache, and 1,000 output tokens each: the same session as the "Per session" column above. Thinking tokens are billed as output, so reasoning raises the cost.
One price all day: this model has no peak pricing in our catalogue.
Capabilities
What Kimi K3 can do, as Moonshot AI lists it.
| Capability | Support |
|---|---|
| Reasoning | Optional, on by default |
| Image input | Text, image and video in |
| JSON output | JSON mode and structured outputs yes |
| Streaming | Yes |
| Prompt caching | Cache-read price listed |
Get started
Create a key in the console, export it as YUNSHU_API_KEY, then use one of these.
export ANTHROPIC_BASE_URL=https://api.yunshurouter.com
export ANTHROPIC_AUTH_TOKEN=$YUNSHU_API_KEY
export ANTHROPIC_MODEL=kimi-k3curl https://api.yunshurouter.com/v1/chat/completions \
-H "Authorization: Bearer $YUNSHU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k3",
"messages": [{"role": "user", "content": "Write a Python function that reverses a string."}]
}'curl https://api.yunshurouter.com/v1/messages \
-H "x-api-key: $YUNSHU_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k3",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Write a Python function that reverses a string."}]
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.yunshurouter.com/v1",
api_key=os.environ["YUNSHU_API_KEY"],
)
response = client.chat.completions.create(
model="kimi-k3",
messages=[{"role": "user", "content": "Write a Python function that reverses a string."}],
)
print(response.choices[0].message.content)import os
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.yunshurouter.com", # no /v1: the SDK adds it
api_key=os.environ["YUNSHU_API_KEY"],
)
message = client.messages.create(
model="kimi-k3",
max_tokens=1024,
messages=[{"role": "user", "content": "Write a Python function that reverses a string."}],
)
print(message.content[0].text)Full steps for each tool: integration guides →
Questions
What is Kimi K3?
Kimi K3 is a large language model from Moonshot AI. It handles long inputs, accepts images, calls tools and reasons by default.
Does Kimi K3 support tool calling?
Yes. Tool calling works in both the OpenAI format (tools) and the Anthropic format (tools with input_schema).
Does Kimi K3 support reasoning?
Yes. Reasoning is on by default at the provider and listed as optional, so you can turn it off for quicker, cheaper replies.
Does Kimi K3 accept images?
The provider lists image and video input. Send images as content parts in either API format.