We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

Mistral: Devstral 2 2512

mistralai/devstral-2512
TextInput: text · fileTools262KAdded Dec 9, 2025

Try Mistral: Devstral 2 2512 now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

Mistral: Devstral 2 2512 at a glance

  • Input price is 11% lower than the median of 434 Text models.
  • Context window of 262,144 tokens, enough for long documents and multi-turn conversations.
  • Supports tool (function) calling for agents and integrations.
  • Supports structured JSON output with a schema.
  • A typical request (1,000 input / 500 output tokens) costs about $0.00490.

About Mistral: Devstral 2 2512

Mistral: Devstral 2 2512 is an open-source model from Mistral AI, released on 9 December 2025. It is a 123B-parameter dense transformer built specifically for agentic coding, meaning it is designed to work inside tool-driven workflows rather than only answering single-shot prompts. It sits in the text category, and the model id on api14 is "mistralai/devstral-2512".

The model accepts text and file inputs and returns text. Its context window is 262144 tokens, with a maximum output of 209715 tokens, so it can hold large codebases, long logs or multi-file diffs in a single request and still produce substantial output. Supported request parameters are frequency_penalty, max_tokens, presence_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools and top_p. Tool calling and structured outputs are part of that set, which matters for agentic coding: the model can be given function definitions, choose among them, and return responses in a schema you define.

Those capabilities point to a fairly specific set of uses. Agentic coding assistants that read files, run commands and iterate on a repository are the clearest fit, since the model was built for that pattern and the file input modality lets you pass source material directly. Code review and refactoring across large files also follow from the long context and large output allowance. Because tools and structured outputs are supported, you can wire it into pipelines that need deterministic JSON, such as extracting structured data from documents or driving multi-step automation where each step returns a typed result. The seed parameter helps when you want repeatable runs during testing.

Calling it through api14 works like any other OpenAI-compatible model. Point your client at the api14 base URL, send a chat completions request, and set the model field to "mistralai/devstral-2512". The parameters listed above can be passed in the request body in the usual OpenAI format, including tools and tool_choice for function calling and response_format or structured_outputs when you need constrained output. No separate SDK is required if you already have an OpenAI-compatible client.

One practical limit to keep in mind is modality: input is text and file, output is text only, so image or audio work would need a different model. The context window is large but not unlimited, and very long agent sessions still need trimming or summarisation. If your task is general conversation rather than coding or tool use, a lighter general-purpose model may be a better fit.

How to call the Mistral: Devstral 2 2512 API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "mistralai/devstral-2512".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.chat.completions.create({
  "model": "mistralai/devstral-2512",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

frequency_penaltymax_tokenspresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_p

Specifications

Context length
262,144
Max output
209,715
Input
text, file
Output
text

Requests on api14 · last 7 days

10-1710-1810-1910-2010-2110-2210-23

Mistral: Devstral 2 2512: frequently asked questions

How much does the Mistral: Devstral 2 2512 API cost?
Mistral: Devstral 2 2512 costs Input $1.40 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of Mistral: Devstral 2 2512?
Mistral: Devstral 2 2512 reads up to 262,144 tokens per request: prompt, history and documents together. It writes up to 209,715 output tokens per response.
What can Mistral: Devstral 2 2512 do?
Mistral: Devstral 2 2512 accepts text, file and returns text. It supports tool calling, structured JSON output.
How do I call Mistral: Devstral 2 2512 from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "mistralai/devstral-2512". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Mistral: Devstral 2 2512?
Comparable Text models at a similar price: Mistral: Mistral Medium 3.1, Mistral: Mistral Medium 3, AionLabs: Aion-2.0. Each runs through the same API key, so switching is one string.

Mistral: Devstral 2 2512 community

New topic

This community has no topics yet. Open the first one about Mistral: Devstral 2 2512.