devstral-medium by mistralai - AI Model Details, Pricing, and Performance Metrics

mistralai
devstral-medium
mistralai

devstral-medium

completions
On:mistralaiopenrouter

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.

ProviderInputOutput
mistralai
mistralai
$0.4 / 1M tokens$2 / 1M tokens
openrouter
openrouter
$0.4 / 1M tokens$2 / 1M tokens
Released
Jul 10, 2025
Knowledge
Jan 11, 2025
Context
128K
Input
$0.4 / 1M tokens
Output
$2 / 1M tokens
Capabilities: tools
Accepts: text
Returns: text

Access devstral-medium through LangDB AI Gateway

Recommended

Integrate with mistralai's devstral-medium and 250+ other models through a unified API. Monitor usage, control costs, and enhance security.

Unified API
Cost Optimization
Enterprise Security
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests
Available from 2 providers
Provider:

Category Scores

Benchmark Tests

View Other Benchmarks
AIME
6.7
Mathematics
AA Coding Index
31.5
Programming
AAII
27.9
General
AA Math Index
4.7
Mathematics
GPQA
49.2
STEM (Physics, Chemistry, Biology)
HLE
3.8
General Knowledge
LiveCodeBench
33.7
Programming
MATH-500
70.7
Mathematics
MMLU-Pro
70.8
General Knowledge
SciCode
29.4
Scientific

Code Examples

Integration samples and API usage