2026-06-13 10:08:37 -04:00
|
|
|
import { CLAUDE_API_HEADERS, KIMI_CODING_BASE_URL } from "../shared.js";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
id: "kimi-coding",
|
|
|
|
|
alias: "kmc",
|
2026-06-14 02:15:48 -04:00
|
|
|
display: { name: "Kimi Coding", icon: "psychology", color: "#1E40AF", textIcon: "KC", website: "https://kimi.moonshot.cn", notice: { signupUrl: "https://kimi.moonshot.cn" } },
|
|
|
|
|
category: "oauth",
|
2026-06-13 10:08:37 -04:00
|
|
|
transport: {
|
|
|
|
|
baseUrl: KIMI_CODING_BASE_URL,
|
|
|
|
|
format: "claude",
|
2026-06-13 11:00:57 -04:00
|
|
|
urlSuffix: "?beta=true",
|
2026-06-13 10:08:37 -04:00
|
|
|
headers: { ...CLAUDE_API_HEADERS },
|
|
|
|
|
clientId: "17e5f671-d194-4dfb-9706-5516cb48c098",
|
|
|
|
|
tokenUrl: "https://auth.kimi.com/api/oauth/token",
|
2026-06-14 02:15:48 -04:00
|
|
|
refreshUrl: "https://auth.kimi.com/api/oauth/token",
|
|
|
|
|
auth: {"combined":true,"header":"x-api-key","scheme":"raw","hooks":["kimiHeaders"]},
|
|
|
|
|
},
|
|
|
|
|
oauth: {
|
|
|
|
|
deviceCodeUrl: "https://auth.kimi.com/api/oauth/device_authorization",
|
|
|
|
|
tokenUrl: "https://auth.kimi.com/api/oauth/token"
|
|
|
|
|
,
|
|
|
|
|
refreshLeadMs: 300000
|
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" },
|
|
|
|
|
{ id: "kimi-latest", name: "Kimi Latest" }
|
2026-06-14 02:15:48 -04:00
|
|
|
],
|
|
|
|
|
features: {"usage":true},
|
2026-06-13 10:08:37 -04:00
|
|
|
};
|