Skip to content
← Models
Open weightsMistral AI/10 trustMetrics-checked
Codestral 22B logo

Codestral 22B

Mistral's 22B code specialist — research/non-production license.

Visit official page →

About

Codestral 22B (mistralai/Codestral-22B-v0.1), released May 2024, is Mistral AI's code-generation specialist: 22B parameters, trained on 80+ programming languages, with strong fill-in-the-middle support for IDE-style completion. Weights are downloadable from Hugging Face (not gated) but licensed under MNPL — the Mistral Non-Production License: research and testing only, no production use. It is not open source and must not be described as such. For production code assistance, use a commercially-licensed model or API.

Specs

Context window

32K tokens (documented for the 22B release)

Pricing

Weights: free for non-production use (MNPL). Production: via Mistral's paid API (La Plateforme) — no open-weights commercial path for this checkpoint.

Free quota

No official free API tier; non-production self-hosting is free.

API access

Self-host (Transformers, vLLM) for non-production use. Production: Mistral API.

Weights

Open weights

Released

May 29, 2024

Benchmarks

Provider-reported (Mistral, May 2024): competitive with larger code models on HumanEval, RepoBench, and fill-in-the-middle benchmarks — provider-reported, now dated (2024); treat comparisons against 2025-2026 code models as stale.

Provider-reported unless a source says otherwise. Benchmarks are marketing-adjacent by nature — treat them as directional.

Use cases

code generationcode completionresearch

Trust score — 6/10

/10 trustMetrics-checked

Scored 6/10 (metrics tier, metrics-v1). Evidence: HF: mistralai/Codestral-22B-v0.1; HF downloads 19,952 (peer-normalized); released 867 days ago. Manual review: Mistral's 22B code specialist (80+ langs, fill-in-the-middle); 2024-era, superseded; modest HF traction (20k dl). License: MNPL — Mistral Non-Production License: research/testing ONLY, no production use; describe as 'open weights', never 'open source'.

How the trust score is built

Full methodology →
Adoption · stars/downloads, log-scaled vs peers
6.6/10
Maintenance · recency, releases, issue load
4.0/10
Openness · license + docs
5.8/10
Manual review · sanity read + red-flag check
7.0/10
  • · HF: mistralai/Codestral-22B-v0.1
  • · HF downloads 19,952 (peer-normalized)
  • · released 867 days ago
  • · manual review: Mistral's 22B code specialist (80+ langs, fill-in-the-middle); 2024-era, superseded; modest HF traction (20k dl)

More in the codestral family

Sources