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...

by Mistral

Overview

Quick stats across all benchmark runs.

Score

9 benchmarks

Avg Latency

5.0s

12 requests

Pricing

$0.40 in / $2.00 out

per 1M tokens

Context

131K

tokens

Alternatives

Models with similar or better quality but different tradeoffs

No alternatives found

Run benchmarks on this model to discover alternatives

Benchmark Performance

How this model performs across different benchmarks

No benchmark data available

Run benchmarks with this model to see performance breakdown

Price vs Performance

Compare cost efficiency across all models

Current model (baseline)
Other models (relative score)
Y-axis shows score difference from shared benchmarks. X-axis uses log scale.

Score Over Time

Performance trends across all benchmark runs

Benchmark Activity

Number of benchmark runs over time

Get started with this model using OpenRouter

import { OpenRouter } from "@openrouter/sdk";

const openrouter = new OpenRouter({
  apiKey: "<OPENROUTER_API_KEY>"
});

const completion = await openrouter.chat.completions.create({
  model: "mistralai/devstral-medium",
  messages: [
    {
      role: "user",
      content: "Hello!"
    }
  ]
});

console.log(completion.choices[0].message.content);

Get your API key at openrouter.ai/keys

Other Models from Mistral

Compare performance with other models from the same creator

ModelLatencyCost/1MScore
Mistral Large 3 251217.6s$1.0029%
Ministral 3 14B 251213.3s$0.2021%
Ministral 3 3B 25126.5s$0.105%
Ministral 3 8B 25127.5s$0.154%
Saba8.7s$0.40
Voxtral Small 24B 25074.3s$0.20
Devstral Small 2505$0.09
Codestral 25083.9s$0.60
Mistral 7B InstructFree
Pixtral Large 241122.5s$4.00
Mistral Large 241115.7s$4.00
Mistral Large 240721.8s$4.00
Mistral Medium 3.111.5s$1.20
Mistral Nemo6.7s$0.02
Mixtral 8x22B Instruct8.3s$4.00
Mistral Large22.3s$4.00
Mistral 7B Instruct v0.141.8s$0.15
Mistral Medium 310.7s$1.20
Mistral Medium 3.5$4.50
Mistral Small 3.1 24B17.6s$0.45
Mistral Small Creative7.5s$0.20
Mistral Small 3.2 24B14.1s$0.14
Mistral Small 315.8s$0.07
Devstral Small 1.13.0s$0.20
Ministral 8B36.3s$0.10
Ministral 3B2.4s$0.04
Pixtral 12B7.6s$0.10
Mistral 7B Instruct v0.33.7s$0.20
Mistral Tiny5.4s$0.25
Mistral 7B Instruct v0.24.1s$0.20
Mixtral 8x7B Instruct9.0s$0.54
Devstral 2 251213.7s$1.20
Mistral Small 41.1s$0.38