AI Prosumer
EN
Mistral AI

mistral-small3.1

Get API key
mistral/mistral-small3.1:24b-instruct-2503-q8_0

Building upon Mistral Small 3, Mistral Small 3.1 (2503) adds state-of-the-art vision understanding and enhances long context capabilities up to 128k tokens without compromising text performance.

Input → Output
Text, Image Text
Access
Token Exchange
Context window
131,072 tokens
Model tags
5 versions available
License: unknown

From model to application

Quick Start

API reference
  1. Get your API key

    Create a key in the ShareAI Console, then save it as an environment variable on your server.

    Create API key
    Environment variable
    export SHAREAI_API_KEY="your-api-key"
  2. Choose your endpoint

    Send a POST request with your API key in the Authorization header.

    POSThttps://api.shareai.now/api/v1/chat/completions
  3. Make your first request

    The request below uses your selected tag. Run it on your server to keep your API key private.

    cURL
    curl --request POST 'https://api.shareai.now/api/v1/chat/completions' \
      --header "Authorization: Bearer ${SHAREAI_API_KEY}" \
      --header 'Content-Type: application/json' \
      --data-raw '{
      "model": "mistral/mistral-small3.1:24b-instruct-2503-q8_0",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ],
      "stream": false
    }'
    Python
    import json
    import os
    import urllib.request
    
    payload = json.loads("{\n  \"model\": \"mistral/mistral-small3.1:24b-instruct-2503-q8_0\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"Hello!\"\n    }\n  ],\n  \"stream\": false\n}")
    request = urllib.request.Request("https://api.shareai.now/api/v1/chat/completions",
        data=json.dumps(payload).encode(),
        headers={
            "Authorization": f"Bearer {os.environ['SHAREAI_API_KEY']}",
            "Content-Type": "application/json",
        },
        method="POST",
    )
    with urllib.request.urlopen(request) as response:
        print(json.load(response))
    TypeScript
    const response = await fetch("https://api.shareai.now/api/v1/chat/completions", {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.SHAREAI_API_KEY}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "model": "mistral/mistral-small3.1:24b-instruct-2503-q8_0",
        "messages": [
          {
            "role": "user",
            "content": "Hello!"
          }
        ],
        "stream": false
      }),
    });
    if (!response.ok) throw new Error(await response.text());
    console.log(await response.json());

Token Exchange

Available through Token Exchange

Use the network with your token balance. Your account’s consumption settings determine how requests are billed.

Choose your version

Tags 5

Open a tag to see its specifications and API examples.

A little more detail

Frequently asked questions

What is mistral-small3.1?

Building upon Mistral Small 3, Mistral Small 3.1 (2503) adds state-of-the-art vision understanding and enhances long context capabilities up to 128k tokens without compromising text performance.

How much does mistral-small3.1 cost?

This tag is available through Token Exchange. Your token balance and account consumption settings determine access and billing. Check your Console for your balance and eligibility.

What inputs and outputs does mistral-small3.1 support?

Inputs: Text, Image. Outputs: Text. These capabilities apply to the selected model tag. Check the endpoint documentation for supported request formats.

What is the context length of mistral-small3.1?

This tag has a context window of 131,072 tokens. Context size and pricing thresholds are separate. Request limits can be lower for a particular deployment.

Does mistral-small3.1 support tool calling and structured outputs?

Tool calling: Supported.

How do I use mistral-small3.1 with ShareAI?

Create an API key in the ShareAI Console, choose a model tag, and send an authenticated request to the endpoint in Quick Start. Your key must have access to the chosen model. Keep your key on your server.