Mistralai/operational
Mistral: 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)
256K
Context window
tokens
205K
Max output
tokens per reply
38ms
Time to first token
p50, EU region
$0.90
Output price
per 1M tokens
Fit
Where this model earns its place
code
Code generation and refactoring across large repositories, including multi-file changes.
function calling
Tool use and structured output — dependable JSON for agent loops, RAG pipelines, and workflow automation.
Data handling
Requests are processed in the EU. Prompts are not used for training, and logs follow the retention period in your contract — zero-retention is available on request.
Specifications
Model
- Model ID
- mistralai/codestral-2508
- Provider
- Mistralai
- Context length
- 256K
- Max output
- 205K
- Modality
- text
- Licence
- Open Weight
Commercial
- Input
- $0.30
- Output
- $0.90
- Cached input
- $0.03
- Deployment
- serverless
- Availability
- operational
- Last updated
- 2026-10-26
Cost
What a month actually costs
| Workload | Input tokens | Output tokens | Monthly cost |
|---|---|---|---|
| Prototype | 1.0M | 250K | $0.53 |
| Production | 50.0M | 12.0M | $25.80 |
| At scale | 500.0M | 120.0M | $258.00 |
Illustrative volumes at list price, excluding cached-input discounts and any committed-use agreement. Your invoice shows the same rates, itemised per key.
Cheaper by caching
API
Same SDK, different base URL
cURL
curl https://api.itciphtech.com/v1/chat/completions \
-H "Authorization: Bearer $CIPHER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mistralai/codestral-2508",
"messages": [{"role": "user", "content": "Hello!"}]
}'TypeScript
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.itciphtech.com/v1",
apiKey: process.env.CIPHER_API_KEY,
});
const res = await client.chat.completions.create({
model: "mistralai/codestral-2508",
messages: [{ role: "user", content: "Hello!" }],
});Alternatives
Close substitutes in the catalog
Mistral Large 2407
Mistralai
Context
131K
In / out
$2.00 / $6.00
TTFB
47ms
Mistral: Mistral Large 3 2512
Mistralai
Context
262K
In / out
$0.50 / $1.50
TTFB
92ms
Mistral: Mistral Medium 3.1
Mistralai
Context
131K
In / out
$0.40 / $2.00
TTFB
50ms
Mistral: Mistral Small 4
Mistralai
Context
262K
In / out
$0.15 / $0.60
TTFB
70ms
Need this model on dedicated hardware?
Run it single-tenant, inside your own network boundary, with the operations handled by us.