Skip to content
Mistral

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.

Checked
Codestral 2508 price list
ItemStandard
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 typical tasks cost with Codestral 2508
What a task costsCost
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
Check the provider's pageToken counts are estimates. A maker's direct price and its monthly plans can differ from the per-token price shown here.

Codestral 2508 specifications

Codestral 2508 limits and identity
Model idmistralai/codestral-2508
Versioncodestral-2508
Context window256,000 tokensAbout 192,000 English words
Max output204,800 tokens
Knowledge cutoff2025-03-31
Added to catalog1 Aug 2025
Codestral 2508 capabilities
Input typestext, file
Output typestext
Tool callingYes
Structured outputsYes
Reasoning effort controlNo
Content moderationNot 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 2026
Prompt

Write 150 words on how AI might positively upend work, leisure and creativity

Output

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.

Codestral 2508 questions

How much does Codestral 2508 cost?

Codestral 2508 costs $0.30 per 1M input tokens and $0.90 per 1M output tokens through OpenRouter, as checked on 22 Nov 2026. Summarising a 50-page PDF costs about $0.0082.

What is the context window of Codestral 2508?

256,000 tokens, or roughly 192,000 English words. It can write up to 204,800 tokens in one response.

Can Codestral 2508 read images and PDFs?

It accepts text and files as input. It produces text, so it cannot generate images.

How do I try Codestral 2508?

Use the "Try Codestral 2508" button on this page. It opens the chat with Codestral 2508 selected; you type the question and press send.

Try Codestral 2508 on your own question.

It opens in the chat with this model already selected.

Sign in to Upend

Use an account you already have, or get a one-time code by email.

Use a password instead

For accounts that already have a password. Forgotten it? An emailed code signs you in just the same.