---
title: Mistral: Mistral Medium 3.1 | Text Generation | ModelsLab
description: Frontier-class multimodal LLM with 128k context window, 45+ tokens/sec speed, text/image processing, function calling—delivers top reasoning/coding.
url: https://modelslab.com/models/mistralai/mistralai-mistral-medium-3.1.md
canonical: https://modelslab.com/models/mistralai/mistralai-mistral-medium-3.1.md
type: product
component: Playground/LLM/Index
generated_at: 2026-06-03T20:22:49.539315Z
---

Mistral: Mistral Medium 3.1
---

 [LLMs.txt](https://modelslab.com/models/open_router/mistralai-mistral-medium-3.1/llms.txt) [.md](https://modelslab.com/models/mistralai/mistralai-mistral-medium-3.1.md)

Mistral: Mistral Medium 3.1
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Mistral: Mistral Medium 3.1

mistralai mistralai-mistral-medium-3.1

Copy model ID

PricingInput $0.40 / 1M tokens

Output $2.00 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[#### open\_router/Qwen: Qwen3 8B

qwen-qwen3-8b

From $0.23/M tokens](https://modelslab.com/models/open_router/qwen-qwen3-8b)

[#### open\_router/Meta: Llama 3.2 11B Vision Instruct

meta-llama-llama-3.2-11b-vision-instruct

From $0.24/M tokens](https://modelslab.com/models/open_router/meta-llama-llama-3.2-11b-vision-instruct)

[#### open\_router/Google: Gemini 3.1 Pro Preview

google-gemini-3.1-pro-preview

From $7.00/M tokens](https://modelslab.com/models/open_router/google-gemini-3.1-pro-preview)

[#### open\_router/Meta: Llama 3.2 1B Instruct

meta-llama-llama-3.2-1b-instruct

From $0.11/M tokens](https://modelslab.com/models/open_router/meta-llama-llama-3.2-1b-instruct)

[#### open\_router/NVIDIA: Nemotron 3 Nano 30B A3B

nvidia-nemotron-3-nano-30b-a3b

From $0.13/M tokens](https://modelslab.com/models/open_router/nvidia-nemotron-3-nano-30b-a3b)

[#### open\_router/NousResearch: Hermes 2 Pro - Llama-3 8B

nousresearch-hermes-2-pro-llama-3-8b

From $0.14/M tokens](https://modelslab.com/models/open_router/nousresearch-hermes-2-pro-llama-3-8b)

[#### open\_router/MiniMax: MiniMax M1

minimax-minimax-m1

From $1.30/M tokens](https://modelslab.com/models/open_router/minimax-minimax-m1)

[#### openai/GPT 5.2

gpt-5.2

From $7.88/M tokens](https://modelslab.com/models/openai/gpt-5.2)

[#### refuel\_ai/Refuel LLM V2 Small

togethercomputer-Refuel-Llm-V2-Small

From $0.24/M tokens](https://modelslab.com/models/refuel_ai/togethercomputer-Refuel-Llm-V2-Small)

[#### open\_router/Qwen: Qwen3 VL 30B A3B Instruct

qwen-qwen3-vl-30b-a3b-instruct

From $0.33/M tokens](https://modelslab.com/models/open_router/qwen-qwen3-vl-30b-a3b-instruct)

[#### open\_router/Meta: Llama 4 Maverick

meta-llama-llama-4-maverick

From $0.38/M tokens](https://modelslab.com/models/open_router/meta-llama-llama-4-maverick)

[#### open\_router/Google: Gemini 2.5 Pro Preview 05-06

google-gemini-2.5-pro-preview-05-06

From $5.63/M tokens](https://modelslab.com/models/open_router/google-gemini-2.5-pro-preview-05-06)

[#### open\_router/Anthropic: Claude Sonnet 4.6

anthropic-claude-sonnet-4.6

From $9.00/M tokens](https://modelslab.com/models/open_router/anthropic-claude-sonnet-4.6)

[#### open\_router/Qwen: Qwen3 30B A3B

qwen-qwen3-30b-a3b

From $0.27/M tokens](https://modelslab.com/models/open_router/qwen-qwen3-30b-a3b)

[#### openai/GPT-5-mini

gpt-5-mini

From $1.13/M tokens](https://modelslab.com/models/openai/gpt-5-mini)

[#### open\_router/Qwen: Qwen3 32B

qwen-qwen3-32b

From $0.18/M tokens](https://modelslab.com/models/open_router/qwen-qwen3-32b)

[#### meta/Meta Llama 3.1 405B Instruct Turbo

meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo

From $3.50/M tokens](https://modelslab.com/models/meta/meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo)

[#### open\_router/Mancer: Weaver (alpha)

mancer-weaver

From $0.88/M tokens](https://modelslab.com/models/open_router/mancer-weaver)

Open Source Alternatives
---

Explore open-source models that offer similar capabilities with full transparency and flexibility

 [View all open source models](https://modelslab.com/models?feature=llm&provider=open-source-models)

[MU](https://modelslab.com/models/modelslab/uncensored-chat)[ModelsLab](https://modelslab.com/models/modelslab)

 [Modelslab: Uncensored Chat

Open Source Model](https://modelslab.com/models/modelslab/uncensored-chat)

About Mistral: Mistral Medium 3.1
---

Mistral Medium 3.1 is an updated version of Mistral Medium 3, which is a high-performance enterprise-grade language model designed to deliver frontier-level capabilities at significantly reduced operational cost. It balances...

### Technical Specifications

Model IDmistralai-mistral-medium-3.1

CategoryLLM Models

TaskText Generation

Price$1.2 per million tokens

AddedFebruary 20, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Mistral: Mistral Medium 3.1 into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "mistralai-mistral-medium-3.1",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

### Pricing

Mistral: Mistral Medium 3.1 API costs $1.200000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Mistralai](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Mistral: Mistral Medium 3.1 FAQ
---

### What is Mistral: Mistral Medium 3.1?

Mistral Medium 3.1 is an updated version of Mistral Medium 3, which is a high-performance enterprise-grade language model designed to deliver frontier-level capabilities at significantly reduced operational cost. It balances...

### How do I use the Mistral: Mistral Medium 3.1 API?

You can integrate Mistral: Mistral Medium 3.1 into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "mistralai-mistral-medium-3.1" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Mistral: Mistral Medium 3.1 cost?

Mistral: Mistral Medium 3.1 costs $1.200000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Mistral: Mistral Medium 3.1 model ID?

The model ID for Mistral: Mistral Medium 3.1 is "mistralai-mistral-medium-3.1". Use this ID in your API requests to specify this model.

### Does Mistral: Mistral Medium 3.1 have a free tier?

Yes, ModelsLab offers a free tier that lets you try Mistral: Mistral Medium 3.1 and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-06-04*