moonshot/kimi-k2.6;若使用 Kimi Coding,請設為 kimi/kimi-for-coding。
內建模型目錄
| 模型參照 | 名稱 | 推理 | 輸入 | 上下文 | 最大輸出 |
|---|---|---|---|---|---|
moonshot/kimi-k2.6 | Kimi K2.6 | 否 | 文字、圖片 | 262,144 | 262,144 |
moonshot/kimi-k2.7-code | Kimi K2.7 Code | 永遠開啟 | 文字、圖片 | 262,144 | 262,144 |
moonshot/kimi-k2.5 | Kimi K2.5 | 否 | 文字、圖片 | 262,144 | 262,144 |
moonshot/kimi-k2-thinking | Kimi K2 Thinking | 是 | 文字 | 262,144 | 262,144 |
moonshot/kimi-k2-thinking-turbo | Kimi K2 Thinking Turbo | 是 | 文字 | 262,144 | 262,144 |
moonshot/kimi-k2-turbo | Kimi K2 Turbo | 否 | 文字 | 256,000 | 16,384 |
on thinking 狀態,並省略傳出的 thinking 與 reasoning_effort 欄位。它也會省略取樣覆寫(temperature、top_p、n、presence_penalty、frequency_penalty),因為 K2.7 會將這些固定為提供者預設值。Kimi K2.6 仍是初始設定預設值。
開始使用
Moonshot 和 Kimi Coding 都是外部外掛;請在初始設定前先安裝其中一個。- Moonshot API
- Kimi Coding
最適合: 透過 Moonshot Open Platform 使用 Kimi K2 模型。
選擇你的端點區域
| 驗證選項 | 端點 | 區域 |
|---|---|---|
moonshot-api-key | https://api.moonshot.ai/v1 | 國際 |
moonshot-api-key-cn | https://api.moonshot.cn/v1 | 中國 |
設定範例
Kimi 網頁搜尋
Moonshot 外掛也會將 Kimi 註冊為web_search 提供者,底層使用 Moonshot 網頁搜尋。
設定位於
plugins.entries.moonshot.config.webSearch 下:
進階設定
原生 thinking 模式
原生 thinking 模式
Kimi K2.7 Code 一律使用原生 thinking。Moonshot 要求用戶端對此模型省略 OpenClaw 會將這些模型的執行階段
Kimi K2.6 也接受選用的
thinking 欄位,因此 OpenClaw 只公開 on,並忽略過時的 off 設定。K2.7 也會固定 temperature、top_p、n、presence_penalty 與 frequency_penalty;OpenClaw 會省略這些欄位的已設定覆寫。其他 Moonshot Kimi 模型支援二元原生 thinking:thinking: { type: "enabled" }thinking: { type: "disabled" }
agents.defaults.models.<provider/model>.params 依模型設定:/think 等級對應如下:/think 等級 | Moonshot 行為 |
|---|---|
/think off | thinking.type=disabled |
| 任何非 off 等級 | thinking.type=enabled |
thinking.keep 欄位,用來控制
reasoning_content 的多輪保留。將其設為 "all" 可在多輪之間保留完整
reasoning;省略它(或保留為 null)則使用伺服器
預設策略。OpenClaw 只會針對
moonshot/kimi-k2.6 轉送 thinking.keep,並會從其他模型移除它。Kimi K2.7 Code
預設會保留完整 reasoning 歷史,而 OpenClaw 會省略整個
thinking 欄位。工具呼叫 ID 清理
工具呼叫 ID 清理
Moonshot Kimi 提供形如
functions.<name>:<index> 的原生 tool_call ID。OpenClaw 會保留每個原生 Kimi ID 的第一次出現,並將後續重複項改寫為確定性的 OpenAI 風格 call_* ID。相符的工具結果會以相同 ID 重新對應,因此重播時仍保持唯一性,同時不會移除 Kimi 第一個原生 ID。此行為已接入內建的 Moonshot 供應商,並不是使用者可設定的選項。串流用量相容性
串流用量相容性
原生 Moonshot 端點(
https://api.moonshot.ai/v1 和
https://api.moonshot.cn/v1)會宣告串流用量相容性。
OpenClaw 會根據端點主機判定此行為,而不是根據供應商 ID,因此指向相同原生 Moonshot 主機的自訂
供應商 ID 會繼承相同的
串流用量行為。使用目錄中的 K2.6 定價時,包含輸入、輸出
和快取讀取 token 的串流用量,也會轉換為本機估算的美元成本,用於
/status、/usage full、/usage cost,以及以 transcript 為基礎的工作階段
帳務統計。端點與模型參照參考
端點與模型參照參考
| 供應商 | 模型參照前綴 | 端點 | 驗證環境變數 |
|---|---|---|---|
| Moonshot | moonshot/ | https://api.moonshot.ai/v1 | MOONSHOT_API_KEY |
| Moonshot CN | moonshot/ | https://api.moonshot.cn/v1 | MOONSHOT_API_KEY |
| Kimi Coding | kimi/ | Kimi Coding 端點 | KIMI_API_KEY |
| 網頁搜尋 | N/A | 與 Moonshot API 區域相同 | KIMI_API_KEY 或 MOONSHOT_API_KEY |
- Kimi 網頁搜尋使用
KIMI_API_KEY或MOONSHOT_API_KEY,並預設使用https://api.moonshot.ai/v1與模型kimi-k2.6。 - 如有需要,請在
models.providers中覆寫定價和 context 中繼資料。 - 如果 Moonshot 針對某個模型發布不同的 context 限制,請相應調整
contextWindow。
相關
模型選擇
選擇供應商、模型參照和容錯移轉行為。
網頁搜尋
設定包含 Kimi 在內的網頁搜尋供應商。
設定參考
供應商、模型和外掛的完整設定結構描述。
Moonshot Open Platform
Moonshot API 金鑰管理與文件。