# Mistral: labs-devstral-small-2512

labs-devstral-small-2512 is a language model, tuned for writing and editing code.

- **Model id:** `opencheap/labs-devstral-small-2512`
- **Price per 1M tokens:** $0.11 input / $0.32 output
- **Cached input:** $0.11 per 1M tokens
- **Context:** 256K tokens

## Providers

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

| Provider | Input price | Cache price | Output price | Context |
| --- | --- | --- | --- | --- |
| Unnamed provider · quantization unknown | $0.11 | $0.11 | $0.32 | 256K |

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)

## 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/labs-devstral-small-2512#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/labs-devstral-small-2512`; 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/labs-devstral-small-2512", "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/labs-devstral-small-2512",
    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/labs-devstral-small-2512",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About labs-devstral-small-2512

labs-devstral-small-2512 costs from $0.11 per 1M input tokens and $0.32 per 1M output tokens on OpenCheap. It has no public list price to compare with. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0014, and 1,000 such requests about $1.37. Prices as of 2026-12-04 12:01 UTC.

One provider serves labs-devstral-small-2512 on OpenCheap today. 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 256K tokens (256,000), room for roughly 190,000 words of English in one request.

labs-devstral-small-2512 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 labs-devstral-small-2512 API cost per 1M tokens?

labs-devstral-small-2512 costs from $0.11 per 1M input tokens and $0.32 per 1M output tokens on OpenCheap. Prices as of 2026-12-04 12:01 UTC.

### What does one labs-devstral-small-2512 request cost?

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

### Which providers serve labs-devstral-small-2512?

One provider serves labs-devstral-small-2512 on OpenCheap today. 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 labs-devstral-small-2512?

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

### How do I call the labs-devstral-small-2512 API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/labs-devstral-small-2512. 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
- [Magistral Small 2509](https://opencheap.si/models/magistral-small-2509) (`magistral-small-2509`): $0.06 / $0.18 per 1M · 128K context

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

## Similar models

- [Qwen/Qwen2.5-Coder-32B-Instruct](https://opencheap.si/models/qwen2.5-coder-32b): Qwen · 32K context · $0.20 / $0.20 per 1M, 24 % cheaper · [Compare with labs-devstral-small-2512](https://opencheap.si/compare/labs-devstral-small-2512-vs-qwen2.5-coder-32b)
- [Llama 4 Scout](https://opencheap.si/models/llama-4-scout): Meta · 328K context · $0.10 / $0.32 per 1M · [Compare with labs-devstral-small-2512](https://opencheap.si/compare/labs-devstral-small-2512-vs-llama-4-scout)
- [Qwen 3 Coder 480B](https://opencheap.si/models/qwen3-coder): Qwen · 262K context · $0.075 / $0.25 per 1M, 22 % cheaper · [Compare with labs-devstral-small-2512](https://opencheap.si/compare/labs-devstral-small-2512-vs-qwen3-coder)
- [Gemma 4 26B A4B Cybersecurity](https://opencheap.si/models/gemma-4-26b-a4b-it-cybersecurity): Google · 262K context · $0.11 / $0.33 per 1M · [Compare with labs-devstral-small-2512](https://opencheap.si/compare/labs-devstral-small-2512-vs-gemma-4-26b-a4b-it-cybersecurity)
- [Doubao Seed 1.6 Lite](https://opencheap.si/models/doubao-seed-1.6-lite): ByteDance · 256K context · $0.041 / $0.33 per 1M · [Compare with labs-devstral-small-2512](https://opencheap.si/compare/labs-devstral-small-2512-vs-doubao-seed-1.6-lite)
- [Step 3.5 Flash](https://opencheap.si/models/step-3.5-flash): StepFun · 256K context · $0.11 / $0.33 per 1M · [Compare with labs-devstral-small-2512](https://opencheap.si/compare/labs-devstral-small-2512-vs-step-3.5-flash)

[Compare labs-devstral-small-2512 with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/labs-devstral-small-2512 · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
