Mistral: Devstral 2 123BAPI pricing
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.
- 每100万枚代币的价格
- $0.032 / $0.16input / output−92%
- 缓存的输入
- $0.0032per 1M tokens
- 上下文
- 262K tokens32K max output
- 服务提供商
- 4
- 最快
- 141 tok/sNanoGPT
服务提供商
4 家服务商 ·
256K context · 32K max output
支持的参数9
- 抽样
温度top_plogit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
256K context · 32K max output
支持的参数9
- 抽样
温度top_plogit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
262K context · 65K max output
支持的参数7
- 抽样
温度top_p种子logit_bias- 处罚
存在惩罚- 输出
停止response_format- 未确认
工具
262K context · 209K max output
支持的参数10
- 抽样
温度top_p种子- 处罚
频率惩罚存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
价格走势
API
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" }] }'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)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);致电 Devstral 2 123B 使用 OpenAI SDK:将其指向 https://api.opencheap.si/v1 并传递模型 ID opencheap/devstral-2-123b;其余代码保持不变。
About Devstral 2 123B
- 标价
- $0.40 / $2.00in / out per 1M
- 保存与列表
- 92 %on a 1 : 3 input-to-output mix
- 请求示例
- $0.0004810,000 in + 1,000 out
- 端点
https://api.opencheap.si/v1- 模型 ID
每个请求都会发送给模型中成本最低且状态正常的提供者,而每个响应都会报告其成本为 使用成本. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, https://api.opencheap.si/v1.
用文字表述价格
Devstral 2 123B costs from $0.032 per 1M input tokens and $0.16 per 1M output tokens on OpenCheap, with cached input at $0.0032 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 92 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.00048, and 1,000 such requests about $0.48.
4 providers serve Devstral 2 123B on OpenCheap. 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 on OpenCheap.
The public list price is $0.40 per 1M input tokens and $2.00 per 1M output tokens. OpenCheap is from $0.032 and $0.16, as of 2026-12-04 11:48 UTC.
Prices as of 2026-12-04 11:48 UTC.
关于定价的问题
How much does the Devstral 2 123B API cost per 1M tokens?
Devstral 2 123B costs from $0.032 per 1M input tokens and $0.16 per 1M output tokens on OpenCheap, with cached input at $0.0032 per 1M tokens. Prices as of 2026-12-04 11:48 UTC.
What does one Devstral 2 123B request cost?
A request with 10,000 input tokens and 1,000 output tokens costs about $0.00048, and 1,000 such requests about $0.48. 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 92 % 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)mistral-small-3.2-24b$0.07 / $0.19 per 1M · 256K context
- codestral-2405codestral-2405$1.05 / $3.15 per 1M · 32K context
- Codestral 2508codestral-2508$0.30 / $0.90 per 1M · 256K context
- devstral-2-123b-2512devstral-2-123b-2512$0.42 / $1.47 per 1M · 262K context
- Mistral Devstral Small 2505devstral-small-2505$0.06 / $0.06 per 1M · 32K context
- devstral-small-latestdevstral-small-latest$0.11 / $0.32 per 1M · 256K context
- labs-devstral-small-2512labs-devstral-small-2512$0.11 / $0.32 per 1M · 256K context
- Magistral Small 2509magistral-small-2509$0.06 / $0.18 per 1M · 128K context
类似型号
- Qwen3 Coder NextQwen · 26.2万语境$0.03 / $0.20 per 1M
- Qwen 3 Coder 480BQwen · 26.2万语境$0.075 / $0.25 per 1M
- GLM 4.7Zhipu · 202K context$0.032 / $0.14 per 1M12 % cheaper
- GLM 4.6Zhipu · 202K context$0.044 / $0.18 per 1M
- DiffusionGemmaGoogle · 26.2万条上下文$0.05 / $0.15 per 1M
- Ternary Bonsai2 9BPrismML · 262K context$0.08 / $0.13 per 1M8 % cheaper