Skip to content

feat(models): add openrouter/minimax/minimax-m2.7 model pricing#24631

Open
1Ckpwee wants to merge 1 commit intoBerriAI:mainfrom
1Ckpwee:add-openrouter-minimax-m2.7
Open

feat(models): add openrouter/minimax/minimax-m2.7 model pricing#24631
1Ckpwee wants to merge 1 commit intoBerriAI:mainfrom
1Ckpwee:add-openrouter-minimax-m2.7

Conversation

@1Ckpwee
Copy link

@1Ckpwee 1Ckpwee commented Mar 26, 2026

Summary

Adds openrouter/minimax/minimax-m2.7 to model_prices_and_context_window.json and the backup file, as requested in #24601.

Model Details (from OpenRouter)

Field Value
Input cost $0.30 / 1M tokens (3e-07 per token)
Output cost $1.20 / 1M tokens (1.2e-06 per token)
Cache read cost $0.06 / 1M tokens (6e-08 per token)
Max input tokens 204,800
Max output tokens 131,072
Function calling
Tool choice
Reasoning
Vision
Prompt caching

Changes

  • Updated model_prices_and_context_window.json
  • Updated litellm/model_prices_and_context_window_backup.json

Closes #24601

Add MiniMax M2.7 model entry to both model_prices_and_context_window.json
and the backup file.

Model specs from OpenRouter API:
- Input: $0.30/M tokens, Output: $1.20/M tokens
- Cache read: $0.06/M tokens
- Context: 204,800 tokens, Max output: 131,072 tokens
- Supports: function calling, tool choice, reasoning, prompt caching

Closes BerriAI#24601
@vercel
Copy link

vercel bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
litellm Ready Ready Preview, Comment Mar 26, 2026 2:16pm

Request Review

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codspeed-hq
Copy link
Contributor

codspeed-hq bot commented Mar 26, 2026

Merging this PR will not alter performance

✅ 16 untouched benchmarks


Comparing 1Ckpwee:add-openrouter-minimax-m2.7 (9ffd263) with main (bdf4acc)

Open in CodSpeed

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Mar 26, 2026

Greptile Summary

This PR adds pricing and capability metadata for the openrouter/minimax/minimax-m2.7 model to both model_prices_and_context_window.json and its backup, resolving #24601.

  • Adds openrouter/minimax/minimax-m2.7 entry with correct pricing: input 3e-07 ($0.30/1M), output 1.2e-06 ($1.20/1M), cache read 6e-08 ($0.06/1M)
  • Sets max_input_tokens: 204800 and max_output_tokens: 131072, consistent with OpenRouter's published specs
  • Capability flags (supports_function_calling, supports_tool_choice, supports_reasoning, supports_prompt_caching) all match the OpenRouter model page
  • Both files (model_prices_and_context_window.json and the backup) are updated identically and in sync
  • Entry structure follows the same pattern as the sibling openrouter/minimax/minimax-m2.5 entry

Confidence Score: 5/5

Safe to merge — additive-only change to a data file with no logic modifications.

The change is a pure data addition to both JSON pricing files. All numeric values are arithmetically consistent with the PR description, the entry structure mirrors the existing minimax model entries, and both files are kept in sync. No code paths are modified.

No files require special attention.

Important Files Changed

Filename Overview
model_prices_and_context_window.json Adds openrouter/minimax/minimax-m2.7 pricing entry; values are arithmetically correct and consistent with sibling minimax model entries.
litellm/model_prices_and_context_window_backup.json Backup file updated in lock-step with the primary JSON; diff is byte-for-byte identical to the primary file change.

Entity Relationship Diagram

%%{init: {'theme': 'neutral'}}%%
erDiagram
    MODEL_ENTRY {
        string name "openrouter/minimax/minimax-m2.7"
        float input_cost_per_token "3e-07"
        float output_cost_per_token "1.2e-06"
        float cache_read_input_token_cost "6e-08"
        string litellm_provider "openrouter"
        int max_input_tokens "204800"
        int max_output_tokens "131072"
        int max_tokens "131072"
        string mode "chat"
        bool supports_function_calling "true"
        bool supports_tool_choice "true"
        bool supports_reasoning "true"
        bool supports_vision "false"
        bool supports_prompt_caching "true"
        bool supports_computer_use "false"
    }
Loading

Reviews (1): Last reviewed commit: "feat(models): add openrouter/minimax/min..." | Re-trigger Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add "openrouter/minimax/minimax-m2.7" in "model_prices_and_context_window.json"

2 participants