# mistral-31-24b

Mistral AI's instruction-tuned 24-billion-parameter model from the Mistral Small 3.1 line, adding vision understanding and long-context handling. It is aimed at conversational agents, function calling and local use, and it takes text and images as input.

- **Model id:** `opencheap/mistral-small-3.1-24b`
- **Price per 1M tokens:** $0.10 input / $0.30 output
- **Cached input:** $0.05 per 1M tokens
- **Context:** 128K tokens, 102K max output

## Providers

3 providers. Prices are per 1M tokens. As of 2026-12-04 12:06 UTC.

| Provider | Input price | Cache price | Output price | Latency | Speed | Uptime | Context | Max output |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| NanoGPT · quantization unknown | $0.10 | $0.05 | $0.30 | — | — | — | 128K | 102K |
| Cloudflare · quantization unknown | $0.37 | $0.37* | $0.58 | 0.41 s | 47 tok/s | 100 % | 128K | 102K |

\* No cache discount from this provider: cached tokens cost the input price.

1 more provider through partner hosts · from $0.11 in · $0.32 out

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

### Supported parameters

The parameters each provider supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; `provider.require_parameters` sends a request only to providers that support every parameter it sets. [Required parameters](https://docs.opencheap.si/speed#require-parameters)

- **NanoGPT:** `temperature`, `top_p`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format` (tools not confirmed)
- **Cloudflare:** `temperature`, `top_p`, `top_k`, `min_p`, `seed`, `logit_bias`, `repetition_penalty`, `frequency_penalty`, `presence_penalty`, `stop`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/mistral-small-3.1-24b#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/mistral-small-3.1-24b`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/mistral-small-3.1-24b", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/mistral-small-3.1-24b",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/mistral-small-3.1-24b",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About mistral-31-24b

mistral-31-24b costs from $0.10 per 1M input tokens and $0.30 per 1M output tokens on OpenCheap, with cached input at $0.05 per 1M tokens. Its list price is $0.35 per 1M input tokens and $0.56 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 50 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0013, and 1,000 such requests about $1.30. Prices as of 2026-12-04 12:06 UTC.

3 providers serve mistral-31-24b on OpenCheap. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 128K tokens (128,000), room for roughly 96,000 words of English in one request.

mistral-31-24b is one of [50 Mistral models](https://opencheap.si/models/lab/mistral) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## Pricing questions

### How much does the mistral-31-24b API cost per 1M tokens?

mistral-31-24b costs from $0.10 per 1M input tokens and $0.30 per 1M output tokens on OpenCheap, with cached input at $0.05 per 1M tokens. Prices as of 2026-12-04 12:06 UTC.

### What does one mistral-31-24b request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.0013, and 1,000 such requests about $1.30. Every answer reports its own cost in usage.cost.

### Is mistral-31-24b cheaper on OpenCheap than its list price?

Its list price is $0.35 per 1M input tokens and $0.56 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 50 % less here.

### Which providers serve mistral-31-24b?

3 providers serve mistral-31-24b on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

### What is the context window of mistral-31-24b?

Its context window is 128K tokens (128,000), room for roughly 96,000 words of English in one request.

### How do I call the mistral-31-24b API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/mistral-small-3.1-24b. One OpenCheap key works for every model; the rest of your code stays the same.

## More from Mistral

- [Mistral Small 3.2 24B (2506)](https://opencheap.si/models/mistral-small-3.2-24b) (`mistral-small-3.2-24b`): $0.07 / $0.19 per 1M · 256K context
- [codestral-2405](https://opencheap.si/models/codestral-2405) (`codestral-2405`): $1.05 / $3.15 per 1M · 32K context
- [Codestral 2508](https://opencheap.si/models/codestral-2508) (`codestral-2508`): $0.30 / $0.90 per 1M · 256K context
- [Devstral 2 123B](https://opencheap.si/models/devstral-2-123b) (`devstral-2-123b`): $0.006 / $0.03 per 1M · 262K context
- [devstral-2-123b-2512](https://opencheap.si/models/devstral-2-123b-2512) (`devstral-2-123b-2512`): $0.42 / $1.47 per 1M · 262K context
- [Mistral Devstral Small 2505](https://opencheap.si/models/devstral-small-2505) (`devstral-small-2505`): $0.06 / $0.06 per 1M · 32K context
- [devstral-small-latest](https://opencheap.si/models/devstral-small-latest) (`devstral-small-latest`): $0.11 / $0.32 per 1M · 256K context
- [labs-devstral-small-2512](https://opencheap.si/models/labs-devstral-small-2512) (`labs-devstral-small-2512`): $0.11 / $0.32 per 1M · 256K context

[All 50 Mistral models](https://opencheap.si/models/lab/mistral)

## Similar models

- [Llama 4 Scout](https://opencheap.si/models/llama-4-scout): Meta · 328K context · $0.10 / $0.32 per 1M · [Compare with mistral-31-24b](https://opencheap.si/compare/mistral-small-3.1-24b-vs-llama-4-scout)
- [GPT 4o Mini](https://opencheap.si/models/gpt-4o-mini): OpenAI · 128K context · $0.06 / $0.24 per 1M, 22 % cheaper · [Compare with mistral-31-24b](https://opencheap.si/compare/mistral-small-3.1-24b-vs-gpt-4o-mini)
- [Gemma 4 12B Starry Ocean](https://opencheap.si/models/gemma-4-12b-it-starry-ocean): Google · 131K context · $0.05 / $0.25 per 1M, 20 % cheaper · [Compare with mistral-31-24b](https://opencheap.si/compare/mistral-small-3.1-24b-vs-gemma-4-12b-it-starry-ocean)
- [Gemma 4 12B StationKeeper](https://opencheap.si/models/gemma-4-12b-it-station-keeper): Google · 131K context · $0.05 / $0.25 per 1M, 20 % cheaper · [Compare with mistral-31-24b](https://opencheap.si/compare/mistral-small-3.1-24b-vs-gemma-4-12b-it-station-keeper)
- [MiniMax M2.1](https://opencheap.si/models/minimax-m2.1): MiniMax · 204K context · $0.083 / $0.27 per 1M, 10 % cheaper · [Compare with mistral-31-24b](https://opencheap.si/compare/mistral-small-3.1-24b-vs-minimax-m2.1)
- [qwen3.8-27b-swiss](https://opencheap.si/models/qwen3.8-27b-swiss): Qwen · 131K context · $0.041 / $0.27 per 1M, 16 % cheaper · [Compare with mistral-31-24b](https://opencheap.si/compare/mistral-small-3.1-24b-vs-qwen3.8-27b-swiss)

[Compare mistral-31-24b with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/mistral-small-3.1-24b · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
