{"slug":"minimax-m2.7","name":"MiniMax M2.7","family":"minimax","family_name":"MiniMax","developer":"MiniMax","color":"#e8467c","status":"active","released":"2026-03-18","snapshot_of":null,"open":true,"context":204800,"max_output":131072,"knowledge_cutoff":null,"modalities":["text"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":false,"huggingface":"MiniMaxAI/MiniMax-M2.7","speed":169,"latency":0.92,"short":"An open-weights model from MiniMax, released March 2026, priced low relative to the registry. Most of its benchmark results sit at or below the registry median.","strengths":["Input costs $0.27 per million tokens, well below the registry median blend","Terminal-Bench score of 45.1%, 17th of 35","204k context window with tool calling and reasoning mode","Open weights, available from three providers including OpenRouter"],"weaknesses":["Intelligence index of 51.0, 87th of 114 and below the 59.5 median","No structured output support","LMArena text rating of 1404.6, 91st of 114, below the 1437.6 median"],"best_for":"Cost-sensitive agents that run terminal or tool-calling tasks where a long context matters more than top general scores.","long":"MiniMax M2.7 is an open-weights model released in March 2026. It accepts text only and supports tool calling and a reasoning mode, with a 204k token context window. It does not support structured output, and its knowledge cutoff is not stated.\n\nIts clearest advantage is price. Input costs $0.27 per million tokens and output $1.08, a blended price of about $0.47 against a registry median of about $1.01. That gives it an efficiency rank of 23rd of 194, though its raw intelligence rank is 84th of 194.\n\nBenchmark results are mixed. Terminal-Bench is a relative strength at 45.1%, 17th of 35 and just above the median. Most other results sit at or below the median, including the composite intelligence index at 51.0 against 59.5, and the LMArena text rating.","described":true,"gateway":false,"byok":true,"string":"openrouter:minimax/minimax-m2.7","input":0.27,"output":1.08,"cache_read":0.054,"blended":0.4725,"efficiency":107.9,"bench":{"index":51,"terminal":45.1,"scicode":50.1,"webdev":1397.5,"lmarena":1404.6},"offers":[{"provider":"minimax","name":"MiniMax","model_id":"MiniMax-M2.7","api":["openai"],"input":0.3,"output":1.2,"cache_read":0.06,"cache_write":0.375,"input_tiers":[],"output_tiers":[],"context":204800,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":null,"gateway_string":null},{"provider":"openrouter","name":"OpenRouter","model_id":"minimax/minimax-m2.7","api":["openai"],"input":0.27,"output":1.08,"cache_read":0.054,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:minimax/minimax-m2.7","gateway_string":null},{"provider":"novita","name":"Novita","model_id":"minimax/minimax-m2.7","api":["openai"],"input":0.3,"output":1.2,"cache_read":0.06,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":204800,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":null,"gateway_string":null}],"ranks":{"intelligence":84,"popularity":126,"efficiency":23,"speed":12,"price":60},"top_score":0.5254,"about":["An open-weights model from MiniMax, released March 2026, priced low relative to the registry. Most of its benchmark results sit at or below the registry median.","MiniMax M2.7 is an open-weights model released in March 2026. It accepts text only and supports tool calling and a reasoning mode, with a 204k token context window. It does not support structured output, and its knowledge cutoff is not stated.","Its clearest advantage is price. Input costs $0.27 per million tokens and output $1.08, a blended price of about $0.47 against a registry median of about $1.01. That gives it an efficiency rank of 23rd of 194, though its raw intelligence rank is 84th of 194.","Benchmark results are mixed. Terminal-Bench is a relative strength at 45.1%, 17th of 35 and just above the median. Most other results sit at or below the median, including the composite intelligence index at 51.0 against 59.5, and the LMArena text rating."],"examples":[{"file":"hello.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent('openrouter:minimax/minimax-m2.7', instructions='Be concise, reply with one sentence.')\n\nresult = agent.run_sync('Where does \"hello world\" come from?')\nprint(result.output)","soon":false},{"file":"structured_output.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic import BaseModel\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\n\nclass CityLocation(BaseModel):\n    city: str\n    country: str\n\n\nagent = Agent('openrouter:minimax/minimax-m2.7', output_type=CityLocation)\n\nresult = agent.run_sync('Where were the olympics held in 2012?')\nprint(result.output)\n#> city='London' country='United Kingdom'","soon":false},{"file":"tools.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\nimport random\n\nfrom pydantic_ai import Agent, RunContext\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent(\n    'openrouter:minimax/minimax-m2.7',\n    deps_type=str,\n    instructions=\"You're a dice game, roll the die and see if it matches the user's guess.\",\n)\n\n\n@agent.tool_plain\ndef roll_dice() -> str:\n    \"\"\"Roll a six-sided die and return the result.\"\"\"\n    return str(random.randint(1, 6))\n\n\n@agent.tool\ndef get_player_name(ctx: RunContext[str]) -> str:\n    \"\"\"Get the player's name.\"\"\"\n    return ctx.deps\n\n\nresult = agent.run_sync('My guess is 4', deps='Anne')\nprint(result.output)","soon":false},{"file":"streaming.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport asyncio\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent('openrouter:minimax/minimax-m2.7')\n\n\nasync def main():\n    async with agent.run_stream('Explain prompt caching in three bullet points.') as response:\n        async for text in response.stream_text(delta=True):\n            print(text, end='', flush=True)\n\n\nasyncio.run(main())","soon":false},{"file":"pax.sh","lang":"sh","code":"export OPENROUTER_API_KEY='...'\n\nuvx pax --model 'openrouter:minimax/minimax-m2.7'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport OPENROUTER_API_KEY='...'\n\npi --model 'openrouter/minimax/minimax-m2.7'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'minimax/minimax-m2.7' \\\n  -c model_provider='openrouter' \\\n  -c model_providers.openrouter.name='MiniMax' \\\n  -c model_providers.openrouter.base_url='https://api.openrouter.example/v1' \\\n  -c model_providers.openrouter.env_key='OPENROUTER_API_KEY'","soon":false},{"file":"ai_sdk.ts","lang":"ts","code":"// npm install ai @ai-sdk/openai-compatible\nimport { createOpenAICompatible } from '@ai-sdk/openai-compatible'\nimport { generateText } from 'ai'\n\nprocess.env.OPENROUTER_API_KEY = '...'\n\nconst openrouter = createOpenAICompatible({\n  name: 'openrouter',\n  baseURL: 'https://api.openrouter.example/v1',\n  apiKey: process.env.OPENROUTER_API_KEY,\n})\n\nconst { text } = await generateText({\n  model: openrouter('minimax/minimax-m2.7'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[{"id":"index","name":"Intelligence index","unit":"","desc":"Our composite of the benchmarks below, 0-100","category":"reference","floor":0,"ceiling":100,"url":"/methodology/","credit":"Pydantic, from the sources credited below"},{"id":"terminal","name":"Terminal-Bench","unit":"%","desc":"Tasks completed in a terminal; the best result of any agent using the model","category":"coding","floor":0,"ceiling":100,"url":"https://www.tbench.ai/leaderboard/terminal-bench/2.0","credit":"Terminal-Bench, via Epoch AI (CC BY 4.0)"},{"id":"scicode","name":"SciCode","unit":"%","desc":"Scientific programming problems written by researchers","category":"coding","floor":0,"ceiling":100,"url":"https://scicode-bench.github.io/","credit":"SciCode, via Epoch AI (CC BY 4.0)"},{"id":"webdev","name":"WebDev Arena","unit":"","desc":"Rating from human votes on web apps the models built","category":"coding","floor":1000,"ceiling":1900,"url":"https://web.lmarena.ai/leaderboard","credit":"LMArena, via Epoch AI (CC BY 4.0)"},{"id":"lmarena","name":"LMArena text","unit":"","desc":"Rating from blind human votes between pairs of chat responses","category":"preference","floor":1100,"ceiling":1600,"url":"https://lmarena.ai/leaderboard/text","credit":"LMArena (CC BY 4.0)"}],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}