{"slug":"mistral-medium-3-5","name":"Mistral Medium 3.5","family":"mistral","family_name":"Mistral","developer":"Mistral","color":"#f2b705","status":"active","released":"2026-04-30","snapshot_of":null,"open":false,"context":262144,"max_output":209715,"knowledge_cutoff":null,"modalities":["text","image","file"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":"mistralai/Mistral-Medium-3.5-128B","speed":101,"latency":0.43,"short":"A closed-weights model from Mistral, released April 2026, with a 262k context window and tool calling. Its benchmark results sit below the registry median and its price above it.","strengths":["262k context window and up to 209k response tokens","Accepts text, image and file input","Supports tool calling, reasoning mode and structured output"],"weaknesses":["LMArena text score 1420.7, 74th of 114, below the 1437.6 median","Epoch Capabilities Index 141.6, 90th of 98, below the 154.5 median","Blended price $3 per million tokens, above the $1 median"],"best_for":"Agents that need long context, image or file input and tool calling, where higher cost is acceptable.","long":"Mistral Medium 3.5 is a closed-weights model from Mistral, released April 30, 2026, and offered through Mistral and OpenRouter. Its clearest strengths are in its specification: a 262k context window, responses up to 209k tokens, text, image and file input, and support for tool calling, reasoning mode and structured output.\n\nIts benchmark results are weaker against the registry. It scores 1420.7 on LMArena text, 74th of 114 and below the median of 1437.6, and 141.6 on the Epoch Capabilities Index, 90th of 98 against a median of 154.5. Only these two results are listed, so the picture is limited.\n\nPrice is the other consideration. It costs $1.50 per million input tokens and $7.50 per million output tokens, a blended $3 per million against a registry median near $1.","described":true,"gateway":false,"byok":true,"string":"mistral:mistral-medium-3-5","input":1.5,"output":7.5,"cache_read":0.15,"blended":3,"efficiency":null,"bench":{"lmarena":1420.7,"eci":141.6},"offers":[{"provider":"mistral","name":"Mistral","model_id":"mistral-medium-3-5","api":["openai"],"input":1.5,"output":7.5,"cache_read":0.15,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":262144,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"mistral:mistral-medium-3-5","gateway_string":null},{"provider":"openrouter","name":"OpenRouter","model_id":"mistralai/mistral-medium-3-5","api":["openai"],"input":1.5,"output":7.5,"cache_read":null,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":262144,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:mistralai/mistral-medium-3-5","gateway_string":null}],"ranks":{"intelligence":null,"popularity":154,"efficiency":null,"speed":40,"price":132},"top_score":0.0857,"about":["A closed-weights model from Mistral, released April 2026, with a 262k context window and tool calling. Its benchmark results sit below the registry median and its price above it.","Mistral Medium 3.5 is a closed-weights model from Mistral, released April 30, 2026, and offered through Mistral and OpenRouter. Its clearest strengths are in its specification: a 262k context window, responses up to 209k tokens, text, image and file input, and support for tool calling, reasoning mode and structured output.","Its benchmark results are weaker against the registry. It scores 1420.7 on LMArena text, 74th of 114 and below the median of 1437.6, and 141.6 on the Epoch Capabilities Index, 90th of 98 against a median of 154.5. Only these two results are listed, so the picture is limited.","Price is the other consideration. It costs $1.50 per million input tokens and $7.50 per million output tokens, a blended $3 per million against a registry median near $1."],"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:mistral-medium-3-5', 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:mistral-medium-3-5', 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:mistral-medium-3-5',\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:mistral-medium-3-5')\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:mistral-medium-3-5'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport MISTRAL_API_KEY='...'\n\npi --model 'mistral/mistral-medium-3-5'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport MISTRAL_API_KEY='...'\n\ncodex --model 'mistral-medium-3-5' \\\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('mistral-medium-3-5'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[{"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)"},{"id":"eci","name":"Epoch Capabilities Index","unit":"","desc":"Epoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index","category":"reference","floor":80,"ceiling":180,"url":"https://epoch.ai/benchmarks/eci","credit":"Epoch AI (CC BY 4.0)"}],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}