Home / mistralai / Mistral: Codestral 2508 (batch)

Mistral: Codestral 2508 (batch) API Pricing & Cost Calculator

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)

Caching mistralai/codestral-2508:batch
Input / 1M
$0.150
Output / 1M
$0.450
Cache Read / 1M
$0.015
Blended 3:1 / 1M
$0.225
Agent Cached / 1M
$0.124
Context Window
256K

Monthly Workload Cost Calculator

Daily
$0.469
Monthly
$14.06
Cache Saved
$15.19
Annual
$171.09

Benchmarks & Capabilities

Intelligence Index—
Coding / Engineering— / —
Agentic Index—
Design Arena Avg ELO1002
Value Score—
Modalitytext+file->text
Max Output204.8K

5 Cheaper Alternatives to Mistral: Codestral 2508 (batch)

Alternative ModelBlended / 1MInput / 1MOutput / 1MIntelSide-by-Side
Anthropic: Claude Haiku 5.5 (batch)
anthropic/claude-haiku-5.5:batch
$0.100 $0.050 $0.250 37 Compare →
Anthropic: Claude Haiku 5.5
anthropic/claude-haiku-5.5
$0.200 $0.100 $0.500 37 Compare →
Meta: Muse Ember
meta/muse-ember
$0.200 $0.100 $0.500 36 Compare →
DeepSeek: DeepSeek V4.1 Flash 1017 (batch)
deepseek/deepseek-v4.1-flash-1017:batch
$0.064 $0.035 $0.149 32 Compare →
DeepSeek: DeepSeek V4.1 Flash 1017
deepseek/deepseek-v4.1-flash-1017
$0.065 $0.020 $0.200 32 Compare →

Frequently Asked Questions

How much does Mistral: Codestral 2508 (batch) API cost per 1M tokens?

Mistral: Codestral 2508 (batch) (mistralai/codestral-2508:batch) costs $0.150 per 1M input tokens and $0.450 per 1M output tokens (3:1 blended price: $0.225 per 1M tokens).

Does Mistral: Codestral 2508 (batch) support prompt caching and how much does it save?

Yes. Cached input reads cost $0.015 per 1M tokens, bringing realistic 80%-cached agent loop cost down to $0.124 per 1M tokens.

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

Mistral: Codestral 2508 (batch) supports a 256K token context window (256,000 tokens) and up to 204.8K output tokens per completion.

Fetch Live JSON via API

curl -s "https://llm.lhblabs.com/api/v1/models/mistralai-codestral-2508-batch"
Recommended Stack: DigitalOcean

Predictable Droplets, managed databases, and GPU nodes for production AI workloads.

Try DigitalOcean →
Self-Serve Placement Building an LLM API, GPU Cloud, or AI Dev Tool?
Feature your product across 1,500+ LLM pricing & comparison pages starting at $49/mo.
Book Sponsor Slot →