月之暗面 4月20日发布 Kimi K2.6,SWE-Bench Pro 58.6% 超过 GPT-5.4,Agent 集群扩展到 300 子 Agent。整理一下关键数据和接入方案。
核心数据速查
| 指标 | 数值 |
|---|---|
| 总参数 | 1T(激活 32B) |
| 上下文 | 256K tokens |
| SWE-Bench Pro | 58.6%(超 GPT-5.4 的 57.7%) |
| Terminal-Bench 2.0 | 66.7% |
| Agent Swarm 规模 | 300 子 Agent / 4000 步 |
| 开源协议 | Modified MIT |
| 官方定价(输出) | ¥27/M tokens |
旧版退役: K2 / K2.5 将于 2026年5月25日 停用,尽快迁移到 kimi-k2.6。
接入代码
from openai import OpenAI
client = OpenAI(
api_key="sk-xxx", # 数眼智能 API Key,shuyanai.com 获取
base_url="https://platform.shuyanai.com"
)
resp = client.chat.completions.create(
model="kimi-k2.6",
messages=[{"role": "user", "content": "你好"}]
)
print(resp.choices[0].message.content)
迁移旧代码
# 改前(5月25日后失效)
model="kimi-k2.5"
# 改后
model="kimi-k2.6"
Agent 工作流示例(多工具调用)
tools = [
{
"type": "function",
"function": {
"name": "read_file",
"description": "读取文件内容",
"parameters": {
"type": "object",
"properties": {
"path": {"type": "string", "description": "文件路径"}
},
"required": ["path"]
}
}
}
]
resp = client.chat.completions.create(
model="kimi-k2.6",
messages=[
{"role": "user", "content": "分析项目结构并找出性能瓶颈"}
],
tools=tools,
tool_choice="auto"
)
选 K2.6 还是 DeepSeek V4?
| 场景 | 推荐 |
|---|---|
| 复杂代码重构、多文件工程 | K2.6(SWE-Bench Pro 第一) |
| 高频 API 调用、成本优先 | V4-Flash(¥2/M 输出) |
| 长文本摘要/分析 | V4-Pro(1M 上下文) |
| Agent 集群编排 | K2.6(300 子 Agent) |
通过数眼智能实测。shuyanai.com 登录获取 API Key。