---
title: Mistral: Devstral 2 2512 API | Text Generation | ModelsLab
description: Agentic LLM for software engineering with 123B parameters, 256k context window, and 72.2% SWE-bench score—excels at tool use, codebase exploration, and.
url: https://modelslab.com/models/mistralai/mistralai-devstral-2512.md
canonical: https://modelslab.com/models/mistralai/mistralai-devstral-2512.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-15T00:19:12.908654Z
---

Mistral: Devstral 2 2512
---

 [LLMs.txt](https://modelslab.com/models/open_router/mistralai-devstral-2512/llms.txt) [.md](https://modelslab.com/models/mistralai/mistralai-devstral-2512.md)

mistralai-devstral-2512 mistralai Closed Source Model $1.200000 / call

Mistral: Devstral 2 2512
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Mistral: Devstral 2 2512

mistralai mistralai-devstral-2512

Copy model ID

PricingInput $0.40 / 1M tokens

Output $2.00 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-coder)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 Coder 480B A35B

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-coder)

[![Mixtral-8x7B Instruct v0.1](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/67dabe3d-a00a-4cc4-a158-136c8f189137.png)](https://modelslab.com/models/together_ai/mistralai-Mixtral-8x7B-Instruct-v0.1)[Together AI](https://modelslab.com/models/together_ai)

 [Mixtral-8x7B Instruct v0.1

Closed Source Model](https://modelslab.com/models/together_ai/mistralai-Mixtral-8x7B-Instruct-v0.1)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3.5-plus-02-15)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3.5 Plus 2026-02-15

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3.5-plus-02-15)

[G3](https://modelslab.com/models/together_ai/google-gemma-3-27b-pt)[Together AI](https://modelslab.com/models/together_ai)

 [Gemma 3 27B Pt

Closed Source Model](https://modelslab.com/models/together_ai/google-gemma-3-27b-pt)

[Q9](https://modelslab.com/models/together_ai/Qwen-Qwen3.5-9B)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3.5 9B FP8

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen3.5-9B)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-vl-8b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 VL 8B Instruct

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-vl-8b-instruct)

[OG](https://modelslab.com/models/open_router/openai-gpt-5-chat)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-5 Chat

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-5-chat)

[L4](https://modelslab.com/models/meta/meta-llama-Llama-4-Scout-17B-16E-Instruct)[ModelsLab](https://modelslab.com/models/meta)

 [Llama 4 Scout Instruct (17Bx16E)

Closed Source Model](https://modelslab.com/models/meta/meta-llama-Llama-4-Scout-17B-16E-Instruct)

[CV](https://modelslab.com/models/together_ai/deepcogito-cogito-v1-preview-qwen-32B)[Together AI](https://modelslab.com/models/together_ai)

 [Cogito V1 Preview Qwen 32B

Closed Source Model](https://modelslab.com/models/together_ai/deepcogito-cogito-v1-preview-qwen-32B)

[GG](https://modelslab.com/models/open_router/google-gemma-3n-e4b-it-free)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemma 3n 4B (free)

Closed Source Model](https://modelslab.com/models/open_router/google-gemma-3n-e4b-it-free)

[AA](https://modelslab.com/models/open_router/arcee-ai-trinity-mini)[Open Router](https://modelslab.com/models/open_router)

 [Arcee AI: Trinity Mini

Closed Source Model](https://modelslab.com/models/open_router/arcee-ai-trinity-mini)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-235b-a22b)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 235B A22B

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-235b-a22b)

[![GPT-5-mini](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/0bda788d-705d-4cbd-9c9d-dcdaa12b9493.webp)](https://modelslab.com/models/openai/gpt-5-mini)[Open Ai](https://modelslab.com/models/openai)

 [GPT-5-mini

Closed Source Model](https://modelslab.com/models/openai/gpt-5-mini)

[OG](https://modelslab.com/models/open_router/openai-gpt-4o-extended)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-4o (extended)

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-4o-extended)

[QQ](https://modelslab.com/models/open_router/qwen-qwen2.5-vl-32b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen2.5 VL 32B Instruct

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen2.5-vl-32b-instruct)

[OO](https://modelslab.com/models/open_router/openai-o4-mini)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: o4 Mini

Closed Source Model](https://modelslab.com/models/open_router/openai-o4-mini)

[ML](https://modelslab.com/models/open_router/meta-llama-llama-4-maverick)[Open Router](https://modelslab.com/models/open_router)

 [Meta: Llama 4 Maverick

Closed Source Model](https://modelslab.com/models/open_router/meta-llama-llama-4-maverick)

[OO](https://modelslab.com/models/open_router/openai-o3-mini-high)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: o3 Mini High

Closed Source Model](https://modelslab.com/models/open_router/openai-o3-mini-high)

About Mistral: Devstral 2 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...

### Technical Specifications

Model IDmistralai-devstral-2512CategoryLLM ModelsTaskText GenerationPrice$1.200000 per million tokensAddedFebruary 20, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Mistral: Devstral 2 2512 into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "mistralai-devstral-2512",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab.com/models/mistralai/mistralai-devstral-2512/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Mistral: Devstral 2 2512 API costs $1.200000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Mistralai](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Mistral: Devstral 2 2512 FAQ
---

### What is Mistral: Devstral 2 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...

### How do I use the Mistral: Devstral 2 2512 API?

You can integrate Mistral: Devstral 2 2512 into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "mistralai-devstral-2512" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Mistral: Devstral 2 2512 cost?

Mistral: Devstral 2 2512 costs $1.200000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Mistral: Devstral 2 2512 model ID?

The model ID for Mistral: Devstral 2 2512 is "mistralai-devstral-2512". Use this ID in your API requests to specify this model.

### Does Mistral: Devstral 2 2512 have a free tier?

Yes, ModelsLab offers a free tier that lets you try Mistral: Devstral 2 2512 and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-04-15*