# Codestral 25.01

> Mistral AI's low-latency coding model: ~2x faster generation, 256K context, 80+ languages (codestral-2501).

- Maker: Mistral AI
- Line: Codestral
- Canonical page: https://ai-tldr.dev/models/codestral-2501/
- Updated: 2026-06-18

## In short

Codestral 25.01 (API id codestral-2501) is a code-generation model that Mistral AI released on January 13, 2025 as an update to its original Codestral line. It has a 256K-token context window and costs $0.30 per million input tokens and $0.90 per million output tokens. You can use it through Mistral AI and OpenRouter.

## Facts

| Fact | Value | Source |
| --- | --- | --- |
| Context window | 256K (max output Not disclosed) | [1] |
| Input price | $0.30 / 1M tokens | [2] |
| Output price | $0.90 / 1M tokens | [2] |
| Licence | Proprietary (Mistral commercial / API-only — not released as open weights, unlike the original Codestral 22B) · API only | [1] |
| Released | 13 January 2025 | [3] |
| Parameters | Not publicly disclosed | [1] |
| Knowledge cutoff | Not disclosed | [1] |

## Sources

1. [Codestral 25.01 — Mistral Docs (model card)](https://docs.mistral.ai/models/codestral-25-01)
2. [Mistral pricing](https://mistral.ai/pricing)
3. [Mistral — Codestral 25.01 announcement](https://mistral.ai/news/codestral-2501/)

## Overview

Codestral 25.01 (API id codestral-2501) is a code-generation model that Mistral AI released on January 13, 2025 as an update to its original Codestral line. It is tuned for low-latency, high-frequency developer tasks such as code completion, fill-in-the-middle (FIM), code correction, and test generation across more than 80 programming languages, and it shipped to developers through IDE plugin partners (notably Continue for VS Code and JetBrains).

The headline change in Codestral 25.01 is a more efficient architecture and improved tokenizer that Mistral says generates and completes code about 2x faster than the first Codestral, paired with a much larger 256K-token context window (up from 32K). On launch it debuted at #1 on the Copilot Arena leaderboard (joint top alongside Claude 3.5 Sonnet and DeepSeek V2.5 FIM) and scored 86.6% on HumanEval for Python. It was benchmarked against Codestral 24.05 (22B), Code Llama 70B, DeepSeek Coder 33B / V2 Lite, and OpenAI's FIM API.

Unlike the original open-weight Codestral 22B (24.05), Codestral 25.01 was never released as downloadable weights — it was API-only, available via Mistral's la Plateforme (codestral-latest), Google Cloud Vertex AI, Azure AI Foundry, and Amazon Bedrock, with local/VPC deployment offered only for enterprise residency needs. Mistral has since deprecated it (November 6, 2025) and retired it (November 30, 2025), pointing users to the newer Codestral (25.08).

## Benchmarks

- HumanEval (Python, pass@1): 86.6% ([source](https://mistral.ai/news/codestral-2501/))
- MBPP: 80.2% ([source](https://mistral.ai/news/codestral-2501/))
- CruxEval: 55.5% ([source](https://mistral.ai/news/codestral-2501/))
- LiveCodeBench: 37.9% ([source](https://mistral.ai/news/codestral-2501/))
- RepoBench: 38% ([source](https://mistral.ai/news/codestral-2501/))
- Spider (text-to-SQL): 66.5% ([source](https://mistral.ai/news/codestral-2501/))
- CanItEdit: 50.5% ([source](https://mistral.ai/news/codestral-2501/))
- FIM pass@1 (average of Python, Java, JS): 95.3% ([source](https://mistral.ai/news/codestral-2501/))

## Pricing

- Input: $0.30 / 1M tokens per 1M tokens
- Output: $0.90 / 1M tokens per 1M tokens

Mistral API list price for the 'Codestral' endpoint (which codestral-2501 served under); the same rates carry on the current Codestral model. Mistral did not publish a separate price specific to the 25.01 build.

Source: https://mistral.ai/pricing

## Strengths

- Low-latency code completion and fill-in-the-middle (FIM), tuned for real-time IDE autocomplete
- About 2x faster code generation than the original Codestral, via a more efficient architecture and improved tokenizer
- Large 256K-token context window for reasoning over big files and multi-file repositories
- Broad coverage of 80+ programming languages, plus code correction and test generation
- Strong code benchmarks at launch — 86.6% HumanEval (Python) and a #1 debut on the Copilot Arena leaderboard

## Best for

- Real-time IDE code completion and fill-in-the-middle inside editors like VS Code and JetBrains (via the Continue plugin)
- Code generation, refactoring, and bug fixing across many programming languages
- Automated test generation and code correction
- On-prem or VPC coding assistants for enterprises with data- and model-residency requirements

## How to access

- [Mistral AI](https://docs.mistral.ai/models/codestral-25-01) — model id `codestral-2501`
- [OpenRouter](https://openrouter.ai/mistralai/codestral-2501) — model id `mistralai/codestral-2501`

## Codestral versions

- [Codestral (25.08)](https://ai-tldr.dev/models/codestral-2508/) (30 July 2025)
- Codestral 25.01 (13 January 2025) — this page
- [Codestral 22B (24.05)](https://ai-tldr.dev/models/codestral-2405/) (29 May 2024)

## FAQ

### What is Codestral 25.01?

Codestral 25.01 (API id codestral-2501) is a code-generation model Mistral AI released on January 13, 2025. It is tuned for low-latency tasks like code completion, fill-in-the-middle (FIM), code correction, and test generation across 80+ programming languages, with a more efficient architecture and improved tokenizer that generate code about 2x faster than the original Codestral, plus a 256K-token context window.

### Is Codestral 25.01 open weights?

No. Unlike the original open-weight Codestral 22B (24.05), Codestral 25.01 was never released as downloadable weights. It was API-only — available through Mistral's la Plateforme, Google Cloud Vertex AI, Azure AI Foundry, and Amazon Bedrock — with local/VPC deployment offered only to enterprises with data-residency needs.

### Is Codestral 25.01 still available?

No. Mistral deprecated codestral-2501 on November 6, 2025 and retired it on November 30, 2025, directing users to the newer Codestral model (25.08, codestral-2508). The codestral-latest alias now points to the current Codestral.

### How much did Codestral 25.01 cost?

It was billed under Mistral's Codestral endpoint at $0.30 per million input tokens and $0.90 per million output tokens — the same rates Mistral still lists for the current Codestral model. Mistral did not publish a separate price for the 25.01 build.

## Links

- [Mistral — Codestral 25.01 announcement](https://mistral.ai/news/codestral-2501/)
- [Codestral 25.01 — Mistral Docs (model card)](https://docs.mistral.ai/models/codestral-25-01)
- [Mistral models / legacy lifecycle — API docs](https://docs.mistral.ai/getting-started/models)
- [Mistral pricing](https://mistral.ai/pricing)
- [Codestral 2501 on OpenRouter](https://openrouter.ai/mistralai/codestral-2501)
- [Simon Willison — Codestral 25.01 (not open weights)](https://simonwillison.net/2025/Jan/13/codestral-2501/)
- [DataCamp — Mistral's Codestral 25.01: A Guide With VS Code Examples](https://www.datacamp.com/tutorial/codestral-25-01)

Source: AI/TLDR LLM registry, https://ai-tldr.dev/models/codestral-2501/
