From 7c13a94a2436948eedaa7de7d3664280166141a7 Mon Sep 17 00:00:00 2001 From: CellenLee <99465814+CellenLee@users.noreply.github.com> Date: Thu, 4 Sep 2025 15:38:17 +0800 Subject: [PATCH] feat: update kimi-k2-0905-preview and kimi-k2-turbo-preview --- packages/types/src/providers/moonshot.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/types/src/providers/moonshot.ts b/packages/types/src/providers/moonshot.ts index c82c54d6a7..18562d0d2b 100644 --- a/packages/types/src/providers/moonshot.ts +++ b/packages/types/src/providers/moonshot.ts @@ -3,7 +3,7 @@ import type { ModelInfo } from "../model.js" // https://platform.moonshot.ai/ export type MoonshotModelId = keyof typeof moonshotModels -export const moonshotDefaultModelId: MoonshotModelId = "kimi-k2-0711-preview" +export const moonshotDefaultModelId: MoonshotModelId = "kimi-k2-0905-preview" export const moonshotModels = { "kimi-k2-0711-preview": { @@ -17,9 +17,20 @@ 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-0905-preview": { + maxTokens: 32_000, + contextWindow: 262_144, + 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 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, + contextWindow: 262_144, supportsImages: false, supportsPromptCache: true, inputPrice: 2.4, // $2.40 per million tokens (cache miss)