Mistral: Devstral Medium

Text input Text output
Author's 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.

Key Specifications
Cost
$$$
Context
131K
Released
Jul 10, 2025
Speed
Ability
Reliability
Supported Parameters

This model supports the following parameters:

Stop Presence Penalty Tool Choice Top P Temperature Seed Tools Structured Outputs Response Format Frequency Penalty Max Tokens
Features

This model supports the following features:

Tools Structured Outputs Response Format
Performance Summary

Mistral: Devstral Medium, developed by Mistral AI and All Hands AI, demonstrates a strong performance profile, particularly in its intended domain of code generation and agentic reasoning. The model exhibits competitive response times, performing among the average speed models (52nd percentile), and offers competitive pricing, positioned around the average cost models (51st percentile). A standout feature is its exceptional reliability, achieving a perfect 100th percentile, indicating minimal technical failures and consistent evaluable responses. In benchmark performance, Devstral Medium excels in coding tasks, achieving 88.0% accuracy in the Coding (Baseline) benchmark, placing it in the 76th percentile. It also shows perfect accuracy in Email Classification, Ethics, and General Knowledge, often being the most accurate model at its price point and speed for these categories. While strong in instruction following (65.0% accuracy, 78th percentile), its performance in Reasoning (50.0% accuracy, 37th percentile) indicates a relative weakness compared to its other capabilities. Overall, Devstral Medium is a highly reliable and cost-effective solution, particularly for code-centric applications, with strong general knowledge and ethical alignment, though its reasoning capabilities could see further enhancement.

Model Pricing

Current Pricing

Feature Price (per 1M tokens)
Prompt $0.4
Completion $2

Price History

Available Endpoints
Provider Endpoint Name Context Length Pricing (Input) Pricing (Output)
Mistral
Mistral | mistralai/devstral-medium-2507 131K $0.4 / 1M tokens $2 / 1M tokens
Benchmark Results
Benchmark Category Reasoning Free Executions Accuracy Cost Duration
Other Models by mistralai