{"slug":"ministral-8b-2512","name":"Ministral 3 8B 2512","family":"mistral","family_name":"Mistral","developer":"Mistral","color":"#f2b705","status":"active","released":"2025-12-02","snapshot_of":null,"open":true,"context":262144,"max_output":262144,"knowledge_cutoff":null,"modalities":["text","image"],"output_modalities":["text"],"reasoning":false,"tools":true,"structured_output":true,"huggingface":"mistralai/Ministral-3-8B-Instruct-2512","speed":98,"latency":0.44,"short":"A small open-weight model from Mistral, released December 2025, with image input, tool calling and a 262k context window. It is priced in the lower tier of the registry, at $0.15 per million tokens.","strengths":["Blended price of $0.15 per million tokens, 15th cheapest of 194","Accepts text and image input","Supports tool calling and structured output","262k context window"],"weaknesses":["No benchmark results are available for comparison","Reasoning mode is not offered","Popularity rank of 151 of 194"],"best_for":"Low-cost agents and high-volume tasks that need tool calling, structured output or image input and a long context.","long":"Ministral 3 8B 2512 is an open-weight model from Mistral, released in December 2025. It takes text and image input and returns text. It supports tool calling and structured output, and its context window is 262k tokens. Reasoning mode is not offered. Its knowledge cutoff is not stated.\n\nThe main point for someone choosing a model is price. At $0.15 per million tokens for both input and output, it ranks 15th cheapest of the 194 models in the registry, well below the median blended price of about $1.01. That makes it a candidate for workloads where cost per call matters more than top-end capability.\n\nThe registry holds no benchmark results for this model, so its capability cannot be compared with others on measured scores. It is available directly from Mistral and through OpenRouter, and its popularity rank is 151 of 194.","described":true,"gateway":false,"byok":true,"string":"mistral:ministral-8b-2512","input":0.15,"output":0.15,"cache_read":0.015,"blended":0.15,"efficiency":null,"bench":{},"offers":[{"provider":"mistral","name":"Mistral","model_id":"ministral-8b-2512","api":["openai"],"input":0.15,"output":0.15,"cache_read":0.015,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":262144,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"mistral:ministral-8b-2512","gateway_string":null},{"provider":"openrouter","name":"OpenRouter","model_id":"mistralai/ministral-8b-2512","api":["openai"],"input":0.15,"output":0.15,"cache_read":0.015,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":262144,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:mistralai/ministral-8b-2512","gateway_string":null}],"ranks":{"intelligence":null,"popularity":151,"efficiency":null,"speed":42,"price":15},"top_score":0.0929,"about":["A small open-weight model from Mistral, released December 2025, with image input, tool calling and a 262k context window. It is priced in the lower tier of the registry, at $0.15 per million tokens.","Ministral 3 8B 2512 is an open-weight model from Mistral, released in December 2025. It takes text and image input and returns text. It supports tool calling and structured output, and its context window is 262k tokens. Reasoning mode is not offered. Its knowledge cutoff is not stated.","The main point for someone choosing a model is price. At $0.15 per million tokens for both input and output, it ranks 15th cheapest of the 194 models in the registry, well below the median blended price of about $1.01. That makes it a candidate for workloads where cost per call matters more than top-end capability.","The registry holds no benchmark results for this model, so its capability cannot be compared with others on measured scores. It is available directly from Mistral and through OpenRouter, and its popularity rank is 151 of 194."],"examples":[{"file":"hello.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['MISTRAL_API_KEY'] = '...'\n\nagent = Agent('mistral:ministral-8b-2512', 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['MISTRAL_API_KEY'] = '...'\n\n\nclass CityLocation(BaseModel):\n    city: str\n    country: str\n\n\nagent = Agent('mistral:ministral-8b-2512', 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['MISTRAL_API_KEY'] = '...'\n\nagent = Agent(\n    'mistral:ministral-8b-2512',\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['MISTRAL_API_KEY'] = '...'\n\nagent = Agent('mistral:ministral-8b-2512')\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 MISTRAL_API_KEY='...'\n\nuvx pax --model 'mistral:ministral-8b-2512'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport MISTRAL_API_KEY='...'\n\npi --model 'mistral/ministral-8b-2512'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport MISTRAL_API_KEY='...'\n\ncodex --model 'ministral-8b-2512' \\\n  -c model_provider='mistral' \\\n  -c model_providers.mistral.name='Mistral' \\\n  -c model_providers.mistral.base_url='https://api.mistral.example/v1' \\\n  -c model_providers.mistral.env_key='MISTRAL_API_KEY'","soon":false},{"file":"ai_sdk.ts","lang":"ts","code":"// npm install ai @ai-sdk/mistral\nimport { createMistral } from '@ai-sdk/mistral'\nimport { generateText } from 'ai'\n\nprocess.env.MISTRAL_API_KEY = '...'\n\nconst mistral = createMistral({ apiKey: process.env.MISTRAL_API_KEY })\n\nconst { text } = await generateText({\n  model: mistral('ministral-8b-2512'),\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}}