Devstral Medium

Mistral chattool_use

API ID: mistralai/devstral-medium-2507

Input Price
$0.40
/1M tokens
Output Price
$2.00
/1M tokens

About Devstral Medium

Devstral Medium is a high-performance code generation and agentic reasoning model developed jointly by Mistral AI and All Hands AI. Positioned as a step up from Devstral Small, it achieves 61.6% on SWE-Bench Verified, placing it ahead of Gemini 2.5 Pro and GPT-4.1 in code-related tasks, at a fraction of the cost. It is designed for generalization across prompt styles and tool use in code agents and frameworks. Devstral Medium is available via API only (not open-weight), and supports enterprise deployment on private infrastructure, with optional fine-tuning capabilities.

๐Ÿ’ฐ
Price Ranking
#962 lowest price among 1240 Chat models

Model Specifications

Context Length
131k
Max Output
โ€”
Release Date
2025-07-10
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.78
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$24.00
/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 Medium Current Free Free 131k 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

Moonshot AI Kimi K2 0905 (exacto)
Input: $0.40
Output: $2.00
Context: 262k
NVIDIA Llama 3.1 Nemotron 70B Instruct
Input: $1.20
Output: $1.20
Context: 131k
Zhipu Ai GLM 4.5V
Input: $0.60
Output: $1.80
Context: 66k
NVIDIA Llama 3.1 Nemotron Ultra 253B v1
Input: $0.60
Output: $1.80
Context: 131k

๐Ÿš€ Quick Start

Get started with Devstral Medium 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-medium-2507",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)