Codestral 2508
Codestral 2508 is a large language model made by Mistral, added to the catalog on 1 Aug 2025. It has a context window of 256,000 tokens and costs $0.30 per 1M input tokens and $0.90 per 1M output tokens. It accepts text and files and produces text. Typical uses: improve code accuracy with correction features, generate tests for robust software development and fill in code gaps efficiently with FIM tasks.
Price checked · source: OpenRouter
What Codestral 2508 is
Released in August 2025 by Mistral, the Codestral 2508 is designed for developers who need efficient solutions for coding tasks. With a substantial context window of 256,000 tokens, this model handles text-based inputs and outputs, making it ideal for complex code correction, fill-in-the-middle tasks, and test generation. It supports a variety of parameters like frequency penalty, max tokens, and temperature, allowing for fine-tuned control over the output. Whether you're generating structured outputs or selecting specific tools, Codestral 2508 offers a robust platform for high-frequency coding tasks.
Key features
- Specializes in fill-in-the-middle tasks
- Supports code correction and test generation
- 256,000 token context window
- Customizable with various parameters
- Handles text inputs and outputs
Typical uses
- Improve code accuracy with correction features
- Generate tests for robust software development
- Fill in code gaps efficiently with FIM tasks
- Optimize coding workflows with structured outputs
Codestral 2508 pricing
US dollars, list price through OpenRouter.
| Item | Standard |
|---|---|
| Input, per 1M tokens | $0.30 |
| Output, per 1M tokens | $0.90 |
| Cached input read, per 1M tokens | $0.03 |
No price change since it was added on 1 Aug 2025.
| What a task costs | Cost |
|---|---|
| Answer a short question500 in / 300 out | $0.0004 |
| Summarise a 50-page PDF25,000 in / 800 out | $0.0082 |
| Review a 2,000-line source file30,000 in / 2,000 out | $0.011 |
| Read a 300-page contract set150,000 in / 1,500 out | $0.046 |
Codestral 2508 specifications
| Model id | mistralai/codestral-2508 |
|---|---|
| Version | codestral-2508 |
| Context window | 256,000 tokensAbout 192,000 English words |
| Max output | 204,800 tokens |
| Knowledge cutoff | 2025-03-31 |
| Added to catalog | 1 Aug 2025 |
| Input types | text, file |
|---|---|
| Output types | text |
| Tool calling | Yes |
| Structured outputs | Yes |
| Reasoning effort control | No |
| Content moderation | Not applied by provider |
Sample outputs
The same prompts are given to every model, and the unedited output is shown with the date it was produced. Upend does not publish leaderboard scores it did not run.
Write a short essay
RUN20 Nov 2026Write 150 words on how AI might positively upend work, leisure and creativity
Artificial Intelligence (AI) is poised to revolutionize work, leisure, and creativity in profound ways. In the workplace, AI can automate repetitive tasks, freeing humans for more strategic roles, while enhancing productivity through data-driven insights. Creative fields like writing, design, and music may see AI as a collaborator, generating ideas and refining outputs, though it also raises ethical concerns about originality. For leisure, AI-powered personal assistants can curate experiences, from travel planning to entertainment, tailoring recommendations to individual preferences. Virtual reality and AI-driven simulations could redefine gaming and social interaction, offering immersive, personalized experiences. However, the biggest challenge lies in ensuring equitable access and addressing job displacement. By fostering lifelong learning and ethical AI development, society can harness AI’s potential to enrich human potential while maintaining balance between innovation and human-centric values. The future of AI is not just about efficiency but about reimagining how we live, work, and create.