Skip to content

Mistral: Codestral 2508 (batch)

Mistral
mistralai/codestral-2508:batch

About this model

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)

Make a request

OpenAI-compatible: set the base URL and your Promptix API key, keep your existing SDK.

curl https://promptix.tn/api/v1/chat/completions \  -H "Authorization: Bearer $PROMPTIX_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "mistralai/codestral-2508:batch",    "messages": [      {"role": "user", "content": "Hello! What can you do?"}    ]  }'

Pricing

In TND per 1M tokens. VAT and the platform fee are added at top-up.

Input tokens

0.498 TND

per 1M tokens

Output tokens

1.495 TND

per 1M tokens

1,000 requests with 1K input and 500 output tokens cost about 1.246 TND.

Specifications

Provider
Mistral
Context window
256,000 tokens
Input modality
Text
Added
Aug 1, 2025
Supported parameters
frequency_penaltymax_tokenspredictionpresence_penaltyresponse_formatseedstopstructured_outputs