Mistral: Devstral Medium✓ Catalog verified
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.
Overview
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.
Access: available through the official Mistral AI API. Context window: 131K.
Specifications
| API identifier | mistralai/devstral-medium |
| Provider | Mistral AI |
| Model type | Text LLM |
| Context window | 131K catalog |
| Input modalities | text |
| Output modalities | text |
| Released | Jul 10, 2025 |
| Tokenizer | Mistral |
| Moderated | No |
| Architecture modality | text->text |
API defaults
{
"temperature": 0.3
}Pricing
Live pricing components for mistralai/devstral-medium as published in the catalog.
| Pricing component | Raw unit price | Normalized | Unit |
|---|---|---|---|
| Prompt tokens | $4e-7 | $0.40 / 1M | Per input token |
| Completion tokens | $0.000002 | $2.00 / 1M | Per output token |
| Request fee | N/A | N/A | Per request |
| Image fee | N/A | N/A | Per image unit |
| Web search fee | N/A | N/A | Per search request |
Cost calculator
Estimate monthly spend from your own token volumes.
Estimated Total Cost
$0.6Calculated from current list pricing in the ModelsAtlas catalog.Capabilities
| Capability | Status | What it means |
|---|---|---|
| Visual Understanding | Not advertised | Image and document analysis support |
| Audio Processing | Not advertised | Speech and voice aligned flows |
| Tool Calling | ✓ Supported | Supports tools / function calling |
| Self-Hosting | ✓ Supported | Deploy outside managed APIs |
Capability signals
Directional signals derived from model metadata and capability tags — not official benchmark submissions.
Quick start
Call Mistral: Devstral Medium through an OpenAI-compatible client.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="mistralai/devstral-medium",
messages=[{"role": "user", "content": "Explain quantum physics."}]
)
print(response.choices[0].message.content)Alternatives
Closest models by context window from a different provider.
| Model | Provider | Context | Input /1M | Actions |
|---|---|---|---|---|
| AionLabs: Aion-1.0 | Aion Labs | 131K | $4.00 | View → |
| AionLabs: Aion-1.0-Mini | Aion Labs | 131K | $0.70 | View → |
Sources & attribution
Pricing and metadata are maintained in the ModelsAtlas catalog.
Frequently asked questions
How much does Mistral: Devstral Medium cost?
$0.40 per 1M input tokens and $2.00 per 1M output tokens on the official Mistral AI API.
What is the context window of Mistral: Devstral Medium?
Mistral: Devstral Medium supports up to 131K tokens of context.
Does Mistral: Devstral Medium support tool / function calling?
Yes, Mistral: Devstral Medium supports tool / function calling — you can register tools and the model will emit structured tool calls.
How do I access Mistral: Devstral Medium?
Use the official Mistral AI API with the model id `mistralai/devstral-medium`. See the Quick start section above for code examples.