Mistral Small 3.1 in 2026: Benchmarks, Lineup, and How It Compares to GPT-5, Claude Opus 4.7, and Gemini 2.5
Mistral Small 3.1 is a 24B open model with 128k context and vision. Its API retired in Nov 2025. Get model-card benchmarks, Small 4 vs 3.1 and Ollama setup.
Table of Contents
Small 3.1 in 2026: TL;DR
| Field | Value |
|---|---|
| Model | Small 3.1 from Mistral AI (24B parameters, instruct + base) |
| Released | March 17, 2025 (Small 3.2 update June 2025) |
| License | Apache 2.0 (weights on Hugging Face) |
| Mistral API status | Retired November 30, 2025 (mistral-small-2503); weights on Hugging Face and Ollama |
| Context window | 128,000 tokens |
| Modalities | Text + image input, text output |
| Headline benchmarks | MMLU 80.62%, HumanEval 88.41%, MATH 69.30% (model card) |
| Hardware floor | Single RTX 4090 (24 GB) with quantization, or 32 GB Mac |
| Best fit in 2026 | On-prem RAG, chat, function calling, edge deployment |
| Where it slots in lineup | Succeeded by Small 4 (March 2026); Devstral Small 1.1 was fine-tuned from it |
Mistral Small 3.1 is a 24B open-weight model from Mistral AI, released on March 17, 2025 under Apache 2.0, with a 128k context window and image input. Mistral retired its API version, mistral-small-2503, on November 30, 2025 and now lists Mistral Small 4 as the replacement, but the weights still run on one RTX 4090 or a 32 GB Mac once quantized. This guide covers model-card benchmarks, local setup and Small 3.1 vs Small 4.
What is new in Small 3.1
Small 3.1 is the 24-billion-parameter instruct model released on Hugging Face under Apache 2.0. Compared with Small 3 (24B, January 2025) it adds:
- Multimodal vision input. The model reads images and answers questions about them, including OCR, document understanding, and chart reading.
- 128,000-token context window. Up from 32k in Small 3.
- Stronger English and multilingual reasoning. The model card reports 80.62% on MMLU, and Mistral lists support for dozens of languages, including French, German, Spanish, Italian, Portuguese, Russian, Chinese, Japanese, Korean, Hindi, and Arabic.
- Native function calling and JSON mode. The model accepts a function schema and emits structured tool calls, which makes it agent-ready in LangGraph, CrewAI, and the OpenAI Agents SDK.
- Faster inference. Mistral cites 150 tokens per second and says the model outperforms Gemma 3 and GPT-4o Mini.
- Apache 2.0 weights. Free commercial use, modification, and redistribution. This is the single biggest reason teams choose Small 3.1 over a closed small-model API for self-hosted production.
For the canonical release post, see Mistral’s Small 3.1 announcement and the Hugging Face model card. The model card carries the benchmark tables and the vLLM launch command used below.
Is Small 3.1 still available on the Mistral API?
No. Mistral retired the Small 3.1 API model, mistral-small-2503, on November 30, 2025, and now lists Small 4 as the replacement. The Apache 2.0 weights stay on Hugging Face and Ollama, so self-hosted deployments keep working.

| Model | API ID | Retired | Replacement |
|---|---|---|---|
| Small 3.1 | mistral-small-2503 | Nov 30, 2025 | Small 4 |
| Small 3.2 | mistral-small-2506 | Jul 31, 2026 | Small 4 |
| Small 4 | mistral-small-2603 | Current |
The mistral-small-latest alias now points to Mistral Small 4 (mistral-small-2603). Retired IDs fail with a 404 error, and Mistral warns that aliases can change behavior and pricing, so pin mistral-small-2603.
How Small 3.1 differs from earlier Mistral models
| Feature | Mistral 7B (2023) | Mixtral 8x7B (2023) | Small 3.1 (2025) |
|---|---|---|---|
| Parameters | 7B dense | 47B MoE (12.9B active) | 24B dense |
| Context | 8k (sliding window) | 32k | 128k |
| Modality | Text | Text | Text + vision |
| License | Apache 2.0 | Apache 2.0 | Apache 2.0 |
| Hardware floor | 1x 16 GB GPU | 2x A100 or quantized | 1x RTX 4090 quantized |
| Function calling | No | Community add-on | Native |
Mistral 7B is still useful for tight memory budgets, but Small 3.1 is the right open-weight upgrade for anything that needs vision, long context, function calling, or improved multilingual coverage. All three models in the table ship under Apache 2.0.
Small 3.1 vs GPT-5, Claude Opus 4.7, Gemini 2.5 Pro, and Llama 4
This table compares Small 3.1 with its successor and the closed models named above. OpenAI has deprecated GPT-5 with a shutdown date of December 11, 2026, and Google set December 1, 2026 as the shutdown date for Gemini 2.5 Pro, after which its API requests route to gemini-3.8-flash. Meta’s Llama 4 family is the main open-weight comparison.
| Model | Type | Context | Vision | Best benchmark area | Pricing direction |
|---|---|---|---|---|---|
| Small 3.1 | Open weights, Apache 2.0 | 128k | Yes | Multilingual + on-prem RAG | Free weights, you pay for hardware |
| Llama 4 Maverick | Open weights, Llama Community License | 1M | Yes | Long-context reasoning | Free weights, you pay for hardware |
| Small 4 | Open weights, Apache 2.0 | 256k | Yes | Instruct plus reasoning | $0.15 / $0.60 per 1M tokens |
| GPT-5 | Closed weights, API (shutdown date Dec 11, 2026) | 400k | Yes | Reasoning, agents, code | Frontier-tier pricing |
| Claude Opus 4.7 | Closed weights, API | 1M | Yes | Coding (SWE-bench), tool use | Frontier-tier pricing |
| Gemini 2.5 Pro | Closed weights, API (shutdown date Dec 1, 2026) | 1M | Yes | Long-context QA, math | Bills at Gemini 3.8 Flash rates from Dec 1, 2026 |
What this means in practice:
- Total cost of ownership. Small 3.1 on your own GPU trades per-token fees for hardware and on-call cost; measure the break-even on your own traffic.
- Reasoning ceiling. On GPQA, AIME 2025, and SWE-bench Verified, GPT-5 and Claude Opus 4.7 are clearly ahead. Small 3.1 is competitive on MMLU and HumanEval but falls behind on multi-step reasoning.
- Vision quality. All of these models read images. Closed frontier models are stronger on dense document VQA and chart reading; Small 3.1 covers the common cases.
- Latency. Self-hosted Small 3.1 skips the network hop to a third-party API. Frontier APIs vary by region and load.
- Data residency. Small 3.1, Small 4 and Llama 4 Maverick ship open weights, so they let you keep all data inside a VPC with no third-party API call.
Mistral Small 3.1 vs Mistral Small 4
Small 4 replaces Small 3.1 on the Mistral API, but it is a 119B mixture-of-experts with 6B active parameters, 256k context and a reasoning_effort switch. Small 3.1 stays the one that fits on a single consumer GPU.
| Small 3.1 | Small 4 | |
|---|---|---|
| Architecture | 24B dense | 119B MoE, 6B active |
| Context window | 128k | 256k |
| Reasoning mode | None | reasoning_effort “none” or “high” |
| Mistral API | Retired | $0.15 / $0.60 per 1M tokens |
| Minimum hardware | One RTX 4090 or 32 GB Mac, quantized | 4x NVIDIA HGX H100, 2x HGX H200 or 1x DGX B200 |
Mistral reports a 40% cut in end-to-end completion time in a latency-optimized setup, and 3x more requests per second than Mistral Small 3 in a throughput-optimized setup. Pick Small 3.1 for one-GPU or laptop deployments, and Small 4 for the hosted API, reasoning or 256k context.
Hardware and runtime setup
Single GPU local
Mistral states Small 3.1 fits on a single NVIDIA RTX 4090 (24 GB VRAM) once quantized; test your longest prompts first. Reference: the Instruct 2503 model card on Hugging Face, linked above.
Apple Silicon
On a 32 GB Mac (M2 Max, M3 Max, M4 Max) the MLX and llama.cpp builds run Small 3.1 at usable speeds. Mistral’s release post names a Mac with 32 GB RAM as enough to run the model and calls it a fit for on-device use.
Multi-GPU and production serving
The model card puts BF16 inference at about 55 GB of GPU RAM. Common configurations:
- Two GPUs with tensor parallelism (the card’s vLLM example).
- One H100 80 GB with room for batched serving.
- Hugging Face text-generation-inference (TGI) for batched HTTP serving; TGI is now in maintenance mode.
- vLLM for the highest throughput with paged KV cache and continuous batching. Mistral’s model card recommends vLLM 0.8.1 or later.
- DeepSpeed ZeRO-Inference for memory-efficient sharding when you cannot fit the model on available accelerators.
Run Mistral Small 3.1 with Ollama or vLLM
Ollama lists the model as mistral-small3.1: a 15 GB download with a 128K context window and text plus image input, and it needs Ollama 0.6.5 or later. Start it with ollama run mistral-small3.1, then call it from the CLI or the local API on port 11434. For a server, the model card gives a vllm serve command for two GPUs on vLLM 0.8.1 or later.
Self-hosting cost versus the Mistral API
The hosted comparison is now Small 4 at $0.15 per million input tokens and $0.60 per million output tokens. Price your GPU hours against those rates.
Small 3.1 benchmarks from the model card
Small 3.1 leads Gemma 3 27B IT and GPT-4o Mini on HumanEval, DocVQA and RULER 128K, and trails both on MATH. On MMLU it beats Gemma 3 27B IT and trails GPT-4o Mini by 1.38 points.
| Benchmark | Small 3.1 24B Instruct | Gemma 3 27B IT | GPT-4o Mini |
|---|---|---|---|
| MMLU | 80.62% | 76.90% | 82.00% |
| MMLU Pro (5-shot CoT) | 66.76% | 67.50% | 61.70% |
| GPQA Diamond (5-shot CoT) | 45.96% | 42.40% | 39.39% |
| MBPP | 74.71% | 74.40% | 84.82% |
| MATH | 69.30% | 89.00% | 70.20% |
| HumanEval | 88.41% | 87.80% | 87.20% |
| DocVQA | 94.08% | 86.60% | 86.70% |
| RULER 128K | 81.20% | 66.00% | 65.80% |
On vision, the card puts Small 3.1 ahead of Gemma 3 27B IT and GPT-4o Mini on DocVQA, ChartQA, MathVista and AI2D, while Gemma 3 27B IT edges it on MMMU (64.90% vs 64.00%). On long context, Small 3.1 scores 93.96% on RULER 32K and 37.18% on LongBench v2, both above Gemma 3 27B IT and GPT-4o Mini.
| Vision or long-context benchmark | Small 3.1 24B Instruct | Gemma 3 27B IT | GPT-4o Mini |
|---|---|---|---|
| MMMU | 64.00% | 64.90% | 59.40% |
| ChartQA | 86.24% | 76.00% | 76.80% |
| MathVista | 68.91% | 67.60% | 56.70% |
| AI2D | 93.72% | 84.50% | 88.10% |
| RULER 32K | 93.96% | 91.10% | 90.20% |
| LongBench v2 | 37.18% | 34.59% | 29.30% |
Real-world performance across six task areas
Knowledge QA and reasoning
Small 3.1 scores 80.62% on MMLU per its model card. That puts it between GPT-4o Mini (82.00%) and Claude 3.5 Haiku (77.60%) on textbook QA. On harder reasoning benchmarks (GPQA Diamond, AIME 2025) the model lags GPT-5 and Claude Opus 4.7 by a wide margin.
Mathematical problem solving
69.30% on MATH, per the model card. For Olympiad-level math (AIME, HMMT, Putnam) the model is not the right tool; route those through a frontier model or Small 4 with high reasoning effort.
Coding and code generation
88.41% on HumanEval. For real engineering tasks measured on SWE-bench Verified the gap to Claude Opus 4.7 and GPT-5 is large. For routine code completion, lint fixes, and snippet generation across Python, JavaScript, C++, and Go, Small 3.1 is a solid free option. Devstral Small 1.1 was fine-tuned from the Small 3.1 base; its API version retired on May 31, 2026.
Natural language generation
Summarization, drafting, emails, story writing all work well. Small 3.2 follows instructions better and repeats itself less, per its model card.
Multimodal tasks
Small 3.1 scores 94.08% on DocVQA on its model card. It handles document OCR, chart reading, screen UI extraction, and basic visual QA. For research-grade document understanding (DocVQA, ChartQA at the frontier) closed frontier models are still ahead.
Multilingual applications
The model card reports a 71.18% average on its multilingual evals (European 75.30%, East Asian 69.17%, Middle Eastern 69.08%). Strong choice for non-English on-prem workloads.
Best use cases for Small 3.1 in 2026
Enterprise knowledge assistants and RAG
128k context plus Apache 2.0 weights make Small 3.1 a strong RAG backbone for internal corporate assistants. Pair with a dense embedding model (e.g., bge-large or jina-embeddings-v3) and a vector store inside your VPC.
Multimodal applications
Document review, invoice extraction, screenshot-to-text, chart reading. Small 3.1 runs them on one GPU.
Software development copilot
Use Small 3.1 or Devstral Small 1.1 inside your IDE for line and block completion, code explanation, and refactoring suggestions. Pair with a higher-tier model (such as Claude Opus 4.7) for the agentic SWE-bench-style tasks.
Virtual assistants and chatbots
Customer support deflection, internal helpdesk, personal-organizer bots. The Apache 2.0 license matters here for regulated workloads.
Reasoning engines for AI agents
Native function calling and JSON output make Small 3.1 usable as the planner inside LangGraph, CrewAI, the OpenAI Agents SDK, the Microsoft Agent Framework, and Mastra. For deeper multi-step reasoning, run Small 3.1 as the cheap planner and route hard sub-tasks to a frontier model. See our agentic AI frameworks guide for orchestration choices and evaluating Mistral agents for the function-calling eval surface.
On-device AI
The 4-bit quantized Small 3.1 runs on consumer laptops with 32 GB RAM. This is the most interesting open option for offline, privacy-bound deployments on developer workstations.
Cost-conscious alternative to closed APIs
At high, steady volume, self-hosted Small 3.1 on rented or owned GPUs is often the cheapest option. Below that, hosted Small 4 saves you the engineering and on-call work.
How to evaluate Small 3.1 against frontier models on your own data
Public benchmarks correlate weakly with your specific workload; the AI model testing guide covers the multi-model comparison method in depth. The disciplined approach in 2026 is:
- Curate a representative set of examples from production logs, anonymized.
- Define metrics. For each example, decide if you score with exact match, JSON-schema validity, regex match, structural correctness, or LLM-as-judge for open-ended quality.
- Run the same dataset through all candidate models (Small 3.1, Small 3.2, Small 4, and the current OpenAI, Anthropic and Google flagships).
- Score with a consistent grader. An LLM-as-judge graded by a single frontier model gives comparable open-ended scores. Deterministic checks cover the structured parts.
- Break down by intent or domain instead of reading one overall accuracy number. Small 3.1 may match GPT-5 on routine RAG but fall apart on tool-call orchestration.
- Track regressions over time. Vendors update closed APIs silently; pinning weights for Small 3.1 is the only way to lock baseline performance.
Future AGI’s open-source agent-learning-kit (Apache-2.0) ships the fi.evals library, and its built-in groundedness evaluator returns a score and a plain-language reason. Score every candidate’s output with the same evaluator, so Small 3.1, Small 4 and each closed frontier model are judged on identical examples.
# pip install agent-learning-kit==0.3.7 (reads FI_API_KEY and FI_SECRET_KEY from the environment)
from fi.evals import evaluate
# Score an answer against retrieved context for groundedness.
result = evaluate(
"groundedness",
input="What context window does Mistral Small 3.1 support?",
output="Mistral Small 3.1 supports a 128,000 token context window.",
context="Mistral Small 3.1 ships with a 128k context window and native vision.",
model="turing_flash",
)
print(result.score, result.reason)
For trace-level observability of Small 3.1 calls, the Apache 2.0 traceAI library (OpenTelemetry-native) records the spans you open, as below. For Mistral API calls, the traceAI Mistral guide adds an instrumentor that traces supported Mistral chat and agent calls with no manual spans.
# pip install fi-instrumentation-otel==1.5.2
from fi_instrumentation import register
from fi_instrumentation.fi_types import ProjectType
tracer_provider = register(project_type=ProjectType.OBSERVE, project_name="mistral-small-rag-prod")
tracer = tracer_provider.get_tracer(__name__)
with tracer.start_as_current_span("rag.query") as span:
span.set_attribute("model", "mistral-small-3.1-24b-instruct")
# ... your retrieval + generation logic
To route between a self-hosted Small 3.1 and hosted models, the Future AGI Agent Command Center is an OpenAI-compatible gateway that reaches Mistral directly and a self-hosted vLLM or Ollama server through its OpenAI-compatible endpoint. It adds routing strategies, semantic caching and guardrails in front of every provider, so a fallback from Small 3.1 to Small 4 is a config change.
How Small 3.1 fits in the 2026 open-weight stack
Small 3.1 is one of the major open-weight model families to compare in 2026:
- Small 3.1 / 3.2 (Mistral): Apache 2.0, 24B, vision, 128k context, broad multilingual coverage.
- Small 4 (Mistral): Apache 2.0, 119B MoE, 6B active, 256k context.
- Meta Llama 3.3 70B and Llama 4 family: Llama Community License, stronger reasoning at the cost of higher memory.
- Qwen 3 (Alibaba): Apache 2.0 on the open checkpoints.
For a head-to-head with the rest of the 2026 open-weight field, see our open-source LLMs guide. For frontier closed-model comparisons, see best LLMs in May 2026.
Where Small 3.1 still earns its place
Small 3.1 left the Mistral API, but the reason teams picked it holds: Apache 2.0 weights, image input and a 128k window on one RTX 4090 or a 32 GB Mac. Keep it where one GPU and full data control matter, and send API traffic to Small 4.
Score Small 3.1 and Small 4 side by side with the Future AGI instruction-adherence evaluator.
Sources
- Small 3.1 release announcement from Mistral AI
- Introducing Mistral Small 4
- Mistral models overview with deprecated and retired models
- Small 3.1 24B Instruct 2503 model card on Hugging Face
- Mistral model lifecycle policy
- Ollama library page for mistral-small3.1
- Mistral-Small-3.2-24B-Instruct-2506 model card
- Devstral Small 1.1 (2507) model card
- OpenAI API deprecations
- Gemini API deprecations
- Text Generation Inference documentation
Frequently Asked Questions
Is Mistral Small 3.1 still available on the Mistral API?
What is the difference between Mistral Small 3.1 and Mistral Small 4?
How do you run Mistral Small 3.1 with Ollama?
What are the Mistral Small 3.1 benchmark scores?
How do you compare Mistral Small 3.1's performance for a specific task?
Best LLMs May 2026: compare GPT-5.5, Claude Opus 4.7, Gemini 3.1 Pro, and DeepSeek V4 across coding, agents, multimodal, cost, and open weights.
Compare the top open-weight LLMs in 2026: Llama 4.x, DeepSeek R2, Qwen 3, Mistral, Phi family. Benchmarks, licensing, hardware, and how to evaluate yours.
Compare GPT-5, Claude Opus 4.7, Gemini 2.5 Pro, and Grok 4 on GPQA, SWE-bench, AIME, context, $/1M tokens, and latency. May 2026 leaderboard scores.