From fe85ad4eb390b5121d0a5633e5b7512ce8048e00 Mon Sep 17 00:00:00 2001 From: sirius <95621941@qq.com> Date: Wed, 8 Jul 2026 11:50:28 +0800 Subject: [PATCH] fix kimi highspeed pricing for token costs --- model_prices_and_context_window.json | 6 +++--- tests/test_litellm/test_utils.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json index f0cd408b192..5029a57b782 100644 --- a/model_prices_and_context_window.json +++ b/model_prices_and_context_window.json @@ -38552,14 +38552,14 @@ "supports_reasoning": true }, "openai/kimi-k2.7-code-highspeed": { - "cache_read_input_token_cost": 1.9e-07, - "input_cost_per_token": 9.5e-07, + "cache_read_input_token_cost": 3.8e-07, + "input_cost_per_token": 1.9e-06, "litellm_provider": "openai", "max_input_tokens": 262144, "max_output_tokens": 262144, "max_tokens": 262144, "mode": "chat", - "output_cost_per_token": 4e-06, + "output_cost_per_token": 8e-06, "supports_function_calling": true, "supports_reasoning": true }, diff --git a/tests/test_litellm/test_utils.py b/tests/test_litellm/test_utils.py index 058a2aa409e..03741c81443 100644 --- a/tests/test_litellm/test_utils.py +++ b/tests/test_litellm/test_utils.py @@ -3080,9 +3080,9 @@ def test_model_info_for_openai_kimi_and_glm_aliases(local_model_cost_map): ) assert kimi_highspeed is not None assert kimi_highspeed["litellm_provider"] == "openai" - assert kimi_highspeed["input_cost_per_token"] == 9.5e-07 - assert kimi_highspeed["output_cost_per_token"] == 4e-06 - assert kimi_highspeed["cache_read_input_token_cost"] == 1.9e-07 + assert kimi_highspeed["input_cost_per_token"] == 1.9e-06 + assert kimi_highspeed["output_cost_per_token"] == 8e-06 + assert kimi_highspeed["cache_read_input_token_cost"] == 3.8e-07 assert kimi_highspeed["max_input_tokens"] == 262144 glm = litellm.get_model_info(model="openai/glm-5.2", custom_llm_provider="openai")