mistralai

Mistral: Devstral Medium

Devstral Medium is a high-performance code generation and agentic reasoning model developed jointly by Mistral AI and All Hands AI. Positioned as a step up from Devstral Small, it achieves 61.6% on SWE-Bench Verified, placing it ahead of Gemini 2.5 Pro and GPT-4.1 in code-related tasks, at a fraction of the cost. It is designed for generalization across prompt styles and tool use in code agents and frameworks. Devstral Medium is available via API only (not open-weight), and supports enterprise deployment on private infrastructure, with optional fine-tuning capabilities.

Input Cost
$0.40
per 1M tokens
Output Cost
$2.00
per 1M tokens
Context Window
131,072
tokens
Compare vs GPT-4o
Developer ID: mistralai/devstral-medium

Related Models

mistralai
$0.25/1M

Mistral Tiny

Note: This model is being deprecated. Recommended replacement is the newer [Ministral 8B](...

📝 32,768 ctx Compare →
mistralai
$0.03/1M

Mistral: Mistral Small 3.1 24B

Mistral Small 3.1 24B Instruct is an upgraded variant of Mistral Small 3 (2501), featuring...

📝 131,072 ctx Compare →
mistralai
$0.05/1M

Mistral: Devstral 2 2512

Devstral 2 is a state-of-the-art open-source model by Mistral AI specializing in agentic c...

📝 262,144 ctx Compare →