Code · Mistral AI
Run Devstral Small 2 in the EU for coding agents
Devstral Small 2 is Mistral AI's open model for software engineering agents: 24 billion parameters, a 256K context and image input, released under Apache 2.0. On inference.eu you call it with the OpenAI or Anthropic request format, so coding tools can use it with your source code processed in EU data centres and never used for training.
- 0124B
- 02EU data centres
- 03Apache 2.0
What Devstral Small 2 is
Devstral Small 2, published as Devstral-Small-2-24B-Instruct-2512 in December 2025, is an agentic coding model from Mistral AI in Paris. It is built to use tools: exploring a repository, reading and editing several files, running commands and reacting to the output, which is how modern coding agents work.
It has 24 billion parameters, a context window of 256K tokens and, new in version 2, a vision encoder so it can read screenshots and diagrams. Mistral released it alongside the larger Devstral 2 and its own terminal tool, Mistral Vibe. Devstral Small 2 is licensed under Apache 2.0; the larger Devstral 2 uses a different licence.
What it does well, and where it falls short
Devstral Small 2 is strong for its size at agent-style software tasks: fixing bugs across files, writing tests, refactoring and following a codebase's conventions. The 256K context lets an agent keep large parts of a repository and long tool histories in view. Its compact size makes it a good fit for teams that want a coding model they could also run on their own hardware later.
Larger models such as GLM-5.3, Kimi K3 or DeepSeek V4 go further on the hardest long-horizon tasks. Devstral is tuned for code, not for general writing or broad world knowledge. It has no separate thinking mode, so for algorithmic puzzles a reasoning model can be the better partner.
Using Devstral Small 2 in coding tools
inference.eu offers both the OpenAI and the Anthropic request formats. Tools that accept an OpenAI-compatible endpoint, such as Cline, Kilo Code, OpenHands, SWE-agent or Mistral Vibe, work by setting the base URL to the inference.eu API, adding your inference.eu key and choosing the model devstral-small-2.
Tools that speak the Anthropic Messages format, such as Claude Code, can point at the same model through our Anthropic-compatible endpoint. Tool calls and streaming work as usual. Send screenshots of a failing UI as image_url parts. Keep agent loops in check with step limits, since long sessions consume context quickly.
Your source code stays in the EU
Source code is often a company's most sensitive asset. With Devstral Small 2 on inference.eu, the code your agents read, the diffs they write and the commands they run are processed in data centres in the European Union, and none of it is used to train any model.
Every customer gets a data processing agreement under Article 28 of the GDPR and our subprocessor list, which your security team can review before rollout. Billing is in euros. The Apache 2.0 licence allows commercial use of the model without limits, so you can use it for client projects and in-house products alike.
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.inference.eu/v1", api_key=os.environ["INFERENCE_EU_API_KEY"])
response = client.chat.completions.create(
model="devstral-small-2",
messages=[{"role": "user", "content": "Summarise this contract in five bullet points."}],
)
print(response.choices[0].message.content)What teams use it for
- 1
Coding agents in the terminal
Let an agent explore a repository, fix a failing test and propose a patch, with every request processed in the EU.
- 2
Code review support
Summarise pull requests, flag risky changes and suggest missing tests before a human reviewer looks at the diff.
- 3
Legacy code migration
Upgrade dependencies, port code between frameworks and update call sites across many files in one agent run.
Devstral Small 2: common questions
The questions buyers, developers and legal teams ask us most. Something missing? Ask us directly.
Related
- Mistral Small 4 119BRun Mistral Small 4 119B from French lab Mistral AI on inference.eu: reasoning, vision and code in one model, processed in EU data centres.Chat
- Qwen3.6 27BRun Qwen3.6 27B on inference.eu: a dense open model for agentic coding with image input and 256K context, OpenAI-compatible and processed in the EU.Code
- Magistral Small 1.2Run Magistral Small 1.2, Mistral AI's open 24B reasoning model, on inference.eu through an OpenAI-compatible API with processing in EU data centres.Reasoning
- GLM-5.3Run Z.ai's GLM-5.3, an open-weight model built for complex coding and long agent tasks, on inference.eu with OpenAI and Anthropic APIs, processed in the EU.Reasoning
Move your AI workloads to EU infrastructure
Tell us which models you use and roughly how much traffic you have. We reply within one working day with pricing and next steps.
- Reply within one working day
- Pricing for your volume
- DPA ready to sign