Back to Models
Mistral: Devstral Medium
mistralai/devstral-mediumJul 10, 2025131.1K context$0.40/M in · $2.00/M out
Description
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.
Specifications
Provider
mistralai
Context Length
131.1K
Max Output
—
Modality
Intext
Outtext
Pricing
| Type | Price / 1M tokens |
|---|---|
| Input | $0.40 |
| Output | $2.00 |
| Cache Read | $0.04 |
Quick Start
curl https://api.ominigate.ai/v1/chat/completions \
-H "Authorization: Bearer sk-omg-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "mistralai/devstral-medium",
"messages": [{"role": "user", "content": "Hello!"}]
}'