Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions litellm/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,9 @@
"Qwen/Qwen3-235B-A22B-Thinking-2507",
# moonshotai
"moonshotai/Kimi-K2-Instruct",
"moonshotai/Kimi-K2.5",
# MiniMaxAI
"MiniMaxAI/MiniMax-M2.5",
# meta models
"meta-llama/Llama-3.1-8B-Instruct",
"meta-llama/Llama-3.3-70B-Instruct",
Expand Down
28 changes: 28 additions & 0 deletions litellm/model_prices_and_context_window_backup.json
Original file line number Diff line number Diff line change
Expand Up @@ -32396,6 +32396,34 @@
"litellm_provider": "wandb",
"mode": "chat"
},
"wandb/moonshotai/Kimi-K2.5": {
"max_tokens": 262144,
"max_input_tokens": 262144,
"max_output_tokens": 262144,
"cache_read_input_token_cost": 1e-07,
"input_cost_per_token": 6e-07,
"output_cost_per_token": 3e-06,
"litellm_provider": "wandb",
"mode": "chat",
"source": "https://wandb.ai/inference/coreweave/cw_moonshotai_Kimi-K2.5",
"supports_function_calling": true,
"supports_reasoning": true,
"supports_response_schema": true,
"supports_vision": true
},
"wandb/MiniMaxAI/MiniMax-M2.5": {
"max_tokens": 197000,
"max_input_tokens": 197000,
"max_output_tokens": 197000,
"input_cost_per_token": 3e-07,
"output_cost_per_token": 1.2e-06,
"litellm_provider": "wandb",
"mode": "chat",
"source": "https://wandb.ai/inference/coreweave/cw_MiniMaxAI_MiniMax-M2.5",
"supports_function_calling": true,
"supports_reasoning": true,
"supports_response_schema": true
},
"wandb/meta-llama/Llama-3.1-8B-Instruct": {
"max_tokens": 128000,
"max_input_tokens": 128000,
Expand Down
28 changes: 28 additions & 0 deletions model_prices_and_context_window.json
Original file line number Diff line number Diff line change
Expand Up @@ -32381,6 +32381,34 @@
"litellm_provider": "wandb",
"mode": "chat"
},
"wandb/moonshotai/Kimi-K2.5": {
"max_tokens": 262144,
"max_input_tokens": 262144,
"max_output_tokens": 262144,
"cache_read_input_token_cost": 1e-07,
"input_cost_per_token": 6e-07,
"output_cost_per_token": 3e-06,
"litellm_provider": "wandb",
"mode": "chat",
"source": "https://wandb.ai/inference/coreweave/cw_moonshotai_Kimi-K2.5",
"supports_function_calling": true,
"supports_reasoning": true,
"supports_response_schema": true,
"supports_vision": true
},
"wandb/MiniMaxAI/MiniMax-M2.5": {
"max_tokens": 197000,
"max_input_tokens": 197000,
"max_output_tokens": 197000,
"input_cost_per_token": 3e-07,
"output_cost_per_token": 1.2e-06,
"litellm_provider": "wandb",
"mode": "chat",
"source": "https://wandb.ai/inference/coreweave/cw_MiniMaxAI_MiniMax-M2.5",
"supports_function_calling": true,
"supports_reasoning": true,
"supports_response_schema": true
},
"wandb/meta-llama/Llama-3.1-8B-Instruct": {
"max_tokens": 128000,
"max_input_tokens": 128000,
Expand Down
17 changes: 17 additions & 0 deletions tests/test_litellm/test_cost_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,23 @@ def test_baseten_model_api_pricing_entries():
assert model_info["output_cost_per_token"] == output_cost


def test_wandb_model_api_pricing_entries():
os.environ["LITELLM_LOCAL_MODEL_COST_MAP"] = "True"
litellm.model_cost = litellm.get_model_cost_map(url="")

expected_pricing = {
"wandb/moonshotai/Kimi-K2.5": (6e-07, 3e-06),
"wandb/MiniMaxAI/MiniMax-M2.5": (3e-07, 1.2e-06),
}

for model_name, (input_cost, output_cost) in expected_pricing.items():
model_info = litellm.model_cost.get(model_name)
assert model_info is not None, f"Missing model pricing entry: {model_name}"
assert model_info["litellm_provider"] == "wandb"
assert model_info["input_cost_per_token"] == input_cost
assert model_info["output_cost_per_token"] == output_cost


def test_cost_calculator_with_usage(monkeypatch):
os.environ["LITELLM_LOCAL_MODEL_COST_MAP"] = "True"
litellm.model_cost = litellm.get_model_cost_map(url="")
Expand Down
Loading