Devstral 2 2512

Mistral chattool_use Long

API ID: mistralai/devstral-2512

Input Price
$0.05
/1M tokens
Output Price
$0.22
/1M tokens

About 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 codebases and orchestrating changes across multiple files while maintaining architecture-level context. It tracks framework dependencies, detects failures, and retries with corrections—solving challenges like bug fixing and modernizing legacy systems. The model can be fine-tuned to prioritize specific languages or optimize for large enterprise codebases. It is available under a modified MIT license.

đź’°
Price Ranking
#657 lowest price among 1240 Chat models

Model Specifications

Context Length
262k
Max Output
—
Release Date
2025-12-09
Capabilities
chat tool_use
Input Modalities
text
Output Modalities
text

Best For

  • Conversations, content writing, general assistance

Consider Alternatives For

  • Image understanding (needs vision capability)

đź’° Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$0.09
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$2.73
/month
1000 tickets/day, ~800 tokens each

Mistral Model Lineup

Compare all models from Mistral to find the best fit

Model Input Output Context Capabilities
Devstral 2 2512 Current Free Free 262k chat tool_use
Pixtral 12B Free Free 4k chat vision
Mistral 7B Instruct v0.3 Free Free 33k chat
Mistral 7B Instruct Free Free 33k chat
Mixtral 8x22B (base) Free Free 66k chat
Mixtral 8x22B (base) Free Free 66k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Alibaba Qwen Qwen2.5 VL 32B Instruct
Input: $0.05
Output: $0.22
Context: 128k
Zhipu Ai GLM 4.5 Air
Input: $0.05
Output: $0.22
Context: 131k
Alibaba Qwen Qwen3 14B
Input: $0.05
Output: $0.22
Context: 131k
DeepSeek DeepSeek V4 Flash Latest
Input: $0.09
Output: $0.18
Context: 1.0M

🚀 Quick Start

Get started with Devstral 2 2512 API

OpenAI-compatible SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.provider.com/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="mistralai/devstral-2512",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)