# Mistral Medium Latest

Mistral's first flagship merged model, folding instruction following, configurable reasoning, agentic coding, and image understanding into a single dense 128B set of weights.

- **Model ID:** `mistral/mistral-medium-3.5`
- **Type:** chat
- **Providers:** mistral
- **Context window:** 262,144
- **Maximum output tokens:** 256,000
- **Pricing:** $1.5/1M input tokens, $7.5/1M output tokens
- **Canonical page:** https://vercel.com/ai-gateway/models/mistral-medium-3.5

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

```ts
import { streamText } from 'ai'

const result = streamText({
  model: 'mistral/mistral-medium-3.5',
  prompt: 'Why is the sky blue?'
})
```

## About

Announced April 29, 2026, Mistral Medium Latest is Mistral's first flagship merged model. Earlier lineups split the work across three families: Medium for instruction following, Magistral for reasoning, and Devstral for agentic coding. Mistral Medium Latest folds all three into a single dense 128B model and succeeds Mistral Medium 3.1 as Mistral's flagship mid-size tier.

Mistral Medium Latest scores 77.6% on SWE-Bench Verified and 91.4 on the τ³-Telecom agentic benchmark, per Mistral's announcement. The SWE-Bench result puts Mistral Medium Latest ahead of Mistral's earlier Devstral coding models.

Reasoning effort is configurable per request. Ask for a fast reply on simple prompts, or allocate more test-time compute for long agentic runs. The vision encoder handles variable image sizes and aspect ratios, so Mistral Medium Latest reads screenshots, documents, and diagrams alongside text. Native function calling and structured output support long-horizon tool use.

The weights are open under a modified MIT license. Through AI Gateway, you access Mistral Medium Latest without separate Mistral API credentials, with unified billing plus cost and latency visibility across every request.

## What to consider

Mistral Medium Latest merges what used to be three separate Mistral model lines. Instruction following, reasoning, and agentic coding now share one set of weights, and reasoning effort is configurable per request. Turn reasoning up for hard agentic runs and down for quick replies.

Reasoning spends extra output tokens on test-time compute, so budget for higher output usage when you enable it. AI Gateway's built-in observability shows the cost and latency impact per request. For simple high-volume tasks that never need reasoning or vision, a smaller model like Ministral or Mistral Small may be a better fit.

## When to use

### Best For

- Agentic workflows that mix planning, reliable tool calls, and structured output in one loop
- Software engineering agents, backed by 77.6% on SWE-Bench Verified
- Multimodal tasks that combine screenshots, documents, or diagrams with text
- Teams consolidating separate chat, reasoning, and coding models into one endpoint
- Long-context work over large codebases or document sets within a context window of 262.1K tokens

### Consider Alternatives When

- You need Mistral's largest general-purpose model (consider Mistral Large 3)
- Cost efficiency dominates and your tasks are simple (consider Ministral or Mistral Small)
- You want a dedicated fill-in-the-middle completion model for IDE plugins (consider Codestral)

## Best for

- **Agentic Tool-Calling Workflows:** Long-horizon runs that mix planning, reliable tool calls, and structured output
- **Software Engineering Agents:** Multi-file coding tasks backed by 77.6% on SWE-Bench Verified
- **Multimodal Document Understanding:** Tasks that combine screenshots, diagrams, or documents with text
- **Model Consolidation:** Replacing separate chat, reasoning, and coding models with one endpoint
- **Configurable Reasoning Effort:** Dialing test-time compute up or down per request

## Consider alternatives

- **Largest General-Purpose Capability:** You want Mistral's biggest model (consider Mistral Large 3)
- **Paramount Cost Efficiency:** Simple high-volume tasks don't need reasoning or vision (consider Ministral or Mistral Small)
- **Fill-in-the-Middle Completion:** You need a dedicated IDE completion model (consider Codestral)

## Frequently asked questions

### What does it mean that Mistral Medium Latest is a merged model?

Mistral Medium Latest combines instruction following, reasoning, and agentic coding in a single set of weights. Earlier Mistral lineups split these capabilities across the Medium, Magistral, and Devstral families.

### What is Mistral Medium Latest's score on SWE-Bench Verified?

77.6%, per Mistral's announcement. That result places Mistral Medium Latest ahead of Mistral's earlier Devstral coding models.

### What is Mistral Medium Latest's context window?

262.1K tokens. That capacity holds large codebases, long documents, or extended agent histories in a single request.

### Does Mistral Medium Latest support image inputs?

Yes. Mistral Medium Latest is multimodal, with a vision encoder that handles variable image sizes and aspect ratios across screenshots, documents, and diagrams.

### Can I control how much Mistral Medium Latest reasons?

Yes. Reasoning effort is configurable per request, so you can request quick replies for simple prompts and deeper test-time compute for hard agentic runs.

### What is the pricing for Mistral Medium Latest?

Check the pricing panel on this page for current rates. AI Gateway tracks pricing across every provider that serves Mistral Medium Latest.

### Does AI Gateway offer Zero Data Retention for Mistral Medium Latest?

Yes, Zero Data Retention is available for this model. Zero Data Retention is offered on a per-provider basis. See https://vercel.com/docs/ai-gateway/capabilities/zdr for details.

### How do I access Mistral Medium Latest?

Use Mistral Medium Latest through AI Gateway via the AI SDK, Chat Completions API, Responses API, Messages API, or other API formats, from TypeScript or Python. No separate Mistral API key is required.

## Links

- [Model page](https://vercel.com/ai-gateway/models/mistral-medium-3.5)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider model documentation](https://docs.mistral.ai/models/model-cards/mistral-medium-3-5-26-04)


If you encounter incorrect information, can’t find what you need, need a capability Vercel doesn’t currently offer, or have any other feedback to report, please do it by following the instructions at https://vercel.com/feedback.md.
