Mistral AI logo

Devstral Small 2


Devstral Small 2 is Mistral AI's language model with a 256K context window, starting at $0.100 / 1M input and $0.300 / 1M output. The compact open-source variant of Devstral 2, designed for efficient agentic coding and multi-file codebase editing.
Specifications
Canonical IDmistral-devstral-2-small
TypeLanguage
StatusActive
CreatorMistral AIMistral AI
Providers
Context Window256K tokens
Input ModalitiesText
Output ModalitiesText
Release Date · 1 year ago
Benchmarks
Intelligence Index
19.5
#220
Coding Index
20.7
#168
Math Index
34.3
#168
MMLU-Pro
0.7
#220
GPQA
0.5
#291
HLE
0.0
#427
LiveCodeBench
0.3
#186
IFBench
0.3
#315
Time to First Token
0.52s
#245
SciCode
0.3
#234
AIME 2025
0.3
#168
LCR
0.2
#221
TerminalBench Hard
0.2
#152
TAU2
0.2
#263
Output TPS
61.3
#188

Capabilities

Input1/5
Text
Image·
Audio·
Video·
PDF·
Output1/5
Text
Image·
Audio·
Video·
Embedding·
Capabilities1/13
Reasoning·
Adaptive Reasoning·
Function Calling
Parallel Function Calling·
Structured Outputs·
Native JSON Schema·
Web Search·
URL Context·
Computer Use·
Code Execution·
File Search·
Prompt Caching·
Assistant Prefill·

Pricing by Provider

ProviderStandard
Input
$ / 1M
Output
$ / 1M
Vercel AI Gateway logo
Vercel AI Gateway
mistral/devstral-small-2
$0.100$0.300

Cost Calculator

Preset:
Compares every provider & tier in USD

Other models

ModelTierReleasedContextInput / 1MOutput / 1M
Devstral 2 123B256K$0.400$2.00
Devstral 2256K$0.400$2.00
Devstral262K$0.400$2.00
Devstral MediumMedium256K$0.400$2.00

Model IDs