Kimi-K2.6
POST /api/v1/chat/completions(OpenAI 兼容)· 模型 Kimi-K2.6 · 厂商 moonshotai
Kimi K2.6 作为国内领先的 Coding 模型,在长程代码任务中的表现取得了突破,面对不同编程语言(如 Rust、Go、Python)和任务场景(如前端、运维、性能优化)均具备更可靠的泛化能力。
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | 固定填 Kimi-K2.6 |
messages | array | 是 | 对话消息,[{"role":"user","content":"..."}] |
stream | bool | 否 | 是否流式返回,默认 false |
temperature | number | 否 | 采样温度 0~2 |
max_tokens | int | 否 | 最大输出 token 数 |
tools | array | 否 | 工具/函数调用定义(模型支持时) |
示例
curl -X POST https://api.a7w.cn/api/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"Kimi-K2.6","messages":[{"role":"user","content":"你好"}]}'
计费
实际扣费按最终成功线路结算;如设置过该 Key 的专属价格,以专属价为准。