{"slug":"mistral-small-2603","name":"Mistral Small 4","family":"mistral","family_name":"Mistral","developer":"Mistral","color":"#f2b705","status":"active","released":"2026-03-16","snapshot_of":null,"open":true,"context":262144,"max_output":256000,"knowledge_cutoff":"2025-06","modalities":["text","image"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":"mistralai/Mistral-Small-4-119B-2603","speed":103,"latency":0.46,"short":"An open-weights, low-priced model from Mistral with image input, tool calling and reasoning mode. It has no benchmark results in the registry, so it is described here by its specifications and price.","strengths":["Input costs $0.15 per million tokens, well below the registry median","Blended price of $0.26 per million tokens, 38th of 194 for price","Context window of 262k tokens with output up to 256k tokens","Supports tool calling, structured output and reasoning mode"],"weaknesses":["No benchmark results, so output quality cannot be compared with other models","Released by one family and served through two providers only","Not built into the PydanticAI Gateway"],"best_for":"Cost-sensitive agents that need tool calling, structured output and image input with long context, and that will test quality themselves.","long":"Mistral Small 4 is an open-weights model from Mistral, released in March 2026, with a knowledge cutoff of June 2025. It accepts text and image input and produces text, and it supports tool calling, structured output and a reasoning mode. Its context window is 262k tokens and it can return responses up to 256k tokens, which is large for a model at this price.\n\nPrice is the clearest point in its favour. Input costs $0.15 per million tokens and output $0.60 per million, giving a blended rate of about $0.26 per million tokens at a 3 to 1 input-output ratio. That is roughly a quarter of the registry median blended price and ranks 38th of 194 for price. The model is served by Mistral and OpenRouter.\n\nThe registry holds no benchmark results for this model, so it has no intelligence score, rank or value rating, and no quality comparison is possible from this entry. A developer choosing it should run their own evaluation on the target task before relying on it.","described":true,"gateway":false,"byok":true,"string":"mistral:mistral-small-2603","input":0.15,"output":0.6,"cache_read":0.015,"blended":0.2625,"efficiency":null,"bench":{},"offers":[{"provider":"mistral","name":"Mistral","model_id":"mistral-small-2603","api":["openai"],"input":0.15,"output":0.6,"cache_read":0.015,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":262144,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"mistral:mistral-small-2603","gateway_string":null},{"provider":"openrouter","name":"OpenRouter","model_id":"mistralai/mistral-small-2603","api":["openai"],"input":0.15,"output":0.6,"cache_read":0.015,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:mistralai/mistral-small-2603","gateway_string":null}],"ranks":{"intelligence":null,"popularity":109,"efficiency":null,"speed":38,"price":38},"top_score":0.1929,"about":["An open-weights, low-priced model from Mistral with image input, tool calling and reasoning mode. It has no benchmark results in the registry, so it is described here by its specifications and price.","Mistral Small 4 is an open-weights model from Mistral, released in March 2026, with a knowledge cutoff of June 2025. It accepts text and image input and produces text, and it supports tool calling, structured output and a reasoning mode. Its context window is 262k tokens and it can return responses up to 256k tokens, which is large for a model at this price.","Price is the clearest point in its favour. Input costs $0.15 per million tokens and output $0.60 per million, giving a blended rate of about $0.26 per million tokens at a 3 to 1 input-output ratio. That is roughly a quarter of the registry median blended price and ranks 38th of 194 for price. The model is served by Mistral and OpenRouter.","The registry holds no benchmark results for this model, so it has no intelligence score, rank or value rating, and no quality comparison is possible from this entry. A developer choosing it should run their own evaluation on the target task before relying on it."],"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-small-2603', 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-small-2603', 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-small-2603',\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-small-2603')\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-small-2603'","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-small-2603'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport MISTRAL_API_KEY='...'\n\ncodex --model 'mistral-small-2603' \\\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-small-2603'),\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}}