Skip to content
Not available in this workspace
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Collections
  • Providers
  • Pricing
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Support
  • Works With OR
  • Data

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube
Favicon for mistralai

Mistral: Codestral 2508

mistralai/codestral-2508

Compare

Mistral's cutting-edge language model for coding released end of July 2025. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation.

Blog Post(opens in new tab)

Modalities

In / Out Price

$0.30 / $0.90per 1M

Context

256K

Released

Aug 1, 2025

Knowledge Cutoff

Mar 2025

Compare

About Mistral: Codestral 2508

OpenRouter makes Mistral: Codestral 2508 by Mistral AI available through a unified, OpenAI-compatible API using the model ID mistralai/codestral-2508. It is served by Mistral.

Mistral: Codestral 2508 accepts text and files such as PDFs and returns text. It has a 256,000-token context window.

On OpenRouter, Mistral: Codestral 2508 costs $0.30/M input tokens and $0.90/M output tokens, with separate rates for Cache Read at $0.03/M tokens. Effective pricing can be lower when prompt caching applies. It was released on August 1, 2025; its knowledge cutoff is March 31, 2025.

More models from Mistral AI

  • Voxtral Small 24B 2507 STT
  • Voxtral Mini 3B 2507
  • Voxtral Mini Transcribe

Frequently asked questions

Mistral's cutting-edge language model for coding released end of July 2025. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation. Blog Post

Codestral 2508 costs $0.30/M input tokens and $0.90/M output tokens, with separate rates for Cache Read at $0.03/M tokens.

Codestral 2508 has a 256,000 token context window.

Yes. Codestral 2508 accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.

Codestral 2508 accepts text and files such as PDFs as input and returns text.

Mistral Medium 3.5, Mistral Small 4, Ministral 3 14B 2512 and 14 more are other text models from Mistral AI.

Codestral 2508 was released on August 1, 2025. Its knowledge cutoff is March 31, 2025.