Kimi K2.6
AvailableKimi K2.6 is a general model from Moonshot AI that Moonshot built for long coding runs and agent work, including agent swarms.
Good for Coding agents · Images and screenshots
Is it right for you?
It is older than Kimi K2.7 Code and our current Kimi K3. Moonshot lists a 256K context window and input of text, images and video. Unlike K2.7 Code, you can turn thinking off. Pick it for general writing, analysis and chat, where Moonshot recommends K2.6 over K2.7 Code.
Best for
- General work: writing, analysis and chat, plus coding.
- Agent tasks and long coding runs.
- Quick answers with thinking switched off, and image or video input.
Not ideal for
- Strict tool control with thinking on:
tool_choiceaccepts onlyautoornone. - Coding-heavy work: Moonshot reports higher coding scores for K2.7 Code.
- New projects: Kimi K3 is the current model.
Next to the rest of the Moonshot AI line
| Model | Input | Output | Context | Per session |
|---|---|---|---|---|
| Kimi K2.6 (this page) | $1.1515 | $4.7831 | 256K | $0.3752 |
| Kimi K2.7 Code | $1.1515 | $4.7831 | 256K | $0.3922 |
| Kimi K3 | $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.007026
- Coding session
- $0.38
- Per day
- $14.05
- Suggested key budget
- $485.00
- Alert at 80%
- $388.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 K2.6 can do, as Moonshot AI lists it.
| Capability | Support |
|---|---|
| Tool calling | Yes, including multi-step calls |
| Parallel tool calls | Not listed |
| Reasoning | Optional: on by default, can be disabled |
| Reasoning effort | Not listed |
| Image input | Yes: images and video; images must be base64 |
| JSON output | Not mentioned |
| Streaming | Yes |
| Prompt caching | — |
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-k2.6curl https://api.yunshurouter.com/v1/chat/completions \
-H "Authorization: Bearer $YUNSHU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k2.6",
"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-k2.6",
"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-k2.6",
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-k2.6",
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 K2.6?
Kimi K2.6 is a general model from Moonshot AI. It is made for long coding runs and agent tasks and takes text, images and video.
Does Kimi K2.6 support tool calling?
Yes. Tool calling works in both the OpenAI format (tools) and the Anthropic format (tools with input_schema). Moonshot supports multi-step calls, and with thinking on, tool_choice accepts only auto or none.
Does Kimi K2.6 support reasoning?
Yes. Thinking is on by default and you can turn it off.
Should I use Kimi K2.6 or Kimi K3?
Use Kimi K3 for new work, because it is the current model. Moonshot’s pages do not compare the two. Pick K2.6 if your workflow is tuned for it, or if you want a model where thinking can be turned off.