Devstral Small 2
Devstral Small 2 is a 24B agentic coding model with 68.0% on SWE-bench Verified, a context window of 256K tokens, and multimodal input support. Devstral Small 2 matches models up to five times its size on coding benchmarks.
import { streamText } from 'ai'
const result = streamText({ model: 'mistral/devstral-small-2', prompt: 'Why is the sky blue?'})Frequently Asked Questions
What is Devstral Small 2's SWE-bench Verified score?
68.0%, matching models up to 5x its parameter size.
Does Devstral Small 2 support image inputs?
Yes. Multimodal input is one of the key additions over the original Devstral Small, enabling workflows that combine code and visual assets.
What is the context window for Devstral Small 2?
256K tokens, the same as Devstral 2, which is a significant upgrade from the original Devstral Small.
What is the license for Devstral Small 2?
Apache 2.0, permitting unrestricted commercial use.
How does Devstral Small 2 compare to Devstral 2?
Devstral 2 (123B) achieves higher SWE-bench scores. Devstral Small 2 (24B) achieves 68.0% at a much smaller parameter count.
What is the API pricing for Devstral Small 2?
This page lists the current rates. Multiple providers can serve Devstral Small 2, so AI Gateway surfaces live pricing rather than a single fixed figure.