From c73f4ebdd7692fe60fc5b1fe40e2830723645263 Mon Sep 17 00:00:00 2001 From: wangxiaolong Date: Tue, 2 Sep 2025 20:33:40 +0800 Subject: [PATCH 1/2] feat: add Kimi K2 Turbo model configuration to moonshotModels --- packages/types/src/providers/moonshot.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/types/src/providers/moonshot.ts b/packages/types/src/providers/moonshot.ts index d7e542077d7..38108ed060a 100644 --- a/packages/types/src/providers/moonshot.ts +++ b/packages/types/src/providers/moonshot.ts @@ -17,6 +17,17 @@ export const moonshotModels = { cacheReadsPrice: 0.15, // $0.15 per million tokens (cache hit) description: `Kimi K2 is a state-of-the-art mixture-of-experts (MoE) language model with 32 billion activated parameters and 1 trillion total parameters.`, }, + "kimi-k2-turbo-preview": { + maxTokens: 32_000, + contextWindow: 131_072, + supportsImages: false, + supportsPromptCache: true, + inputPrice: 0.6, // $0.60 per million tokens (cache miss) + outputPrice: 2.5, // $2.50 per million tokens + cacheWritesPrice: 0, // $0 per million tokens (cache miss) + cacheReadsPrice: 0.15, // $0.15 per million tokens (cache hit) + description: `Kimi K2 Turbo is a high-speed version of the state-of-the-art Kimi K2 mixture-of-experts (MoE) language model, with the same 32 billion activated parameters and 1 trillion total parameters, optimized for output speeds of up to 60 tokens per second, peaking at 100 tokens per second.`, + }, } as const satisfies Record export const MOONSHOT_DEFAULT_TEMPERATURE = 0.6 From 7afa9a684650a68ec4f605e36cd235138c1d23e4 Mon Sep 17 00:00:00 2001 From: wangxiaolong Date: Tue, 2 Sep 2025 22:01:38 +0800 Subject: [PATCH 2/2] feat: update Kimi K2 Turbo pricing and cache read prices --- packages/types/src/providers/moonshot.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/types/src/providers/moonshot.ts b/packages/types/src/providers/moonshot.ts index 38108ed060a..c82c54d6a77 100644 --- a/packages/types/src/providers/moonshot.ts +++ b/packages/types/src/providers/moonshot.ts @@ -22,10 +22,10 @@ export const moonshotModels = { contextWindow: 131_072, supportsImages: false, supportsPromptCache: true, - inputPrice: 0.6, // $0.60 per million tokens (cache miss) - outputPrice: 2.5, // $2.50 per million tokens + inputPrice: 2.4, // $2.40 per million tokens (cache miss) + outputPrice: 10, // $10.00 per million tokens cacheWritesPrice: 0, // $0 per million tokens (cache miss) - cacheReadsPrice: 0.15, // $0.15 per million tokens (cache hit) + cacheReadsPrice: 0.6, // $0.60 per million tokens (cache hit) description: `Kimi K2 Turbo is a high-speed version of the state-of-the-art Kimi K2 mixture-of-experts (MoE) language model, with the same 32 billion activated parameters and 1 trillion total parameters, optimized for output speeds of up to 60 tokens per second, peaking at 100 tokens per second.`, }, } as const satisfies Record