Mistral Medium 3.1
About this model
Mistral Medium 3.1 is an AI model from Mistral AI, made available through the API on August 13, 2025. It can read up to 131,072 tokens in one request, roughly 246 pages of text, and write up to 104,857 tokens in a single answer. Besides text, it accepts images and files such as PDFs as input.
Through the API it costs $0.40 per million input tokens and $2 per million output tokens. Its pricing sits in the middle of the market.
It can call tools and functions, so developers can connect it to search, databases or other software.
Quality scores
Rankings →Not rated yet. Independent test results usually appear a few weeks after a model is released.
Where to use it
Companies that serve this model through an API: 3. Prices per million tokens, cheapest first.
| Provider | Inputi | Outputi | Contexti | Uptime (24 h)i |
|---|---|---|---|---|
MistralOfficialCheapest | $0.40 | $2 | 128K | 99.7% |
MistralOfficialCheapest | $0.40 | $2 | 128K | 99.5% |
MistralOfficial | $0.44 | $2.20 | 128K | 100.0% |
Availability and prices come from OpenRouter’s public API and are refreshed daily. Uptime is the share of successful requests over the last 24 hours. Some providers run a compressed version of open models (fp8, int4), which is cheaper but can be slightly less accurate.
Use it in your code
Call Mistral Medium 3.1 through OpenRouter’s OpenAI-compatible API: create a key on openrouter.ai, then run one of these examples.
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "mistralai/mistral-medium-3.1", "messages": [{"role": "user", "content": "Hello! What can you do?"}]}'import os
from openai import OpenAI
client = OpenAI(base_url="https://openrouter.ai/api/v1", api_key=os.environ["OPENROUTER_API_KEY"])
reply = client.chat.completions.create(
model="mistralai/mistral-medium-3.1",
messages=[{"role": "user", "content": "Hello! What can you do?"}],
)
print(reply.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://openrouter.ai/api/v1", apiKey: process.env.OPENROUTER_API_KEY });
const reply = await client.chat.completions.create({
model: "mistralai/mistral-medium-3.1",
messages: [{ role: "user", content: "Hello! What can you do?" }],
});
console.log(reply.choices[0].message.content);The same code works with every model on this site: only the model ID changes. Many labs also offer their own API and SDK.
What it costs in practice
- 1,000 chat replies$0.80
- Summarise a 100-page document$0.022
- An app with 10,000 requests a day for a month$360
Similar-priced alternatives
| Model | Inputi | Outputi | Contexti | |
|---|---|---|---|---|
Qwen3 VL 235B A22B ThinkingAlibaba Qwen | $0.40 | $4 | 128K | Compare with ⇄ |
GLM 4.6Z.ai (Zhipu) | $0.43 | $1.75 | 200K | Compare with ⇄ |
MiMo-V2.6-ProXiaomi | $0.44 | $0.87 | 1.1M | Compare with ⇄ |
Inkling SmallThinking Machines Lab | $0.45 | $1.20 | 512K | Compare with ⇄ |
Kimi K2.5Moonshot AI | $0.45 | $2.25 | 256K | Compare with ⇄ |
Muse Glimmer 30BMeta | $0.35 | $1.50 | 128K | Compare with ⇄ |
News about Mistral AI
See all →Frequently asked questions
- How much does Mistral Medium 3.1 cost?
- Mistral Medium 3.1 costs $0.40 per million input tokens and $2 per million output tokens through the API. For example, 1,000 chat replies of about 500 tokens in and 300 out cost around $0.80.
- What is the context window of Mistral Medium 3.1?
- Mistral Medium 3.1 can read up to 131,072 tokens in one request, about 246 pages of text. It can write up to 104,857 tokens in a single answer.
- Is Mistral Medium 3.1 open source?
- No. Mistral Medium 3.1 is a closed model: its weights are not published, so you use it through Mistral AI’s own apps and API, or through cloud providers.
- Who makes Mistral Medium 3.1?
- Mistral Medium 3.1 is made by Mistral AI. It became available through the API on August 13, 2025.
- Can Mistral Medium 3.1 read images?
- Yes. Besides text, it accepts images and files such as PDFs as input.
- What are the alternatives to Mistral Medium 3.1?
- Models with a similar price from other companies include Qwen3 VL 235B A22B Thinking, GLM 4.6 and MiMo-V2.6-Pro. You can compare them side by side on this page.