mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
fix(openclaw): price preset models at official list prices in $/M
The cost field on OpenClaw preset models is denominated in USD per million tokens (as the Claude entries already were), but 15 entries carried $/1K-style decimals or stale values. Reprice everything at the model's official list price, mirroring the built-in pricing table, so usage is always valued at standard rates regardless of channel: - glm-5.1 (Zhipu CN/EN, ModelScope): 1.4/4.4, cache read 0.26 - qwen3.5-plus: 0.26/1.56, cache read 0.052 - kimi-k2.7-code and the kimi-for-coding alias (K2.7 Code per official docs): 0.95/4, cache read 0.19 - MiniMax-M2.7 (official + SiliconFlow): 0.3/1.2, cache read 0.06, cache write 0.375 - KAT-Coder-Pro: 0.3/1.2, cache read 0.06 - LongCat-2.0: 0.75/2.95, cache read 0.015 - Ling-2.5-1T: 0.56/2.24 (official CNY 4/16 at ~7.14) - deepseek-v4-pro: 0.435/0.87 (old 1.68/3.36 was CNY 12/24 left unconverted), cache read 0.003625 - kimi-k2.5 (Nvidia NIM): 0.6/3, cache read 0.1 Subscription-plan endpoints and free-tier hosts intentionally show list prices too, so plan users can see the standard value of their usage.
This commit is contained in:
@@ -634,7 +634,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
id: "deepseek-v4-pro",
|
||||
name: "DeepSeek V4 Pro",
|
||||
contextWindow: 1000000,
|
||||
cost: { input: 1.68, output: 3.36 },
|
||||
cost: { input: 0.435, output: 0.87, cacheRead: 0.003625 },
|
||||
},
|
||||
{
|
||||
id: "deepseek-v4-flash",
|
||||
@@ -678,7 +678,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
id: "glm-5.1",
|
||||
name: "GLM-5.1",
|
||||
contextWindow: 128000,
|
||||
cost: { input: 0.001, output: 0.001 },
|
||||
cost: { input: 1.4, output: 4.4, cacheRead: 0.26 },
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -716,7 +716,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
id: "glm-5.1",
|
||||
name: "GLM-5.1",
|
||||
contextWindow: 128000,
|
||||
cost: { input: 0.001, output: 0.001 },
|
||||
cost: { input: 1.4, output: 4.4, cacheRead: 0.26 },
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -754,7 +754,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
id: "qwen3.5-plus",
|
||||
name: "Qwen3.5 Plus",
|
||||
contextWindow: 32000,
|
||||
cost: { input: 0.002, output: 0.006 },
|
||||
cost: { input: 0.26, output: 1.56, cacheRead: 0.052 },
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -793,7 +793,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
id: "kimi-k2.7-code",
|
||||
name: "Kimi K2.7 Code",
|
||||
contextWindow: 262144,
|
||||
cost: { input: 0.002, output: 0.006 },
|
||||
cost: { input: 0.95, output: 4, cacheRead: 0.19 },
|
||||
},
|
||||
{
|
||||
id: "kimi-k3",
|
||||
@@ -838,7 +838,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
id: "kimi-for-coding",
|
||||
name: "Kimi For Coding",
|
||||
contextWindow: 131072,
|
||||
cost: { input: 0.002, output: 0.006 },
|
||||
cost: { input: 0.95, output: 4, cacheRead: 0.19 },
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -966,7 +966,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
id: "MiniMax-M2.7",
|
||||
name: "MiniMax M2.7",
|
||||
contextWindow: 200000,
|
||||
cost: { input: 0.001, output: 0.004 },
|
||||
cost: { input: 0.3, output: 1.2, cacheRead: 0.06, cacheWrite: 0.375 },
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -1003,7 +1003,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
id: "MiniMax-M2.7",
|
||||
name: "MiniMax M2.7",
|
||||
contextWindow: 200000,
|
||||
cost: { input: 0.001, output: 0.004 },
|
||||
cost: { input: 0.3, output: 1.2, cacheRead: 0.06, cacheWrite: 0.375 },
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -1041,7 +1041,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
id: "KAT-Coder-Pro",
|
||||
name: "KAT-Coder Pro",
|
||||
contextWindow: 128000,
|
||||
cost: { input: 0.002, output: 0.006 },
|
||||
cost: { input: 0.3, output: 1.2, cacheRead: 0.06 },
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -1090,7 +1090,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
contextWindow: 1048576,
|
||||
maxTokens: 131072,
|
||||
compat: { maxTokensField: "max_tokens" },
|
||||
cost: { input: 0.001, output: 0.004 },
|
||||
cost: { input: 0.75, output: 2.95, cacheRead: 0.015 },
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -1127,7 +1127,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
id: "Ling-2.5-1T",
|
||||
name: "Ling 2.5 1T",
|
||||
contextWindow: 128000,
|
||||
cost: { input: 0.001, output: 0.004 },
|
||||
cost: { input: 0.56, output: 2.24 },
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -1578,7 +1578,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
id: "ZhipuAI/GLM-5.1",
|
||||
name: "GLM-5.1",
|
||||
contextWindow: 128000,
|
||||
cost: { input: 0.001, output: 0.001 },
|
||||
cost: { input: 1.4, output: 4.4, cacheRead: 0.26 },
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -1616,7 +1616,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
id: "Pro/MiniMaxAI/MiniMax-M2.7",
|
||||
name: "MiniMax M2.7",
|
||||
contextWindow: 200000,
|
||||
cost: { input: 0.001, output: 0.004 },
|
||||
cost: { input: 0.3, output: 1.2, cacheRead: 0.06, cacheWrite: 0.375 },
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -1652,7 +1652,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
id: "MiniMaxAI/MiniMax-M2.7",
|
||||
name: "MiniMax M2.7",
|
||||
contextWindow: 200000,
|
||||
cost: { input: 0.001, output: 0.004 },
|
||||
cost: { input: 0.3, output: 1.2, cacheRead: 0.06, cacheWrite: 0.375 },
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -1722,7 +1722,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
id: "moonshotai/kimi-k2.5",
|
||||
name: "Kimi K2.5",
|
||||
contextWindow: 131072,
|
||||
cost: { input: 0.002, output: 0.006 },
|
||||
cost: { input: 0.6, output: 3, cacheRead: 0.1 },
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user