Mistral: Devstral Medium
Mistral AIID: mistralai/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.
Pricing per 1M Tokens
| Input (Prompt) | $0.40 |
| Output (Completion) | $2.00 |
| Cache Read | $0.04 |
| Cache Write | Free |
| Image | N/A |
Specifications
| Context Length | 131K |
| Max Output Tokens | N/A |
| Input Modalities | Text |
| Output Modalities | Text |
| Tokenizer | Mistral |
| Instruct Type | N/A |
| Top Provider Context | 131K |
| Top Provider Max Output | N/A |
| Moderated | No |
Compare this model
See how Mistral: Devstral Medium stacks up against other models.
More from Mistral AI
Last updated: March 23, 2026
First tracked: March 23, 2026