{"slug":"minimax-m3.1-flash","name":"MiniMax M3.1 Flash","family":"minimax","family_name":"MiniMax","developer":"MiniMax","color":"#e8467c","status":"active","released":"2026-10-19","snapshot_of":null,"open":true,"context":1048576,"max_output":524288,"knowledge_cutoff":null,"modalities":["text","image","video"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":"MiniMaxAI/MiniMax-M3.1-Flash","speed":124.5,"latency":0.71,"short":"An open-weights, low-priced model from MiniMax with a 1M-token context window and image and video input. It has no benchmark results in the registry, so its profile rests on specifications and price.","strengths":["Input costs $0.15 per million tokens, well below the registry median blended price","Context window of 1M tokens with responses up to 524k tokens","Accepts text, image and video input, with tool calling and structured output","Ranks 6th of 194 for popularity among models in the registry"],"weaknesses":["No benchmark results, so output quality cannot be compared with other models","Available from three providers, with no built-in Pydantic AI Gateway support","No intelligence index or value rank is available"],"best_for":"Cost-sensitive agents that process long documents or mixed text, image and video input, where benchmark evidence is not required.","long":"MiniMax M3.1 Flash is an open-weights model released in October 2026. It is priced at the low end of the registry, at $0.15 per million input tokens and $0.60 per million output tokens, giving a blended price of about $0.26 per million tokens against a registry median of about $1.01. It ranks 38th of 194 on price, where 1 is the cheapest.\n\nThe model has a context window of 1M tokens and can return responses of up to 524k tokens. It accepts text, image and video input and supports tool calling, reasoning mode and structured output. It is served by MiniMax, Novita and Together AI. Its popularity rank of 6th of 194 is high relative to the rest of the registry.\n\nThe registry holds no benchmark results for this model, and no intelligence index score, so its quality relative to other models cannot be judged from the data given. Its knowledge cutoff is not recorded.","described":true,"gateway":false,"byok":true,"string":"together:MiniMaxAI/MiniMax-M3.1-Flash","input":0.15,"output":0.6,"cache_read":0.015,"blended":0.2625,"efficiency":null,"bench":{},"offers":[{"provider":"minimax","name":"MiniMax","model_id":"MiniMax-M3.1-Flash","api":["openai"],"input":0.15,"output":0.6,"cache_read":0.015,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":1000000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":null,"gateway_string":null},{"provider":"novita","name":"Novita","model_id":"minimax/minimax-m3.1-flash","api":["openai"],"input":0.15,"output":0.6,"cache_read":0.015,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":1000000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":null,"gateway_string":null},{"provider":"together","name":"Together AI","model_id":"MiniMaxAI/MiniMax-M3.1-Flash","api":["openai"],"input":0.15,"output":0.6,"cache_read":0.015,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":1048576,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"together:MiniMaxAI/MiniMax-M3.1-Flash","gateway_string":null}],"ranks":{"intelligence":null,"popularity":6,"efficiency":null,"speed":24,"price":38},"top_score":0.4381,"about":["An open-weights, low-priced model from MiniMax with a 1M-token context window and image and video input. It has no benchmark results in the registry, so its profile rests on specifications and price.","MiniMax M3.1 Flash is an open-weights model released in October 2026. It is priced at the low end of the registry, at $0.15 per million input tokens and $0.60 per million output tokens, giving a blended price of about $0.26 per million tokens against a registry median of about $1.01. It ranks 38th of 194 on price, where 1 is the cheapest.","The model has a context window of 1M tokens and can return responses of up to 524k tokens. It accepts text, image and video input and supports tool calling, reasoning mode and structured output. It is served by MiniMax, Novita and Together AI. Its popularity rank of 6th of 194 is high relative to the rest of the registry.","The registry holds no benchmark results for this model, and no intelligence index score, so its quality relative to other models cannot be judged from the data given. Its knowledge cutoff is not recorded."],"examples":[{"file":"hello.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['TOGETHER_API_KEY'] = '...'\n\nagent = Agent('together:MiniMaxAI/MiniMax-M3.1-Flash', 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['TOGETHER_API_KEY'] = '...'\n\n\nclass CityLocation(BaseModel):\n    city: str\n    country: str\n\n\nagent = Agent('together:MiniMaxAI/MiniMax-M3.1-Flash', 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['TOGETHER_API_KEY'] = '...'\n\nagent = Agent(\n    'together:MiniMaxAI/MiniMax-M3.1-Flash',\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['TOGETHER_API_KEY'] = '...'\n\nagent = Agent('together:MiniMaxAI/MiniMax-M3.1-Flash')\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 TOGETHER_API_KEY='...'\n\nuvx pax --model 'together:MiniMaxAI/MiniMax-M3.1-Flash'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport TOGETHER_API_KEY='...'\n\npi --model 'together/MiniMaxAI/MiniMax-M3.1-Flash'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport TOGETHER_API_KEY='...'\n\ncodex --model 'MiniMaxAI/MiniMax-M3.1-Flash' \\\n  -c model_provider='together' \\\n  -c model_providers.together.name='MiniMax' \\\n  -c model_providers.together.base_url='https://api.together.example/v1' \\\n  -c model_providers.together.env_key='TOGETHER_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.TOGETHER_API_KEY = '...'\n\nconst together = createOpenAICompatible({\n  name: 'together',\n  baseURL: 'https://api.together.example/v1',\n  apiKey: process.env.TOGETHER_API_KEY,\n})\n\nconst { text } = await generateText({\n  model: together('MiniMaxAI/MiniMax-M3.1-Flash'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}