Code Generation
Generates code from natural language instructions or partial code inputs across 80+ programming languages, including Python, Java, C++, and Bash.
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.
High-signal model metadata in a structured two-column overview table.
The entity that provides this model.
The number of tokens supported by the input context window.
The number of tokens that can be generated by the model in a single request.
Whether the model's code is available for public use.
When the model was first released.
When the model's knowledge was last updated.
The providers that offer this model. This is not an exhaustive list.
Types of data this model can process.
A fuller summary of positioning, capabilities, and source-specific details for Mistral Codestral.
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.
Generates code from natural language instructions or partial code inputs across 80+ programming languages, including Python, Java, C++, and Bash.
Fills in incomplete code snippets using a shared completion API endpoint, supporting mid-file and end-of-file completion patterns.
Responds to natural language coding instructions through a shared instruction endpoint, enabling conversational code editing and generation.
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.
Trained on over 80 programming languages, including both widely used languages like JavaScript and more specialized ones like Fortran and Swift.
Accessible via Mistral's API using a unified endpoint that handles both instruction and completion request formats for flexible integration.
Primary API pricing shown in the same “quick compare” spirit as the reference page.
Additional usage-cost dimensions synced into the project for this model.
Places where this model is available, based on the synced detail-page metadata.
Official model cards, release notes, docs, and other references synced from the source page.
Mistral Codestral discussions are most active in r/CLine, r/mcp, r/AISEOInsider. Top Reddit threads cluster around coding workflow discussions. The strongest match in this snapshot has 7 upvotes and 6 comments.
It is very good for coding It is better than codellama please add it. Thanks 😊
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.
Codestral is trained on a dataset covering more than 80 programming languages, including Python, Java, C, C++, JavaScript, Bash, Swift, and Fortran.
Yes, Codestral is an open-weight model released by Mistral, meaning the model weights are made available for download and self-hosted deployment.
Codestral uses a shared instruction and completion API endpoint, supporting both instruction-style prompts and fill-in-the-middle code completion requests.
A specific training cutoff date is not listed in the available metadata for Mistral Codestral.
Continue browsing adjacent models from the same provider.