# Mistral: Devstral 2 123B

Devstral 2 2512 is Mistral AI's instruct model for agentic software engineering, built to explore codebases, edit multiple files and power coding agents. It handles chat and instruction-following tasks and is licensed under a Modified MIT License.

- **Model id:** `opencheap/devstral-2-123b`
- **Price per 1M tokens:** $0.006 input / $0.03 output
- **Cached input:** $0.0006 per 1M tokens
- **Context:** 262K tokens, 32K max output

## Providers

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

| Provider | Input price | Cache price | Output price | Latency | Speed | Uptime | Context | Max output |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Qubax · quantization unknown · Snapshot not stated | $0.006 | $0.0006 | $0.03 | 1.22 s | 109 tok/s | 100 % (success rate) | 256K | 32K |
| Surplus · quantization unknown · Snapshot not stated | $0.032 | $0.0032 | $0.16 | 0.76 s | 113 tok/s | 90 % (success rate) | 256K | 32K |
| NanoGPT · quantization unknown · Snapshot not stated | $0.40 | $0.20 | $1.40 | 0.76 s | 141 tok/s | 100 % (success rate) | 262K | 65K |
| Mistral · quantization unknown · Snapshot not stated | $0.42 | $0.042 | $2.10 | 0.86 s | 89 tok/s | 99.6 % | 262K | 209K |

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)

- **Qubax:** `temperature`, `top_p`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **Surplus:** `temperature`, `top_p`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **NanoGPT:** `temperature`, `top_p`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format` (tools not confirmed)
- **Mistral:** `temperature`, `top_p`, `seed`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `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/devstral-2-123b#price-history).

## API

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

## About Devstral 2 123B

Devstral 2 123B costs from $0.006 per 1M input tokens and $0.03 per 1M output tokens on OpenCheap, with cached input at $0.0006 per 1M tokens. Its list price is $0.40 per 1M input tokens and $2.00 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 99 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.00009, and 1,000 such requests about $0.09. Prices as of 2026-12-04 12:01 UTC.

4 providers serve Devstral 2 123B 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 262K tokens (262,144), room for roughly 200,000 words of English in one request.

Devstral 2 123B 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 Devstral 2 123B API cost per 1M tokens?

Devstral 2 123B costs from $0.006 per 1M input tokens and $0.03 per 1M output tokens on OpenCheap, with cached input at $0.0006 per 1M tokens. Prices as of 2026-12-04 12:01 UTC.

### What does one Devstral 2 123B request cost?

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

### Is Devstral 2 123B cheaper on OpenCheap than its list price?

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

### Which providers serve Devstral 2 123B?

4 providers serve Devstral 2 123B 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 Devstral 2 123B?

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

### How do I call the Devstral 2 123B API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/devstral-2-123b. 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-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
- [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

- [Gemma 4 31B It](https://opencheap.si/models/gemma-4-31b): Google · 262K context · $0.012 / $0.036 per 1M · [Compare with Devstral 2 123B](https://opencheap.si/compare/devstral-2-123b-vs-gemma-4-31b)
- [gpt-oss-120b](https://opencheap.si/models/gpt-oss-120b): OpenAI · 131K context · $0.0049 / $0.021 per 1M, 29 % cheaper · [Compare with Devstral 2 123B](https://opencheap.si/compare/devstral-2-123b-vs-gpt-oss-120b)
- [Qwen3.6 27B](https://opencheap.si/models/qwen3.6-27b): Qwen · 262K context · $0.0053 / $0.053 per 1M · [Compare with Devstral 2 123B](https://opencheap.si/compare/devstral-2-123b-vs-qwen3.6-27b)
- [Qwen3 Coder 30B A3B Instruct](https://opencheap.si/models/qwen3-coder-30b-a3b): Qwen · 262K context · $0.0088 / $0.035 per 1M · [Compare with Devstral 2 123B](https://opencheap.si/compare/devstral-2-123b-vs-qwen3-coder-30b-a3b)
- [Nvidia Nemotron 3 Super 120B A12B](https://opencheap.si/models/nemotron-3-super-120b-a12b): NVIDIA · 1M context · $0.0076 / $0.041 per 1M · [Compare with Devstral 2 123B](https://opencheap.si/compare/devstral-2-123b-vs-nemotron-3-super-120b-a12b)
- [Kimi K2.5](https://opencheap.si/models/kimi-k2.5): Moonshot · 262K context · $0.017 / $0.083 per 1M · [Compare with Devstral 2 123B](https://opencheap.si/compare/devstral-2-123b-vs-kimi-k2.5)

[Compare Devstral 2 123B with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/devstral-2-123b · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
