From 13eee350797f1e472d5a729efdd163ec4a6333d8 Mon Sep 17 00:00:00 2001 From: Sakthi Harish Date: Thu, 26 Mar 2026 19:03:41 +0530 Subject: [PATCH] feat(models): add openrouter/minimax/minimax-m2.7 to model pricing registry The minimax-m2.7 model is available on OpenRouter and is the next release in the MiniMax M2 series following minimax-m2.5. Without an entry here, any call to this model through the openrouter provider will fail at cost calculation with an unknown model error. Added the entry to both the main pricing file and the backup file as required by the project structure. Values sourced from the OpenRouter model listing: - input_cost_per_token: $0.30/M - output_cost_per_token: $1.20/M - max_input_tokens: 204800 - max_output_tokens: 65536 Closes #24601 Signed-off-by: Sakthi Harish --- .../model_prices_and_context_window_backup.json | 17 +++++++++++++++++ model_prices_and_context_window.json | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index c53ee943c58..9ca9b7b69c0 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -25394,6 +25394,23 @@ "supports_prompt_caching": true, "supports_computer_use": false }, + "openrouter/minimax/minimax-m2.7": { + "input_cost_per_token": 3e-07, + "output_cost_per_token": 1.2e-06, + "cache_read_input_token_cost": 1.5e-07, + "litellm_provider": "openrouter", + "max_input_tokens": 204800, + "max_output_tokens": 65536, + "max_tokens": 65536, + "mode": "chat", + "source": "https://openrouter.ai/minimax/minimax-m2.7", + "supports_function_calling": true, + "supports_tool_choice": true, + "supports_reasoning": true, + "supports_vision": false, + "supports_prompt_caching": true, + "supports_computer_use": false + }, "openrouter/openrouter/auto": { "input_cost_per_token": 0, "output_cost_per_token": 0, diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json index c53ee943c58..9ca9b7b69c0 100644 --- a/model_prices_and_context_window.json +++ b/model_prices_and_context_window.json @@ -25394,6 +25394,23 @@ "supports_prompt_caching": true, "supports_computer_use": false }, + "openrouter/minimax/minimax-m2.7": { + "input_cost_per_token": 3e-07, + "output_cost_per_token": 1.2e-06, + "cache_read_input_token_cost": 1.5e-07, + "litellm_provider": "openrouter", + "max_input_tokens": 204800, + "max_output_tokens": 65536, + "max_tokens": 65536, + "mode": "chat", + "source": "https://openrouter.ai/minimax/minimax-m2.7", + "supports_function_calling": true, + "supports_tool_choice": true, + "supports_reasoning": true, + "supports_vision": false, + "supports_prompt_caching": true, + "supports_computer_use": false + }, "openrouter/openrouter/auto": { "input_cost_per_token": 0, "output_cost_per_token": 0,