Mistral AI logo

Mistral: Codestral 2508

mistralai/codestral-2508

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](https://mistral.ai/news/codestral-25-08)

Modalities

TextFiles / PDFText

In / out price

$0.3 / $0.9 per 1M

Context

256K

Released

Aug 1, 2025

Why use Codestral 2508

  • Reads PDFs and other files
  • Tool and function calling (agent-ready)
  • Structured (JSON) outputs

Pricing

Input$0.3 / 1M tokens
Output$0.9 / 1M tokens
Cached input (read)$0.030 / 1M tokens

List prices via OpenRouter, checked daily. Real cost depends on the provider and on reasoning tokens.

Cost calculator

Pick a task, set how often you run it, and compare what it costs on each model.

ModelPer runPer monthPer 1,000 runs
Mistral: Codestral 2508$0.0020$2.04$2.04

Estimates from list prices via OpenRouter; real bills vary by provider and reasoning tokens.

Will it fit? Context window simulator

Each square is about one page (500 words). Colored squares are your content; grey squares are free space in the model's context window.

Your content

  • Novel (90,000 words)

Total: about 120,000 tokens (≈ 90,226 words). Token counts are estimates.

Models

Mistral: Codestral 2508

256,000 tokens ≈ 385 pages

Fits: uses 47% of the window (room for 2× this much).

Write with the best model for the job

WordGPT picks and switches models for you: drafting, editing and files in one place. Free plan, no credit card.

Try it free

More from Mistral AI