Skip to content
← Models
Open weightsMistral AI/10 trustVerified

Mistral Codestral 2

Mistral's 22B dense code model — now Apache 2.0, dropping the old non-commercial license.

Visit official page →

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

256K tokens

Pricing

Via Mistral API; per-token pricing not verified in sources read

Free quota

Community reports of a free tier on La Plateforme (~1B tokens/mo) — unverified

API access

Mistral API (codestral-latest); Google Cloud Vertex AI; Hugging Face weights

Weights

Open weights

Released

April 8, 2026

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

codecode-completiontesting

Trust score — 7/10

/10 trustVerified

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.

More in the codestral family

Sources