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 Small 3.1 24B

mistralai/mistral-small-3.1-24b-instruct
TextInput: text · imageTools128KAdded Mar 17, 2025

Try Mistral: Mistral Small 3.1 24B now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

Mistral: Mistral Small 3.1 24B at a glance

  • Input price is 22% lower than the median of 434 Text models.
  • Context window of 128,000 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.00220.

About Mistral: Mistral Small 3.1 24B

Mistral Small 3.1 24B Instruct is a text generation model from Mistral, released by the provider on 17 March 2025. It is an upgraded variant of Mistral Small 3 (2501) and carries 24 billion parameters. On api14 it sits in the text category, and the model id you use when calling it is mistralai/mistral-small-3.1-24b-instruct.

The model accepts text and images as input and returns text. Its context window is 128,000 tokens, with a maximum output of 102,400 tokens, so long documents and long generations both fit comfortably in a single request. The knowledge cutoff is 31 October 2023. Multimodal input means you can pass images alongside text prompts, which is useful when a task depends on information that only exists in a screenshot, diagram or scanned page.

Because it handles both text and images over a large context, the model suits document and image understanding tasks: summarising long reports, extracting structured data from scanned forms or screenshots, answering questions grounded in a supplied document, and mixed text and image support workflows. The 128k context also makes it reasonable for codebase level questions, long conversation histories and batch style analysis where you want to send a lot of material in one call. Tool and function calling support extends this to agent style pipelines that need to fetch data or trigger actions.

You call the model through api14's OpenAI-compatible API using the model id mistralai/mistral-small-3.1-24b-instruct, which means existing OpenAI SDKs and clients work with only the base URL and key changed. The request parameters it supports are frequency_penalty, logit_bias, logprobs, max_tokens, min_p, presence_penalty, repetition_penalty, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_logprobs and top_p. Structured outputs and the sampling controls are useful when you need predictable JSON or tightly constrained generations, while seed helps with reproducibility during testing.

Two limits are worth noting before you commit. The knowledge cutoff is 31 October 2023, so anything after that date has to come from your prompt or from tools rather than from the model's own knowledge. Output is text only, so if you need generated images or audio, this model is not the right fit. For tasks that are purely text and well within a smaller context, a lighter model may be cheaper and faster, but for multimodal input at 128k tokens this one covers a broad range of work.

How to call the Mistral: Mistral Small 3.1 24B API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "mistralai/mistral-small-3.1-24b-instruct".
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-small-3.1-24b-instruct",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

frequency_penaltylogit_biaslogprobsmax_tokensmin_ppresence_penaltyrepetition_penaltyseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p

Specifications

Context length
128,000
Max output
102,400
Input
text, image
Output
text
Knowledge cutoff
2023-10-31

Requests on api14 · last 7 days

10-1610-1710-1810-1910-2010-2110-22

Mistral: Mistral Small 3.1 24B: frequently asked questions

How much does the Mistral: Mistral Small 3.1 24B API cost?
Mistral: Mistral Small 3.1 24B costs Input $1.23 / 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 Small 3.1 24B?
Mistral: Mistral Small 3.1 24B reads up to 128,000 tokens per request: prompt, history and documents together. It writes up to 102,400 output tokens per response.
What can Mistral: Mistral Small 3.1 24B do?
Mistral: Mistral Small 3.1 24B accepts text, image and returns text. It supports tool calling, structured JSON output.
How do I call Mistral: Mistral Small 3.1 24B from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "mistralai/mistral-small-3.1-24b-instruct". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Mistral: Mistral Small 3.1 24B?
Comparable Text models at a similar price: Xiaomi: MiMo-V2.5-Pro, Qwen: Qwen3 Coder Next, Google: Gemini 3.1 Flash Lite (batch). Each runs through the same API key, so switching is one string.

Mistral: Mistral Small 3.1 24B community

New topic

This community has no topics yet. Open the first one about Mistral: Mistral Small 3.1 24B.