deCloud
MA CHAIN · 20260131
← All models

Mistral: Mistral Small 3.1 24B

Origin
mistralai/mistral-small-3.1-24b-instruct

Mistral Small 3.1 24B Instruct is an upgraded variant of Mistral Small 3 (2501), featuring 24 billion parameters with advanced multimodal capabilities. It provides state-of-the-art performance in text-based reasoning and...

Context
128K
Input MA / 1M
0.4212
Output MA / 1M
0.666

Billing follows the provider's own reported cost rather than the catalogue price — cached input is cheaper, and reasoning tokens bill as output. Your usage page is the record of what you actually paid.

Capabilities

ChatVisionToolsStructured

Try it

One free message per account, no deposit needed. The reply is length-capped — it's a taste, not a quota.

Connect a wallet and sign in to use your free try.

Connect a wallet

Call it

Every model goes through the same endpoint — just use this page's ID as model.

curl https://macdecloud.com/v1/chat/completions \
  -H "Authorization: Bearer dcld-sk-..." \
  -H "Content-Type: application/json" \
  -d '{"model":"mistralai/mistral-small-3.1-24b-instruct","messages":[{"role":"user","content":"Hello"}]}'

Streaming

Add "stream": true for token-by-token output over standard SSE.

curl -N https://macdecloud.com/v1/chat/completions \
  -H "Authorization: Bearer dcld-sk-..." \
  -H "Content-Type: application/json" \
  -d '{"model":"mistralai/mistral-small-3.1-24b-instruct","stream":true,"messages":[{"role":"user","content":"hi"}]}'

Function calling

This model supports tools. Replies may carry tool_calls; run them and append the results as role: "tool" messages, then call again.

{
  "model": "mistralai/mistral-small-3.1-24b-instruct",
  "messages": [{ "role": "user", "content": "What's the weather in Paris?" }],
  "tools": [{
    "type": "function",
    "function": {
      "name": "get_weather",
      "parameters": {
        "type": "object",
        "properties": { "city": { "type": "string" } },
        "required": ["city"]
      }
    }
  }]
}

Structured output

Supports response_format, so the model returns JSON matching a schema you give it instead of prose you have to parse.

{
  "model": "mistralai/mistral-small-3.1-24b-instruct",
  "messages": [{ "role": "user", "content": "..." }],
  "response_format": {
    "type": "json_schema",
    "json_schema": {
      "name": "result",
      "schema": {
        "type": "object",
        "properties": { "answer": { "type": "string" } },
        "required": ["answer"]
      }
    }
  }
}

Image input

Make content an array mixing text and image_url parts. The image can be a public URL or a data: base64 payload.

{
  "model": "mistralai/mistral-small-3.1-24b-instruct",
  "messages": [{
    "role": "user",
    "content": [
      { "type": "text", "text": "What is in this image?" },
      { "type": "image_url", "image_url": { "url": "https://example.com/photo.jpg" } }
    ]
  }]
}
Use it from Claude Code / Cursor / opencode →
Mistral: Mistral Small 3.1 24B (ORIGIN) · deCloud