Mistral Codestral 2
Mistral's 22B dense code model — now Apache 2.0, dropping the old non-commercial license.
About
Codestral 2 (April 8, 2026) is Mistral's second-generation code model: a 22B dense (non-MoE) transformer with a 256K-token context window, fill-in-the-middle support, and coverage of 80+ programming languages, optimized for low-latency IDE completions and code generation. The headline is licensing: it ships under Apache 2.0, a clean break from the original Codestral's Mistral Non-Production License that barred commercial use. That makes it one of the few permissively licensed low-latency code completion models suitable for production deployment. Mistral claims it outperforms GPT-4o on HumanEval and MBPP (provider-reported). It follows the Codestral 2501/2508 API iterations and sits alongside the agentic Devstral line — Codestral for fast completions, Devstral for long agentic runs.
Specs
Context window
Pricing
Free quota
API access
Weights
Released
Benchmarks
- Outperforms GPT-4o on HumanEval and MBPP — provider-reported
Provider-reported unless a source says otherwise. Benchmarks are marketing-adjacent by nature — treat them as directional.
Use cases
Trust score — 7/10
Scored 7/10 (verified tier, metrics-v1). Evidence: April 8, 2026 release, 22B dense, 256K context, 80+ languages, FIM — per GitHub release tracker; Apache 2.0 license shift (from MNPL non-commercial) is the key verified fact, well documented; HumanEval/MBPP superiority claim provider-reported; thinner sourcing overall.