Home › Providers › mistralai › Mistral: Codestral 2508 (batch)

Mistral: Codestral 2508 (batch) API Pricing

Mistral: Codestral 2508 (batch) is an API model from mistralai. It costs $0.15 per 1M input tokens and $0.45 per 1M output tokens, with cached input at $0.015. Its context window is 256,000 tokens with up to 204,800 output tokens. A workload of 10M input + 2M output tokens costs about $2.4 per month.
Input
$0.15
per 1M tokens
Output
$0.45
per 1M tokens
Cached input
$0.015
per 1M tokens
Context window
256K
256,000 tokens
Blended (80/20)
$0.21
per 1M tokens

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)

How much does Mistral: Codestral 2508 (batch) cost for a real workload?

At 10M input + 2M output tokens per month, Mistral: Codestral 2508 (batch) costs about $2.4 ($1.5 input + $0.9 output). Try your own volumes in the cost calculator.

What are cheaper alternatives to Mistral: Codestral 2508 (batch)?

Compare Mistral: Codestral 2508 (batch) with other models

Mistral: Codestral 2508 (batch) vs Mistral: Mistral NemoMistral: Codestral 2508 (batch) vs Mistral: Mistral Small 3Mistral: Codestral 2508 (batch) vs Mistral: Ministral 3 8B 2512 (batch)Mistral: Codestral 2508 (batch) vs Mistral: Ministral 3 3B 2512Mistral: Codestral 2508 (batch) vs Mistral: Ministral 3 8B 2512Mistral: Codestral 2508 (batch) vs Mistral: Mistral Small 3.2 24B

Frequently asked questions

How much does Mistral: Codestral 2508 (batch) cost?

Mistral: Codestral 2508 (batch) costs $0.15 per 1M input tokens and $0.45 per 1M output tokens (list price, snapshot October 21, 2026). At 10M input + 2M output tokens per month that is about $2.4.

What is the context window of Mistral: Codestral 2508 (batch)?

Mistral: Codestral 2508 (batch) has a context window of 256,000 tokens and can return up to 204,800 output tokens per response.

What are cheaper alternatives to Mistral: Codestral 2508 (batch)?

Cheaper models include PrismML: Ternary Bonsai 2 27B ($0.075 in / $0.5 out), NVIDIA: Nemotron 3 Super ($0.08 in / $0.45 out), ByteDance Seed: Seed-2.0-Mini ($0.1 in / $0.4 out). See the full list on this page.

Is Mistral: Codestral 2508 (batch) free to use?

No. Mistral: Codestral 2508 (batch) is a paid model at $0.15 input / $0.45 output per 1M tokens. 20 free models are listed on the free models page.

Provider: mistralai · Model ID: mistralai/codestral-2508:batch · Modality: text+file->text · Price snapshot October 21, 2026, refreshed daily. How we collect prices