Cracked AI Engineering

Codestral vs Devstral Medium

Codestral offers 256K tokens context vs 128K tokens. Compare full specs, pricing, and choose the best model for your use case.

Quick Overview

Codestral

Mistral

256K tokens context • $0.30 / $0.90 per 1M tokens

View full specifications →

Devstral Medium

Mistral

128K tokens context • $0.40 / $2.00 per 1M tokens

View full specifications →

Detailed Comparison

Specification
Codestral
Devstral Medium
Provider
Mistral
Mistral
Context Window
256K tokens
128K tokens
Max Output Tokens
4K tokens
128K tokens
Input Pricing (per 1M tokens)
$0.30
$0.40
Output Pricing (per 1M tokens)
$0.90
$2.00
Release Date
May 2024
Jul 2025

Capabilities

Capability
Codestral
Devstral Medium
Text Generation
Function Calling

Which Model Should You Choose?

Choose Codestral if:

  • • You need a larger context window
  • • Cost efficiency is a priority

Choose Devstral Medium if: