Devstral Small 2

MistralMCP Tool Call
mistral/devstral-small-2Open Weights

Compact multimodal coding model for repository exploration, file editing, and software agents

Benchmark Pricing$0.06 / 1M in$0.06 / 1M out$0.03 cache read
Context: 262,144 tokens•Max Output: 262,144 tokens•Knowledge: 2025-12•Released: 2025-12-09

TECHNICAL SPECIFICATIONS

Context Window262,144262.1K tokens
Max Output262,144262.1K tokens
LicenseApache-2.0Self-hostable
Input Modalities
TextVision
Function / Tool CallingSupported (MCP Ready)
Structured OutputsGuaranteed Schema

MODEL CONTEXT PROTOCOL (MCP) READINESS

✓ Devstral Small 2 natively supports OpenAI / Anthropic format tool calling and is fully compatible with MCP servers and agent loops.

MCP Context Window Recommendations

With a context capacity of 262,144 tokens, this model can handle moderately large MCP tool definitions and multi-turn conversation logs comfortably.

API CALL INVOCATION EXAMPLE

// Example: Calling Devstral Small 2 via OpenAI SDK
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.MISTRAL_API_KEY,
});

const response = await client.chat.completions.create({
  model: "mistral/devstral-small-2",
  messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});

console.log(response.choices[0].message.content);

PRICING BY PROVIDER

4 providers
Mistrallabs-devstral-small-2512
$0.00 / $0.00
NanoGPTmistralai/devstral-small-2505
$0.06 / $0.06$0.03 cache
Merge Gatewaymistral/devstral-small-2507
$0.10 / $0.30
Pioneerdevstral-small-2
$0.10 / $0.30$0.10 cache

Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.

Prompt Caching Active

This model supports prompt caching at $0.03 / 1M tokens, saving up to 50% on repetitive MCP tool definitions and system instructions.