Sponsored by Byond Boundrys Consulting - Empowering Ideas, Delivering Results
Mistral AI Advanced

Codestral 24.05

Codestral 24.05 is Mistral's original 22B coding and FIM model with 32K context. Its API was retired on June 16, 2025.

Coding ModelsText Paid
In plain English

What is this model and why does it matter?

Codestral 24.05 was Mistral's first dedicated coding and fill-in-the-middle model. The original API model was retired in June 2025.

Historical coding model researchFill-in-the-middle experimentsCompatibility testingExisting local deployments
Model overview

Codestral 24.05: features, use cases and important details

Codestral 24.05 was Mistral AI’s first dedicated coding model, released on May 29, 2024. Its API model ID was codestral-2405, and Mistral lists 22 billion parameters, a 32K context window and the Mistral Non-Production License for the weights.

What Codestral was built for

The model specialized in code generation and fill-in-the-middle completion, making it useful for IDE-style coding assistance, code repair and test generation. Mistral also documented support across a very large number of programming languages.

Retirement status

Mistral now marks this specific 24.05 release as retired with a June 16, 2025 retirement date. New integrations should use the provider’s current Codestral model rather than the old codestral-2405 API identity.

Why keep this page

The page remains useful for developers maintaining legacy integrations or studying the evolution of Mistral’s coding models. Historical API pricing should be removed because it no longer represents a current service.

Get started

How to use this model

  1. Use the exact codestral-2405 identity only for historical or compatibility work.
  2. Review the MNPL license before using the weights.
  3. Use FIM prompting for code completion workflows.
  4. For a new managed integration, select the current Codestral model instead.
  5. Evaluate generated code for correctness and security.
Copy and try

Example prompts

  • Fill the missing code between this prefix and suffix.
  • Generate unit tests for this function.
  • Explain this code path and suggest a safer implementation.
Capabilities

What it can do

  • Code generation
  • Fill-in-the-middle
  • Code completion
  • Code explanation
  • 32K context
Best for

Practical use cases

  • IDE completion research
  • Legacy coding assistants
  • Code infilling
  • Model comparison
Pricing

What does it cost?

Retired API generation. Do not show historical Codestral 24.05 API pricing as current; model weights remain available under MNPL.

Simple summaryThe retired API should not be assigned current pricing. Self-hosting costs depend on infrastructure and the MNPL license terms.

What stands out

  • Specialized coding model
  • 22B weights available
  • Strong historical FIM support

Things to consider

  • Retired API
  • MNPL is restrictive compared with permissive licenses
  • Only 32K context
Limitations

Important restrictions and trade-offs

  • Not recommended for new Mistral integrations
  • Generated code can contain security or logic bugs
  • Historical API pricing is obsolete
SimplifyAITools verdict

Our editorial take

Keep as a historical coding profile, but clearly direct new integrations to current Codestral rather than the retired 24.05 API model.

References

Primary sources

  1. Open source 1 ↗
  2. Open source 2 ↗
  3. Open source 3 ↗