Codestral (latest)
by Mistral AI · May 29, 2024
Codestral (latest) is an open-weight chat llm from Mistral AI, released May 29, 2024. It has 22B parameters, a 250K-token context window and accepts text, pdf input. API pricing starts at $0.3 per million input tokens and $0.9 per million output tokens. It is available from 4 API providers.
- Provider
- Mistral AI
- Released
- May 29, 2024
- Type
- Chat LLM
- Parameters
- 22B
- Context window
- 256,000 tokens
- Max output
- 4,096 tokens
- Input
- text, pdf
- Output
- text
- Weights
- Open weights
- License
- Open (non-commercial)
- Knowledge cutoff
- Oct 2024
- Status
- Available via API
About Codestral (latest)
Mistral code model for completions, refactors, and developer IDE workflows
Codestral (latest) benchmarks
All benchmarks →- Aider Polyglot11.1%
Scores from the Epoch AI Benchmarking Hub (best reported setting). ECI = Epoch Capabilities Index.
Where to run Codestral (latest) — API providers & pricing
| Provider | Input $/1M | Output $/1M | Cached input | Context |
|---|---|---|---|---|
| Mistral | $0.3 | $0.9 | $0.03 | 250K |
| Vercel AI Gateway | $0.3 | $0.9 | $0.03 | 125K |
| Eden AI | $0.3 | $0.9 | $0.03 | 250K |
| Merge Gateway | $0.3 | $0.9 | — | 250K |
Open weights: you can also run Codestral (latest) locally with Ollama, LM Studio, llama.cpp or vLLM.
Codestral (latest) vs alternatives
- Codestral (latest) vs DeepSeek-Coder-V2-Lite-Base
- Codestral (latest) vs MobileLLM-125M
- Codestral (latest) vs solar-pro-preview-instruct
- Codestral (latest) vs pythia-410m-seed3
- Codestral (latest) vs pythia-31m-seed1
- Codestral (latest) vs Tencent-Hunyuan-Large
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| DeepSeek-Coder-V2-Lite-Baseopen | DeepSeek | Jun 2024 | 16B | — | — | — | 99.4 |
| MobileLLM-125Mopen | Meta | Oct 2024 | — | — | — | — | — |
| solar-pro-preview-instructopen | Upstage | Sep 2024 | 22B | — | — | — | — |
| pythia-410m-seed3open | EleutherAI | Jan 2024 | — | — | — | — | — |
| pythia-31m-seed1open | EleutherAI | Jan 2024 | — | — | — | — | — |
| Tencent-Hunyuan-Largeopen | Tencent | Oct 2024 | — | — | — | — | — |
| OmniParseropen | Microsoft | Oct 2024 | — | — | — | — | — |
| Gemma 2 27Bopen | Google DeepMind | Jul 2024 | 27B | 8K | $0.65 | $0.65 | 118.6 |
More models from Mistral AI
All Mistral AI models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| Mistral Large 4 | Oct 2026 | 1.1T | 1M | $0.7 | $2.10 |
| Mistral Medium 3.5open | Apr 2026 | 128B | 256K | $1.50 | $7.50 |
| Mistral Medium 3 | May 2025 | — | 128K | $0.4 | $2 |
| Mistral Large 3open | Nov 2024 | 675B | 256K | $0.5 | $1.50 |
| Mistral Nemoopen | Jul 2024 | 12B | 128K | $0.029 | $0.03 |
| Mixtral 8x22B Instructopen | Apr 2024 | 141B | 64K | $2 | $6 |
| Mistral-7B-v0.1open | Sep 2023 | 7.2B | — | — | — |
| Mistral Small 4open | Mar 2026 | 119B | 256K | $0.15 | $0.6 |
Frequently asked questions
Who made Codestral (latest)?
Codestral (latest) was developed by Mistral AI (France). It was released on May 29, 2024.
What is the context window of Codestral (latest)?
Codestral (latest) supports a context window of 256,000 tokens (250K) and can generate up to 4,096 output tokens per response.
How much does Codestral (latest) cost?
Codestral (latest) costs $0.3 per 1M input tokens and $0.9 per 1M output tokens, with cached input at $0.03 per 1M. Prices vary across the 4 providers that serve it.
Is Codestral (latest) open source?
Yes. Codestral (latest)'s weights are publicly available, so you can download and run it yourself.
How many parameters does Codestral (latest) have?
Codestral (latest) has 22B parameters.
How does Codestral (latest) perform on benchmarks?
Codestral (latest) scores 11.1% on Aider Polyglot.
Where can I use Codestral (latest)?
Codestral (latest) is available via 4 API providers, and you can also self-host it with tools like vLLM, Ollama or LM Studio.
Sources: epoch, models.dev · paper. Last updated 2026-11-22.