by Mistral AI

Devstral Small 2 review, pricing and limits

The small, single-GPU member of Mistral's Devstral 2 coding family, built for local software engineering agents.

Best for
Private local coding agents
Not for
New hosted-API projects
  • Deprecated
  • Open source

Should you use Devstral Small 2?

Mistral released Devstral Small 2 on 9 December 2025 and says it runs on one RTX 4090 or a 32 GB Mac, with 55.7% on SWE-bench Multilingual. It suits developers who want a private local coding agent rather than a hosted API, and it succeeded Devstral Small 1.1.

Best for

  • Private local coding agents Mistral's launch post describes a fully private, on-device runtime for it, and the card says a single consumer GPU is enough.
  • Multi-file edits and codebase exploration through an agent scaffold Mistral built it for tool use across a codebase and names Mistral Vibe, Cline, Kilo Code, OpenHands and SWE Agent as compatible scaffolds.
  • Fine-tuning on permissively licensed weights Permissive terms make commercial adaptation possible, and the Hugging Face model tree lists 50 adapters and 6 finetunes of it.

Not for

  • New hosted-API projects Mistral's docs mark the model deprecated and point API users to Mistral Medium 3.5.
  • The hardest terminal-agent tasks Mistral's table gives 22.5% on Terminal Bench 2 against 42.8% for Claude Sonnet 4.5.

Can you use Devstral Small 2?

  • Free plan: not published.
  • Open weights: released (Apache 2.0).

Devstral Small 2 pricing

Pricing model
self-hosted open weights
Free tier
The weights are free to download under Apache 2.0; running them costs your own hardware.
TierRate
Open weights (self-hosted)Free download under Apache 2.0; hardware is your own

Mistral's launch post announced API pricing of $0.10 per 1M input tokens and $0.30 per 1M output tokens for Devstral Small 2 after a free period. The model no longer appears on Mistral's current price list and its docs mark it deprecated, so no hosted price is stored. The weights cost nothing to download; a local run is billed only by your own hardware.

Self-hosting requirements

Self-hosted
Yes
Recommended GPU
RTX 4090 class, the card's example

What Devstral Small 2 can do

Devstral Small 2 is Mistral AI's 24-billion-parameter open-weights model for agentic software engineering, reported by Mistral at 68.0% on SWE-bench Verified. It reads text and images, has a 256K context window and ships under Apache 2.0. Mistral's API listing is deprecated, so most use now means running the weights locally.

What goes in and what comes out

Reads

  • text
  • image

Writes

  • text
  • tool-calls

Capabilities

  • Function callingSupported
  • Structured outputSupported
  • Tool useSupported
  • VisionSupported
  • Audio inputNot supported
  • Audio outputNot supported
  • Video inputNot supported

Key features

  • Agentic coding focus

    Built to explore codebases, edit several files and drive software engineering agents, per Mistral's model card.

  • Image input

    Accepts image input in addition to text, which the card lists as new against Devstral Small 1.1.

  • Long context window

    Mistral's card lists the window; Ollama's local build lists a larger 384K figure.

  • Single-GPU size

    Fits a single consumer GPU or a high-memory Mac, per Mistral's model card.

Show all 6 features
  • Apache 2.0 weights

    Open weights on Hugging Face under a permissive licence.

  • Scaffold support

    Works with Mistral's own CLI and the community agent frameworks the card names.

Known limitations

  • Text and image input only, with no audio or video input.
  • Local quality depends on the runtime: Mistral's model card (read 24 November 2026) warns of subpar performance in some local serving frameworks and advises reporting it to the framework.

Who it is for

  • Developers who want a private coding agent on one GPU
  • Teams self-hosting open-weights coding models
  • Researchers fine-tuning permissively licensed models

Devstral Small 2 benchmarks

Standout result

68.0%

SWE-bench Verified score, vendor-reported

Source: Mistral model card on Hugging Face, read 24 November 2026

Where it sits

MeasureThis modelRankMedian
SWE-bench Verified% solved68%#28 / 40peer median 76.3%

Ranks are against GA models on Hokai that publish the same figure; ties share a rank.

Benchmark scores

  • SWE-bench Verified vendor-reported · 24 Nov 202668%Real GitHub issues fixed end to end, % solved.

A benchmark is an exam, not the job. Scores transfer unevenly between tasks, so weigh the one closest to your workload and read every figure with its source.

Strengths and limits

Strengths

  • Mistral's own table puts it level with the far larger GLM 4.6 on SWE-bench Verified (vendor-reported).
  • A model small enough for one consumer GPU keeps source code on your own machine.
  • The permissive licence allows commercial use and modification of the weights.
  • Takes image input too, an upgrade over its predecessor Devstral Small 1.1 (model card).
  • Ships as an official FP8 build, and the Hugging Face model tree lists 48 quantized versions of it (read 24 November 2026).

Limits

  • The hosted API model is deprecated on Mistral's docs, so teams without GPUs have no first-party hosted route.
  • It scores 22.5% on Terminal Bench 2 in Mistral's table, well below the closed models listed beside it, which affects long autonomous terminal tasks.
  • No independent board has scored it: Artificial Analysis lists the model but shows no Intelligence Index value, so every score on this page is Mistral's own, which matters for anyone comparing it with models that have independent results.

Devstral Small 2 alternatives

ModelLabContextIn / out per 1MReads and writes
Devstral Small 2 This pageMistral AI256K--text, image → text
Qwen3.8-27BPick Devstral Small 2 if you want a 24B model Mistral tuned for agentic coding; pick Qwen3.8-27B if you want a newer August 2026 general model with a 262,144-token context.Alibaba Cloud262K$0.50 / $3text, image, video → text
Gemma 4 31BPick Devstral Small 2 for a smaller coding-specialised 24B model; pick Gemma 4 31B if you want a 30.7B general model with a 262,144-token context and image input.Google262K--text, image → text
MAI-Code-1.1-FlashMicrosoft released MAI-Code-1.1-Flash in August 2026 as a small-tier coding model for GitHub Copilot, adding native vision input and a large context window.Microsoft256K$0.20 / $1.20text, image → text, code

Devstral Small 2 specs

Context window
256K tokens
Architecture
Transformer (Ministral 3 architecture)
Mixture of experts
No
Parameters
24B
VRAM requirements
Fits one high-end consumer GPU, per Mistral

Training data

Mistral's card publishes no training-data description; the model is a fine-tune of a Mistral Small 3.1 base for software engineering tasks.

Weight formats

  • Safetensors (BF16, FP8 E4M3)

Prompting patterns

Show 1 prompting pattern
  • Sample at a low temperature

    temperature: 0.2

    Mistral's launch post recommends a temperature of 0.2 for best results.

Known quirks

Show 3 known quirks
  • GGUF builds need a llama.cpp change

    The card says community GGUF files from Unsloth or Bartowski need changes from llama.cpp pull request 17945.

    Workaround: Update llama.cpp to a build that includes that pull request, or use Ollama's own build.

  • Context size differs by runtime

    Mistral's card and Artificial Analysis list 256K tokens, while Ollama's library lists 384K for its local build.

    Workaround: Check the context setting of the runtime you use and test a long prompt before relying on either figure.

  • Local serving can underperform

    The card warns of subpar performance with some local serving frameworks.

    Workaround: Serve it with vLLM, which the card recommends, and report framework issues to that framework's maintainers.

Devstral Small 2 facts

Licence
Apache 2.0 · Open source
Released
09 Dec 2025
Current version
Devstral-Small-2-24B-Instruct-2512
Deprecated from
27 Feb 2026
Family
Devstral 2
Variant
Code
Deployment
Self-hosted · Hugging Face · Ollama · LM Studio · vLLM

Data governance

Data residency options
self-hosted

Version history

  • Devstral-Small-2-24B-Instruct-2512 · 09 Dec 2025

    Initial release: 24B, 256K context, image input, Apache 2.0. Mistral's docs later marked it deprecated (date listed: 2026-02-27).

What changed

  • Deprecation Listed as deprecated on Mistral's API (Devstral-Small-2-24B-Instruct-2512) source
  • Release Introducing: Devstral 2 and Mistral Vibe CLI (Devstral-Small-2-24B-Instruct-2512) source

Questions about Devstral Small 2

How much does Devstral Small 2 cost per million tokens?

Mistral's launch post quoted $0.10 in and $0.30 out per million tokens for the hosted API after a free period. Mistral's price list no longer includes the model and its docs mark it deprecated, so there is no current hosted price to rely on. Self-hosting costs only your own hardware and power.

Is Devstral Small 2 open source, and can I use it for free?

The weights are on Hugging Face under the Apache 2.0 licence, which allows commercial and non-commercial use and modification, as Mistral's card states. You can run it free on your own machine through vLLM, llama.cpp, LM Studio or Ollama. Mistral's hosted listing is deprecated, so free access in practice means self-hosting.

Can Devstral Small 2 run on a single consumer GPU or a laptop?

Yes. Mistral names an RTX 4090 and a 32 GB Mac as workable hosts. Ollama's 24b build is 15 GB and lists a 384K context window, while Mistral's card lists 256K.

Devstral Small 2 vs Devstral 2: which one should I run?

Mistral's card reports 68.0% on SWE-bench Verified for Devstral Small 2 and 72.2% for Devstral 2, 55.7% against 61.3% on SWE-bench Multilingual, and 22.5% against 32.6% on Terminal Bench 2. Devstral 2 has 123 billion parameters and Mistral says it needs at least four H100-class GPUs, while the 24B Small 2 is built for a single GPU. Pick Small 2 for local use and Devstral 2 only with data-center hardware.

Is Devstral Small 2 deprecated, and what replaces it?

Yes: Mistral's docs mark it deprecated as of 27 February 2026 and name Mistral Medium 3.5 as the replacement for new API integrations. The open weights remain on Hugging Face under Apache 2.0, so local use does not depend on the API. Check Mistral's lifecycle page before building on the hosted model id.

About Devstral Small 2

Devstral Small 2 is the 24-billion-parameter coding model that Mistral AI released on 9 December 2025, alongside the 123-billion-parameter Devstral 2 and the Mistral Vibe command-line agent. Its Hugging Face model tree lists Mistral-Small-3.1-24B-Base-2503 as the base model, and the card says it uses the same architecture as the Ministral 3 family, which Mistral shipped the same month (for example Ministral 3 14B). It is published as an Instruct model in FP8 under the Apache 2.0 licence, and it succeeds Devstral Small 1.1.

Read the full background

Mistral reports 68.0% on SWE-bench Verified, 55.7% on SWE-bench Multilingual and 22.5% on Terminal Bench 2 for this model, read on its Hugging Face card on 24 November 2026. The card's own table puts the larger Devstral 2 at 72.2%, 61.3% and 32.6% on the same three tests. All of these are vendor-reported. Artificial Analysis has a page for the model but publishes no Intelligence Index score for it.

The context window is 256K tokens on Mistral's card and on Artificial Analysis. Ollama's library lists a 384K window for its 15 GB local build, so the figure you get depends on the runtime. Inputs are text and images, output is text, and Mistral's docs list function calling, structured outputs and chat completions among its features.

The weights are open on Hugging Face. The card recommends vLLM and also lists SGLang, Transformers, llama.cpp, LM Studio and Ollama as routes, and Mistral says the model runs on a single RTX 4090 or a Mac with 32 GB of RAM. Mistral recommends its own Vibe CLI as the scaffold and names Cline, Kilo Code, Claude Code, OpenHands and SWE Agent as compatible ones. The files themselves are served from Hugging Face.

The hosted side is being phased out. Mistral's model page marks Devstral Small 2 deprecated (the date it lists is 27 February 2026) and points to Mistral Medium 3.5 as the replacement, and the pricing page read on 24 November 2026 no longer lists it. The open weights are a separate matter: the Apache 2.0 download stays on Hugging Face and local runtimes still serve it.

Do not pick it where the job needs the strongest agent rather than the smallest one. On Mistral's own table it trails the closed Claude Sonnet 4.5, with 68.0% against 77.2% on SWE-bench Verified and 22.5% against 42.8% on Terminal Bench 2, and Mistral's launch post says Sonnet 4.5 stayed significantly preferred in its human evaluation of the larger Devstral 2. If you want a general-purpose open model rather than a coding specialist, Qwen3.8-27B (27.78B dense, Apache 2.0, 262,144-token context, released in August 2026) and Gemma 4 31B (30.7B dense, Apache 2.0) are the open-weights options Hokai lists in the same size class.

The card publishes no description of the training data and no training cutoff date, so Hokai stores none. Mistral's launch post describes the local setup as a fully private, on-device runtime, which is the main governance point for teams that cannot send code to a hosted API.

Pick it if you want a private local coding agent on one consumer GPU and can run the weights yourself; skip it if you need a hosted, supported API or the strongest agent score available.

Sources and guides

More AI Models on Hokai

  • Gemini 3.5 Flash CyberGemini 3.5 Flash Cyber (Google DeepMind, 2026) is a gated fine-tune of Gemini 3.5 Flash for finding and patching vulnerabilities inside CodeMender.
  • Mellum2.1Mellum2.1 is JetBrains' open mixture-of-experts model, post-trained with reinforcement learning to work inside code repositories as an agent.
  • GLM-5.3GLM-5.3 is Z.ai's text-only flagship for agentic coding and security work, with a 1M-token context, a live API and open weights.
  • Gemini 3.8 Flash CyberGemini 3.8 Flash Cyber (Google DeepMind, Sept 2026) reports 86.2% on CyberGym and is limited to vetted Fairwind Program defenders; Gemini 4 Argon now sits above it.
  • Kimi K2.7-CodeOpen-weight 1T/32B-active MoE coding model from Moonshot AI, released June 2026 under a Modified MIT license and built for long-horizon agentic coding.
  • Kimi K2.7 Code HighSpeedOpen-weight 1T-parameter MoE coding model from Moonshot AI (June 2026) with a 256K context window and a HighSpeed mode hitting ~180-260 tokens/sec.