Codestral

Mistral's code-specialized model for developers

Last updated: May 22, 2026

Mistral AI Mistral AI
πŸ“… Released: May 2024 πŸ’³ Paid API CODE SPECIALIST

Overview

Codestral is Mistral AI's code-specialized model, trained on a vast corpus of programming languages. It excels at code completion, generation, debugging, and supports over 80 programming languages.

Parameters
22B
Context
32K tokens
Languages
80+ programming
Access
API + Azure

βœ…Strengths

  • βœ“Code-specialized training for accuracy
  • βœ“Supports 80+ programming languages
  • βœ“Fast code completion (low latency)
  • βœ“Fill-in-the-middle capability
  • βœ“Available via API and Azure

⚠️Weaknesses

  • βœ—Less capable for non-code tasks
  • βœ—Closed weights - API only
  • βœ—Smaller context than general models
  • βœ—May generate outdated patterns

Best Use Cases

πŸ’» IDE Completion

Autocomplete, Copilot

πŸ› Debugging

Error diagnosis

πŸ”„ Refactoring

Code improvement

πŸ“ Documentation

Comments, docs

πŸ§ͺ Tests

Unit test generation

πŸŽ“ Learning

Code explanations

Benchmarks

HumanEval81.5%
MBPP85.2%
MultiPL-E78.9%

Other Mistral Models

πŸš€ Try Codestral β†’