Mistral Medium 3.1

Mistral Medium 3.1
Mistral AI · Text Generation
POST /v1/chat/completions

Enterprise-grade model with strong reasoning, coding, and STEM performance, supporting hybrid, on-prem, and in-VPC deployments.

This model is deprecated and will be retired on 2026-08-31. After that date, requests to this model will fail. Migrate to a successor model before then.

At a glance

FieldValue
Model idmistral-medium-3-1
Model release date2025-08-12
Input modalitiesText, Image
Output modalitiesText
Context window131K
Weight precision-
Max output tokens40,000
Featuresvision, function_calling
Native inferenceNo
NewNo
Structured outputJSON Mode
Batch API35% off list price
Supported endpointsPOST /v1/chat/completions, POST /v1/responses, POST /v1/messages, POST /v1beta/models/mistral-medium-3-1:generateContent
Alternate model idsmistral-medium-3.1, mistralai/mistral-medium-3.1
Deprecation date2026-08-31

Pricing

ChargeSpecRate
Inputper 1M prompt tokens$0.52
Outputper 1M generated tokens$2.60
Web Search (Linkup)per call when invoked$0.013

Example request

$curl https://api.empiriolabs.ai/v1/chat/completions \
> -H 'Authorization: Bearer $EMPIRIOLABS_API_KEY' \
> -H 'Content-Type: application/json' \
> -d '{"model": "mistral-medium-3-1", "messages": [{"role":"user","content":"Hello"}]}'

Parameters

ParameterTypeRequiredDefaultDescription
temperaturenumberno0.7Sampling temperature · Range: 0 – 2
top_pnumberno1.0Nucleus sampling · Range: 0 – 1
max_tokensnumberno4096Max output tokens · Range: 1 – 65536
frequency_penaltynumberno0Penalty for repeated tokens. >0 reduces repetition, <0 encourages it. · Range: -2 – 2
presence_penaltynumberno0Penalty for new vs. seen tokens. >0 encourages new topics, <0 encourages staying on topic. · Range: -2 – 2
stopstringno-Comma-separated stop sequences
response_formatenumno-Return the output as a valid JSON object (JSON mode). Describe the fields you want in your prompt.
web_search_linkupbooleannofalseOptional web search powered by Linkup. When enabled, recent web sources are retrieved using your latest user message as the query and provided to the model as additional context. Adds $0.013 per call when invoked on top of the model’s normal token cost. Disabled by default.
disable_formattingbooleannofalseWhen enabled, the gateway will not append the “Sources” footer to assistant responses that used Linkup web search. Useful when the model output is piped to another system that expects no decoration.

Machine-readable schema: GET https://api.empiriolabs.ai/v1/models/mistral-medium-3-1.