Mistral Small 3.1 API

24B-parameter multimodal model with 128K context for image analysis, programming, math, and multilingual tasks, tuned for efficient local inference.

Mistral AIText Generation128K contextProprietary Endpoint

About Mistral Small 3.1

24B-parameter multimodal model with 128K context for image analysis, programming, math, and multilingual tasks, tuned for efficient local inference.

Also known as Mistral Small, Mistral-Small-3.1

vision

Mistral Small 3.1 specs

Model ID
mistral-small-3-1
Provider
Mistral AI
Category
Text Generation
Context window
128K tokens
Max output
32,000 tokens
Input
text, image
Output
text
Endpoints
POST /v1/chat/completions
POST /v1/responses
POST /v1/messages

Mistral Small 3.1 API pricing

Live pay-as-you-go rates from the EmpirioLabs catalog. You are billed only for what you use, with no monthly minimum.

Type
Spec
Rate
Per Message
fixed
$0.0019
Web Search (Linkup)
per call when invoked
$0.013
Compare on the full pricing page

How to call the Mistral Small 3.1 API

Mistral Small 3.1 serves the OpenAI-compatible Chat Completions API. Point any OpenAI SDK at https://api.empiriolabs.ai/v1 with your EmpirioLabs API key and use the model id mistral-small-3-1. Get an API key from the EmpirioLabs dashboard.

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistral-small-3-1",
    "messages": [
      {"role": "user", "content": "Write a haiku about the ocean."}
    ]
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.empiriolabs.ai/v1",
    api_key="YOUR_EMPIRIOLABS_API_KEY",
)

response = client.chat.completions.create(
    model="mistral-small-3-1",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
Full Mistral Small 3.1 API reference

Mistral Small 3.1 API parameters

Request parameters supported by the Mistral Small 3.1 API on EmpirioLabs. Defaults apply when a field is omitted.

ParameterTypeDefaultRange / valuesDescription
temperaturenumber0.70 to 1.5Sampling temperature. 0 = deterministic, 2 = maximum randomness.
top_pnumber10 to 1Nucleus sampling probability mass. Lower = more focused.
max_tokensnumber40961 to 32768Maximum tokens in the response.
toolsstring--OpenAI-format tool definitions
tool_choicestring--auto, none, required, or {type, function}
response_formatstring--Set to {"type": "json_object"} for JSON mode
web_search_linkupbooleanfalse-Optional web search powered by Linkup. When enabled, recent web sources are retrieved using your latest user message as the query and provided to the model as...
disable_formattingbooleanfalse-When enabled, the gateway will not append the "Sources" footer to assistant responses that used Linkup web search. Useful when the model output is piped to another...

Mistral Small 3.1 API: common questions

How much does the Mistral Small 3.1 API cost?

On EmpirioLabs, Mistral Small 3.1 is billed pay as you go: Per Message $0.0019 fixed; Web Search (Linkup) $0.013 per call when invoked. The live rate card on this page always matches what the API charges.

What is the context window of Mistral Small 3.1?

Mistral Small 3.1 supports a 128K-token context window with up to 32,000 output tokens per response.

Is the Mistral Small 3.1 API OpenAI-compatible?

Yes. Mistral Small 3.1 serves the OpenAI-compatible Chat Completions API, so existing OpenAI SDKs work by pointing base_url at https://api.empiriolabs.ai/v1 and setting the model id to mistral-small-3-1.

Can I try Mistral Small 3.1 in the browser before integrating?

Yes. The EmpirioLabs playground runs Mistral Small 3.1 in the browser with the same parameters the API exposes, so you can test prompts before writing code.

How do I get a Mistral Small 3.1 API key?

Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make.

Ready to use better endpoints?

Explore our models, or contact us about business inquiries, custom deployments, or anything else.