Skip to main content
MindStudio
Pricing
Blog About
My Workspace
Text Generation Model

Mistral Codestral

Open-weight code generation model assisting developers in 80+ programming languages.

Publisher Mistral
Type Text
Context Window 32,000 tokens
Training Data n/a
Input $0.20/MTok
Output $0.60/MTok

Open-weight code generation across 80+ languages

Mistral Codestral is an open-weight generative AI model built by Mistral and designed specifically for code generation tasks. It operates through a shared instruction and completion API endpoint, allowing developers to both write new code and interact with existing codebases. The model is trained on a dataset spanning more than 80 programming languages, including Python, Java, C, C++, JavaScript, Bash, Swift, and Fortran.

Codestral is intended for developers building AI-assisted coding tools and applications, as it handles both code and English fluently. Its broad language coverage makes it applicable across a wide range of development environments and project types. Because it is open-weight, it can be deployed and integrated in ways that closed models typically do not permit.

What Mistral Codestral supports

Code Generation

Generates code from natural language instructions or partial code inputs across 80+ programming languages, including Python, Java, C++, and Bash.

Code Completion

Fills in incomplete code snippets using a shared completion API endpoint, supporting mid-file and end-of-file completion patterns.

Instruction Following

Responds to natural language coding instructions through a shared instruction endpoint, enabling conversational code editing and generation.

Long Context Handling

Supports a 32,000-token context window, allowing it to process and generate code across large files or multi-function codebases in a single pass.

Multi-language Support

Trained on over 80 programming languages, including both widely used languages like JavaScript and more specialized ones like Fortran and Swift.

API Integration

Accessible via Mistral's API using a unified endpoint that handles both instruction and completion request formats for flexible integration.

Ready to build with Mistral Codestral?

Get Started Free

Common questions about Mistral Codestral

What is the context window for Mistral Codestral?

Mistral Codestral supports a context window of 32,000 tokens, which allows it to handle large code files or extended multi-function inputs in a single request.

How many programming languages does Codestral support?

Codestral is trained on a dataset covering more than 80 programming languages, including Python, Java, C, C++, JavaScript, Bash, Swift, and Fortran.

Is Codestral an open-weight model?

Yes, Codestral is an open-weight model released by Mistral, meaning the model weights are made available for download and self-hosted deployment.

What API endpoints does Codestral support?

Codestral uses a shared instruction and completion API endpoint, supporting both instruction-style prompts and fill-in-the-middle code completion requests.

What is the knowledge cutoff date for Codestral?

A specific training cutoff date is not listed in the available metadata for Mistral Codestral.

What people think about Mistral Codestral

The Reddit threads provided do not specifically discuss Mistral Codestral, focusing instead on other models such as Llama 4 and Google Gemini.

As a result, no community sentiment, praise, or concerns about Codestral can be accurately derived from these threads.

View more discussions →

Parameters & options

Max Temperature 1
Max Response Size 16,000 tokens

Start building with Mistral Codestral

No API keys required. Create AI-powered workflows with Mistral Codestral in minutes — free.