月之暗面
深度推理 开源
Kimi K2 Thinking
月之暗面推理增强模型,具备交织思考与工具调用能力,擅长复杂推理和代理任务
上下文长度256K tokens
模型类型推理增强 MoE 模型
总参数量1万亿参数
定价与规格
💰 定价
输入¥4 / M tokens
输出¥16 / M tokens
⚙️ 规格
上下文长度256K tokens
模型类型推理增强 MoE 模型
总参数量1万亿参数
活跃参数320亿参数
特色能力交织思考与工具调用
API 调用示例
Python
from openai import OpenAI
client = OpenAI(
base_url="https://api.xairouter.com/v1",
api_key="your-api-key"
)
response = client.chat.completions.create(
model="kimi-k2-thinking",
messages=[
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)cURL
curl https://api.xairouter.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "kimi-k2-thinking",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'