Skip to main content
MindStudio
Pricing
BlogAbout
My Workspace
Text Generation Model

Mistral Codestral

Mistral Codestral is a code-focused text generation model from Mistral with a 32,000 token context window.

PublisherMistral
TypeText
Context Window32,000 tokens
ReleasedMay 2024
Input$0.20/MTok
Output$0.60/MTok

Code generation model trained on 80+ languages

Mistral Codestral is a code generation model released by Mistral AI in May 2024, designed specifically for programming tasks. It supports over 80 programming languages, including Python, JavaScript, TypeScript, Rust, and Go, and is trained to handle tasks such as code completion, generation, and infilling. Its 32,000 token context window allows it to process and generate substantial amounts of code in a single request.

Codestral is best suited for developer workflows that require inline code completion, function generation, or working within large codebases. It accepts a fill-in-the-middle (FIM) format, enabling it to complete code given both a prefix and a suffix — a technique particularly useful for IDE integrations. The model is available through Mistral's API and has been integrated into tools such as Continue, Tabnine, and other coding assistants.

What Mistral Codestral supports

Code Generation

Generates code from natural language prompts or partial code inputs across 80+ programming languages including Python, JavaScript, and Rust.

Fill-in-the-Middle

Supports FIM (fill-in-the-middle) prompting, allowing the model to complete code given both a prefix and a suffix for precise inline completions.

Large Context Window

Processes up to 32,000 tokens of context, enabling work with large files or multi-file code snippets in a single request.

Code Completion

Provides single-line and multi-line code completions suited for IDE integrations, with a maximum response size of 16,000 tokens.

Multi-language Support

Trained on a dataset spanning over 80 programming languages, covering mainstream and niche languages for broad development use cases.

Ready to build with Mistral Codestral?

Get Started Free

Common questions about Mistral Codestral

What is the context window size for Mistral Codestral?

Mistral Codestral has a context window of 32,000 tokens, with a maximum response size of 16,000 tokens.

How many programming languages does Codestral support?

Codestral is trained on over 80 programming languages, including Python, JavaScript, TypeScript, Go, Rust, and many others.

Does Codestral support fill-in-the-middle (FIM) prompting?

Yes, Codestral supports FIM prompting, which allows it to complete code when given both a preceding prefix and a following suffix. This is particularly useful for IDE-style inline completions.

When was Mistral Codestral released?

Mistral Codestral was released in May 2024.

What is the pricing for Mistral Codestral on MindStudio?

Pricing details for Mistral Codestral are not published in the current metadata. You can check MindStudio's pricing page or Mistral's official API documentation for the latest rates.

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 Temperature1
Max Response Size16,000 tokens

Start building with Mistral Codestral

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