2026-06-13 10:08:37 -04:00
|
|
|
import { CLAUDE_API_HEADERS, KIMI_CODING_BASE_URL } from "../shared.js";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
id: "kimi",
|
|
|
|
|
alias: "kimi",
|
2026-06-14 02:15:48 -04:00
|
|
|
display: {
|
2026-06-14 03:32:59 -04:00
|
|
|
name: "Kimi",
|
|
|
|
|
icon: "psychology",
|
|
|
|
|
color: "#1E3A8A",
|
|
|
|
|
textIcon: "KM",
|
|
|
|
|
website: "https://kimi.moonshot.cn",
|
|
|
|
|
notice: {
|
|
|
|
|
apiKeyUrl: "https://platform.moonshot.ai/console/api-keys",
|
|
|
|
|
},
|
2026-06-14 02:15:48 -04:00
|
|
|
},
|
|
|
|
|
category: "apikey",
|
2026-06-13 10:08:37 -04:00
|
|
|
transport: {
|
2026-06-14 03:32:59 -04:00
|
|
|
baseUrl: "https://api.kimi.com/coding/v1/messages",
|
2026-06-13 10:08:37 -04:00
|
|
|
format: "claude",
|
2026-06-13 11:00:57 -04:00
|
|
|
urlSuffix: "?beta=true",
|
2026-06-14 03:32:59 -04:00
|
|
|
headers: {
|
|
|
|
|
"Anthropic-Version": "2023-06-01",
|
|
|
|
|
"Anthropic-Beta": "claude-code-20250219,interleaved-thinking-2025-05-14",
|
|
|
|
|
},
|
|
|
|
|
auth: {
|
|
|
|
|
combined: true,
|
|
|
|
|
header: "x-api-key",
|
|
|
|
|
scheme: "raw",
|
|
|
|
|
},
|
2026-06-13 10:08:37 -04:00
|
|
|
},
|
|
|
|
|
models: [
|
|
|
|
|
{ id: "kimi-k2.6", name: "Kimi K2.6" },
|
|
|
|
|
{ id: "kimi-k2.5", name: "Kimi K2.5" },
|
|
|
|
|
{ id: "kimi-k2.5-thinking", name: "Kimi K2.5 Thinking" },
|
2026-06-14 03:32:59 -04:00
|
|
|
{ id: "kimi-latest", name: "Kimi Latest" },
|
2026-06-14 02:15:48 -04:00
|
|
|
],
|
2026-06-14 03:32:59 -04:00
|
|
|
serviceKinds: ["llm","webSearch"],
|
|
|
|
|
searchViaChat: {
|
|
|
|
|
defaultModel: "kimi-k2.5",
|
|
|
|
|
endpoint: "https://api.moonshot.cn/v1/chat/completions",
|
|
|
|
|
pricingUrl: "https://platform.moonshot.ai/docs/pricing/chat",
|
|
|
|
|
},
|
2026-06-13 10:08:37 -04:00
|
|
|
};
|