Use our main calculator for more detailed estimates including input/output combinations.
Key Features
Specialized for code (80+ languages)
22 billion parameters
Open weights
32K context window
Strong performance on coding benchmarks
Common Use Cases
Code completion
Code generation from instructions
Code explanation & debugging
Unit test generation
Language translation for code
Frequently Asked Questions
What is Codestral specialized for?
Codestral is Mistral AI's open-weight model specifically trained for code generation and understanding. It supports over 80 programming languages and is designed to assist developers with tasks like code completion, generating new code from instructions, writing tests, explaining code blocks, and filling in partial code.
What is the context window size for Codestral?
Codestral comes with a base context window of 32K tokens. However, it has been shown to be extendable to larger context windows (e.g., 128K) while maintaining performance, making it suitable for understanding and generating code within larger projects.