Home / mistralai / Mistral: Codestral 2508

Mistral: Codestral 2508 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
Input / 1M
$0.300
Output / 1M
$0.900
Cache Read / 1M
$0.030
Blended 3:1 / 1M
$0.450
Agent Cached / 1M
$0.247
Context Window
256K

Monthly Workload Cost Calculator

Daily
$0.938
Monthly
$28.13
Cache Saved
$30.38
Annual
$342.19

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

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 API cost per 1M tokens?

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

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

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

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

Mistral: Codestral 2508 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"
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 →