Mistralai model page

Mistral: Devstral 2 2512

mistralai/devstral-2512

Devstral 2 is a state-of-the-art open-source model by Mistral AI specializing in agentic coding. It is a 123B-parameter dense transformer model supporting a 256K context window. Devstral 2 supports exploring...

TextStructured outputTool callingLong context
Input / 1M
$0.52
Output / 1M
$2.60
Context
262K
Markup
30%

Use this model through UAI

A dedicated public landing page for this synced catalog row.

Provider
Mistralai

Synced from the active catalog

Context window
262K tokens

Validated for gateway requests

UAI input
$0.52

Charged from your UAI balance

UAI output
$2.60

Same API key and billing flow

This page exists for direct linking, onboarding, and SEO. The same model row powers /v1/models, the public catalog, the app pricing screen, and request validation for /v1/chat/completions.

Why use this model through UAI

The same model route, but with one account, one balance, and one API shape.

Long-context inputs

Mistral: Devstral 2 2512 exposes 262K tokens, which makes it a good fit for large documents, transcripts, and retrieval-heavy chat flows.

Agent integrations

Tool and function-style parameters stay available through the same UAI request surface, so agent stacks do not need a separate provider integration.

OpenAI-compatible access

Call mistralai/devstral-2512 with the same UAI API key, the same /v1/chat/completions shape, and the same request validation used across the rest of the catalog.

Pricing and access

Current synced numbers for this exact model row.

UAI input / 1M tokens
$0.52
UAI output / 1M tokens
$2.60
Mistralai input / 1M
$0.40
Mistralai output / 1M
$2.00
Context window
262,144
Current markup
30%

Need another option? Browse the full models catalog or compare rows in the signed-in pricing table.

Quickstart

Use this model with your UAI key over the standard OpenAI-compatible route.

Create a key in API Keys, then send requests to https://uai.sh/v1/chat/completions.

curl
curl https://uai.sh/v1/chat/completions \
  -H "Authorization: Bearer uai-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistralai/devstral-2512",
    "messages": [{"role": "user", "content": "Say hi in one short sentence."}],
    "stream": false
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(base_url="https://uai.sh/v1", api_key="uai-YOUR_API_KEY")
response = client.chat.completions.create(
    model="mistralai/devstral-2512",
    messages=[{"role": "user", "content": "Say hi in one short sentence."}],
    stream=False
)
print(response.choices[0].message.content)
Node.js (OpenAI SDK)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://uai.sh/v1",
  apiKey: "uai-YOUR_API_KEY"
});

const response = await client.chat.completions.create({
  model: "mistralai/devstral-2512",
  messages: [{ role: "user", content: "Say hi in one short sentence." }],
  stream: false
});

console.log(response.choices[0].message.content);

Related models

Other active rows to compare without leaving the public catalog.

mistralai
Mistral: Mistral Medium 3
mistralai/mistral-medium-3
Input / 1M$0.52
Context131K tokens
mistralai
Mistral: Mistral Medium 3.1
mistralai/mistral-medium-3.1
Input / 1M$0.52
Context131K tokens
mistralai
Mistral: Mistral Small 3.1 24B
mistralai/mistral-small-3.1-24b-instruct
Input / 1M$0.46
Context128K tokens