Skip to content

Mistral

Description

Mistral AI is a European foundation-model provider. The gateway integrates with Mistral La Plateforme at the EU-hosted endpoint https://api.mistral.ai for chat completions and SSE streaming. Authentication uses a bearer token; the gateway does not require any per-gateway configuration for Mistral beyond the BYOK key. Model identifiers span several families — for example mistral-…, codestral-…, magistral-…, ministral-…, and devstral-…; routing is by provider selection, not by name prefix.

Because Mistral is hosted in the EU, the gateway treats the mistral provider as an EU-resident provider, so a residency-restricted gateway can route to it.

Feature Limitation
Chat completions —
Streaming responses (SSE) —
Tool use Supported.
Vision input Passed through to the selected model.
Web search Supported. On every turn the gateway's tool loop runs (every chat in the web app, agents, API requests without their own tools) the gateway's own web search runs next to the other tools, so a turn can search and then create a file. Only a request the tool loop does not handle (one with its own tools, or a model without function calling) uses the Mistral Agents API, which carries no function tools (on a gateway whose search must stay with the gateway's own EU search, such a request runs without web search).
EU data residency Requests stay in the EU. Mistral is an EU-resident provider.

Note: The Mistral Agents API rejects a system role in the message list. On a web-search request that takes the Agents path the gateway keeps the system instruction by folding its content into the first user message, so the guidance is preserved while the system role is removed. The folded system text and the user's own message are separated by the prompt's block rule (---), so the user's text — including an attached or pasted document — is a separate block after the system prompt's last block. That first user message is preserved in full when it is made of several text parts (typed text plus a pasted document); a non-text part (an image) in that first message cannot ride the folded text input and is dropped with a gateway log — an image attached to the first message of a Mistral web-search conversation is not forwarded; later messages are forwarded as they came.


Mistral Large 4

Mistral Large 4 (mistral-large-4, also reachable as mistral-large-4-0) has a context window of 1,048,576 tokens and accepts image input, tool calls and reasoning (see Thinking (reasoning) control). Per Mistral's model card it costs $0.70 per 1M input tokens ($0.07 per 1M for cached input) and $2.10 per 1M output tokens; the catalog price follows the provider price-list sync. The model is available on any gateway that holds a Mistral key and is EU hosted. In the Chat model picker it appears as one row, Mistral Large 4.


Thinking (reasoning) control

The Chat's Adaptive-thinking toggle (chat_template_kwargs: {"enable_thinking": true|false}) is never forwarded to Mistral; the gateway translates it into Mistral's reasoning_effort, and only for models that have the switch (the toggle is offered in the Chat for exactly those models):

Model id (after any mistral/ prefix, case-insensitive) Thinking on Thinking off
mistral-small-2603* reasoning_effort: "high" "none"
mistral-medium-3-5*, mistral-medium-3.5* "high" "none"
mistral-large-4* "high" "low" (the lowest effort; this model cannot turn reasoning fully off)
*magistral* "high" "none"

Every other Mistral model id, including the -latest aliases (except magistral-*-latest, which is covered above) and the bare mistral-medium, has no switch: nothing is written, and the Chat shows no toggle. A reasoning_effort you set yourself always wins. A malformed toggle (not an object, or enable_thinking not a boolean) writes nothing. If Mistral reports reasoning_effort as unsupported, the gateway retries once without it and does not add it again.

The Chat toggle defaults to off. When a Mistral model answers with reasoning, it arrives as thinking parts in the message content; the gateway shows them as the model's reasoning, never as answer text. A part's thinking is a string or an array whose items are: a string (text), a {type:"text", text:string} item (text), an item with any other string type such as {type:"reference", reference_ids:[...]} (skipped, no error), or null (absent). null or missing thinking or item text counts as absent. A malformed part (thinking neither string nor array; an item that is an untyped object, has a non-string type, is a nested array, number or boolean; a non-string text) is never shown as text and never rejects the answer: non-streamed: all reasoning from thinking parts in that response is dropped; streamed: the malformed item is skipped and valid items in the same chunk are still shown; in both cases the answer is kept and one warning is logged.

Note: The Agents API path used for web search on requests the tool loop does not handle is unchanged and carries no thinking control.


BYOK key format

The BYOK value for the mistral provider is a single Mistral API key. The gateway sends the key in the Authorization: Bearer <KEY> header.


Adding the key

The procedure for storing a BYOK key is the same for every provider. See Provider keys (BYOK) for the steps. Select mistral in the Provider drop-down list and paste the API key in the API Key field.