Atlas / Models / Mistral AI / Mistral: Devstral Medium

Mistral: Devstral Medium✓ Catalog verified

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.

Input price
$0.40 /1M
Output price
$2.00 /1M
Context
131K
Modalities
text
Released
Jul 10, 2025
Tool calling
✓ Yes
Atlas signal
85/100
01

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.

Pricing and metadata from the ModelsAtlas catalog.Last refreshed Aug 5, 2026
02

Specifications

API identifiermistralai/devstral-medium
ProviderMistral AI
Model typeText LLM
Context window131K catalog
Input modalitiestext
Output modalitiestext
ReleasedJul 10, 2025
TokenizerMistral
ModeratedNo
Architecture modalitytext->text
Supported parameters
frequency_penaltymax_tokenspresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_p
Source: provider documentation + catalog feedMethodology →

API defaults

Default parameters
{
  "temperature": 0.3
}
03

Pricing

Live pricing components for mistralai/devstral-medium as published in the catalog.

$0.40
Input /1M
$2.00
Output /1M
Per request
Per image
Pricing componentRaw unit priceNormalizedUnit
Prompt tokens$4e-7$0.40 / 1MPer input token
Completion tokens$0.000002$2.00 / 1MPer output token
Request feeN/AN/APer request
Image feeN/AN/APer image unit
Web search feeN/AN/APer search request
Source: catalog pricing feedCompare all pricing →Cheapest models →
04

Cost calculator

Estimate monthly spend from your own token volumes.

Scale / Volume

Estimated Total Cost

$0.6Calculated from current list pricing in the ModelsAtlas catalog.
05

Capabilities

CapabilityStatusWhat it means
Visual UnderstandingNot advertisedImage and document analysis support
Audio ProcessingNot advertisedSpeech and voice aligned flows
Tool Calling✓ SupportedSupports tools / function calling
Self-Hosting✓ SupportedDeploy outside managed APIs
Derived from catalog capability tags and supported parameters
06

Capability signals

Directional signals derived from model metadata and capability tags — not official benchmark submissions.

Mistral: Devstral Medium
MMLU Signal (Reasoning)
85signal
Coding Signal (HumanEval proxy)
97signal
Math Signal (GSM8K proxy)
79signal
Science Signal (GPQA proxy)
79signal
Estimated from metadata — not an official benchmark runAll benchmarks →Methodology →
07

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)
08

Alternatives

Closest models by context window from a different provider.

09

Sources & attribution

Pricing and metadata are maintained in the ModelsAtlas catalog.

Capability bars use metadata tags — directional estimates onlyHow we source and verify data →
10

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.