Devstral 2

Deprecated

Mistral's frontier agentic-coding model for software-engineering tasks (v25.12); aliases devstral-latest and devstral-medium-latest -> devstral-2512. Open weights: Modified MIT, 123B (huggingface.co/mistralai/Devstral-2-123B-Instruct-2512). Text in, text out. DEPRECATED 2026-05-22, RETIRES 2026-07-31 -> Mistral Medium 3.5, as Mistral folds its specialist coding line back into its general-purpose models. Lifecycle, price and context from Mistral's official docs model schema; $0.40/M in, $2/M out corroborated by mistral.ai/pricing/api, which still lists it as a current offering. Max output and knowledge cutoff not published -> null.

Devstral 2 by Mistral costs $0.4 per 1M input tokens and $2 per 1M output tokens ($0.8/1M blended), with a 256K (256.000-token) context window. It is deprecated, shutting down 31 Jul 2026; the recommended replacement is Mistral Medium 3.5. Its weights are publicly downloadable, so it can be self-hosted on your own infrastructure.

Last verified: 13 Aug 2026 · sourced from official provider documentation

Lifecycle warning

This model is deprecated. Scheduled shutdown: 31 Jul 2026. Recommended migration: Mistral Medium 3.5.

Read the Devstral 2 migration guide → replacement & cheapest alternatives

Provider
Mistral
Status
Deprecated
Input price
$0.4 / 1M tokens
Output price
$2 / 1M tokens
Cached input
Blended price
$0.8 / 1M tokens
Context window
256.000 tokens (256K)
Max output
Modality
text
Open weights
Yes — self-hostable
Knowledge cutoff
Released
9 Dec 2025
API string
devstral-2512

Source: Mistral official documentation ↗

FAQ

Devstral 2 — questions & answers

How much does Devstral 2 cost?

Devstral 2 is priced at $0.4 per 1M input tokens and $2 per 1M output tokens ($0.8/1M blended at a 3:1 input-to-output ratio).

What is the context window of Devstral 2?

Devstral 2 has a 256.000-token context window (256K).

Is Devstral 2 being deprecated or retired?

Devstral 2 is deprecated. Its scheduled shutdown date is 31 Jul 2026. The recommended migration is Mistral Medium 3.5.

Does Devstral 2 support image or vision input?

Our catalog lists Devstral 2's modalities as text; image/vision input is not among them.

Can I self-host Devstral 2?

Yes — Devstral 2 is an open-weight model: its weights are publicly downloadable, so you can run it on your own infrastructure (subject to its license) instead of only calling Mistral's API.

What is the API model string for Devstral 2?

The API model identifier for Devstral 2 is "devstral-2512" when calling Mistral's API.