mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 04:50:44 +00:00
202 lines
5.0 KiB
JSON
202 lines
5.0 KiB
JSON
{
|
|
"id": "moonshot",
|
|
"activation": {
|
|
"onStartup": false
|
|
},
|
|
"enabledByDefault": true,
|
|
"providerDiscoveryEntry": "./provider-discovery.ts",
|
|
"providers": ["moonshot"],
|
|
"providerEndpoints": [
|
|
{
|
|
"endpointClass": "moonshot-native",
|
|
"baseUrls": ["https://api.moonshot.ai/v1", "https://api.moonshot.cn/v1"]
|
|
}
|
|
],
|
|
"providerRequest": {
|
|
"providers": {
|
|
"moonshot": {
|
|
"family": "moonshot",
|
|
"compatibilityFamily": "moonshot"
|
|
}
|
|
}
|
|
},
|
|
"modelPricing": {
|
|
"providers": {
|
|
"moonshot": {
|
|
"openRouter": {
|
|
"provider": "moonshotai"
|
|
},
|
|
"liteLLM": {
|
|
"provider": "moonshot"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"modelCatalog": {
|
|
"providers": {
|
|
"moonshot": {
|
|
"baseUrl": "https://api.moonshot.ai/v1",
|
|
"api": "openai-completions",
|
|
"models": [
|
|
{
|
|
"id": "kimi-k2.6",
|
|
"name": "Kimi K2.6",
|
|
"input": ["text", "image"],
|
|
"contextWindow": 262144,
|
|
"maxTokens": 262144,
|
|
"cost": {
|
|
"input": 0.95,
|
|
"output": 4,
|
|
"cacheRead": 0.16,
|
|
"cacheWrite": 0
|
|
}
|
|
},
|
|
{
|
|
"id": "kimi-k2.5",
|
|
"name": "Kimi K2.5",
|
|
"input": ["text", "image"],
|
|
"contextWindow": 262144,
|
|
"maxTokens": 262144,
|
|
"cost": {
|
|
"input": 0.6,
|
|
"output": 3,
|
|
"cacheRead": 0.1,
|
|
"cacheWrite": 0
|
|
}
|
|
},
|
|
{
|
|
"id": "kimi-k2-thinking",
|
|
"name": "Kimi K2 Thinking",
|
|
"reasoning": true,
|
|
"input": ["text"],
|
|
"contextWindow": 262144,
|
|
"maxTokens": 262144,
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cacheRead": 0,
|
|
"cacheWrite": 0
|
|
}
|
|
},
|
|
{
|
|
"id": "kimi-k2-thinking-turbo",
|
|
"name": "Kimi K2 Thinking Turbo",
|
|
"reasoning": true,
|
|
"input": ["text"],
|
|
"contextWindow": 262144,
|
|
"maxTokens": 262144,
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cacheRead": 0,
|
|
"cacheWrite": 0
|
|
}
|
|
},
|
|
{
|
|
"id": "kimi-k2-turbo",
|
|
"name": "Kimi K2 Turbo",
|
|
"input": ["text"],
|
|
"contextWindow": 256000,
|
|
"maxTokens": 16384,
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cacheRead": 0,
|
|
"cacheWrite": 0
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"discovery": {
|
|
"moonshot": "static"
|
|
}
|
|
},
|
|
"providerAuthEnvVars": {
|
|
"moonshot": ["MOONSHOT_API_KEY", "KIMI_API_KEY"]
|
|
},
|
|
"providerAuthChoices": [
|
|
{
|
|
"provider": "moonshot",
|
|
"method": "api-key",
|
|
"choiceId": "moonshot-api-key",
|
|
"choiceLabel": "Moonshot API key (.ai)",
|
|
"groupId": "moonshot",
|
|
"groupLabel": "Moonshot AI (Kimi K2.6)",
|
|
"groupHint": "Kimi K2.6",
|
|
"optionKey": "moonshotApiKey",
|
|
"cliFlag": "--moonshot-api-key",
|
|
"cliOption": "--moonshot-api-key <key>",
|
|
"cliDescription": "Moonshot API key"
|
|
},
|
|
{
|
|
"provider": "moonshot",
|
|
"method": "api-key-cn",
|
|
"choiceId": "moonshot-api-key-cn",
|
|
"choiceLabel": "Moonshot API key (.cn)",
|
|
"groupId": "moonshot",
|
|
"groupLabel": "Moonshot AI (Kimi K2.6)",
|
|
"groupHint": "Kimi K2.6",
|
|
"optionKey": "moonshotApiKey",
|
|
"cliFlag": "--moonshot-api-key",
|
|
"cliOption": "--moonshot-api-key <key>",
|
|
"cliDescription": "Moonshot API key"
|
|
}
|
|
],
|
|
"uiHints": {
|
|
"webSearch.apiKey": {
|
|
"label": "Kimi Search API Key",
|
|
"help": "Moonshot/Kimi API key (fallback: KIMI_API_KEY or MOONSHOT_API_KEY env var).",
|
|
"sensitive": true
|
|
},
|
|
"webSearch.baseUrl": {
|
|
"label": "Kimi Search Base URL",
|
|
"help": "Kimi base URL override."
|
|
},
|
|
"webSearch.model": {
|
|
"label": "Kimi Search Model",
|
|
"help": "Kimi model override."
|
|
}
|
|
},
|
|
"contracts": {
|
|
"mediaUnderstandingProviders": ["moonshot"],
|
|
"webSearchProviders": ["kimi"]
|
|
},
|
|
"mediaUnderstandingProviderMetadata": {
|
|
"moonshot": {
|
|
"capabilities": ["image", "video"],
|
|
"defaultModels": {
|
|
"image": "kimi-k2.6",
|
|
"video": "kimi-k2.6"
|
|
},
|
|
"autoPriority": {
|
|
"video": 20
|
|
}
|
|
}
|
|
},
|
|
"configContracts": {
|
|
"compatibilityRuntimePaths": ["tools.web.search.apiKey"]
|
|
},
|
|
"configSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"webSearch": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"apiKey": {
|
|
"type": ["string", "object"]
|
|
},
|
|
"baseUrl": {
|
|
"type": "string"
|
|
},
|
|
"model": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|