mistralai logo
mistralai

Mistral: Codestral 2508 (batch)

Mistral's cutting-edge language model for coding released end of July 2025. $0.30 per million input tokens, $0.90 per million output tokens. 256,000 token context window, maximum output of 256,000 tokens. Includes independent benchmarks from Artificial Analysis.

Overview

Model specifications

Context
256,000 tokens
Maximum output
204,800 tokens
Architecture
text+file->text
Tokenizer
Mistral
Knowledge cutoff
2025-03-31
Moderated
No
OPENROUTER

Complete pricing

Synchronized OpenRouter rates. Token prices are shown per one million tokens.

Input
$0.3
/M tokens
Output
$0.9
/M tokens
Cache read
$0.03
/M tokens
API

Model configuration

Default parameters

temperature
0.3
API

Quick start

Call this exact model ID through OpenRouter’s OpenAI-compatible API.

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"mistralai/codestral-2508:batch","messages":[{"role":"user","content":"Hello!"}]}'
Capabilities

InputOutput

Input
textfile
Output
text
API

Supported API parameters

frequency_penaltymax_tokenspredictionpresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_p
Available providers

2 providers

Live providers on OpenRouter

Provider availability, latency, throughput and routing can change continuously. Open the source page for current operational data.

OpenRouter

Mistral

unknown
Context
256K
Maximum output
205K
Input
$0.300
Output
$0.900
Cache read
$0.030
Cache write
Not provided

Mistral

unknown
Context
256K
Maximum output
205K
Input
$0.330
Output
$0.990
Cache read
$0.033
Cache write
Not provided
mistralai

models

All models