feat: update kimi-k2-0905-preview and kimi-k2-turbo-preview (#7663)

This commit is contained in:
CellenLee 2025-09-05 11:27:15 +08:00 • committed by GitHub
parent bca6e86d2b
commit d9f80f175f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)