MistralMistral

Codestral

State-of-the-art code generation model

Codestral is Mistral's dedicated code model, trained on over 80 programming languages. It excels at code completion, bug fixing, and test generation, and supports a 256k-token context window ideal for large codebases.

Try Codestral

Specifications

Context window256k tokens
Input price$0.300 / 1M tokens
Output price$0.900 / 1M tokens
Credits per query1 cr
Released2025-01
LicenseMistral Commercial

Features

Tool useJSON modeCodeFunction calling

Benchmark Scores

What do these mean?

Sourced from official model cards and academic papers. Higher is better.

PhD-level science & reasoning

Mathematical olympiad problems

Chatbot Arena human preference ranking

Python coding — pass@1 rate

91.5%

Competition-level mathematics

General knowledge across 57 academic domains

79%

Multi-turn instruction following (out of 10)

Real-world GitHub issue resolution rate