We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
Mistral: Mistral Medium 3.1
mistralai/mistral-medium-3.1Try Mistral: Mistral Medium 3.1 now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
Mistral: Mistral Medium 3.1 at a glance
- Input price is 11% lower than the median of 434 Text models.
- Context window of 131,072 tokens, enough for long documents and multi-turn conversations.
- Supports tool (function) calling for agents and integrations.
- Supports structured JSON output with a schema.
- Accepts images as input (vision).
- A typical request (1,000 input / 500 output tokens) costs about $0.00490.
About Mistral: Mistral Medium 3.1
Mistral Medium 3.1 is an enterprise-grade text model from Mistral, an updated version of Mistral Medium 3. Mistral positions it as a high-performance model that delivers frontier-level capabilities, and api14 exposes it under the model id mistralai/mistral-medium-3.1. It sits in the text category, so it is built for language work rather than audio or video, and the provider release date is 13 August 2025.
On the input side the model is multimodal: it accepts text, images and files, and it returns text. That combination matters for developers who need to feed a document, a screenshot or a scanned page into the same request as their instructions. The context window is 131,072 tokens, and the maximum output is 104,857 tokens, which is large enough for long generated documents rather than short replies only. The knowledge cutoff is 30 June 2025, so anything after that date has to come from the prompt or from a tool call. Supported request parameters include temperature, top_p, frequency_penalty, presence_penalty, max_tokens, stop, seed, response_format, structured_outputs, tools and tool_choice.
Those capabilities point to a few practical patterns. The file and image inputs suit document question answering, contract or report review, and extraction from PDFs or slides where the answer has to be grounded in the supplied material. The long context supports summarising or comparing several long documents in one call. Tool calling and structured outputs make it a reasonable fit for agent workflows and for pipelines where the model must return JSON that another service parses. The seed and penalty parameters give you some control over reproducibility and repetition when you are tuning prompts.
Through api14 you call it on the OpenAI-compatible chat completions endpoint, passing the model id mistralai/mistral-medium-3.1 with your messages. Because the surface is OpenAI-compatible, existing SDKs and clients work with a base URL change, and you can send the parameters listed above: temperature, top_p, frequency_penalty, presence_penalty, max_tokens, stop, seed, response_format, structured_outputs, tools and tool_choice. That means tool definitions and structured output schemas can be declared in the request rather than parsed out of free text afterwards.
The main constraint to keep in mind is scope. Output is text only, so it is not the model for image or audio generation, and its knowledge is frozen at 30 June 2025, which means recent facts belong in the prompt or should be retrieved through tools. If your workload needs a modality this model does not emit, or if you need a smaller and faster option for simple classification, another model on api14 may fit better. Otherwise it is a straightforward choice for text and document tasks that benefit from a large context window, image and file inputs, and tool calling.
How to call the Mistral: Mistral Medium 3.1 API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "mistralai/mistral-medium-3.1".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "mistralai/mistral-medium-3.1",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
frequency_penaltymax_tokenspresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_pSpecifications
- Context length
- 131,072
- Max output
- 104,857
- Input
- text, image, file
- Output
- text
- Knowledge cutoff
- 2025-06-30
Requests on api14 · last 7 days
Mistral: Mistral Medium 3.1: frequently asked questions
- How much does the Mistral: Mistral Medium 3.1 API cost?
- Mistral: Mistral Medium 3.1 costs Input $1.40 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of Mistral: Mistral Medium 3.1?
- Mistral: Mistral Medium 3.1 reads up to 131,072 tokens per request: prompt, history and documents together. It writes up to 104,857 output tokens per response.
- What can Mistral: Mistral Medium 3.1 do?
- Mistral: Mistral Medium 3.1 accepts text, image, file and returns text. It supports tool calling, structured JSON output.
- How do I call Mistral: Mistral Medium 3.1 from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "mistralai/mistral-medium-3.1". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to Mistral: Mistral Medium 3.1?
- Comparable Text models at a similar price: Mistral: Devstral 2 2512, Mistral: Mistral Medium 3, AionLabs: Aion-2.0. Each runs through the same API key, so switching is one string.
Mistral: Mistral Medium 3.1 community
New topicThis community has no topics yet. Open the first one about Mistral: Mistral Medium 3.1.