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
Capabilities
Modalities
Quick stats
Performance
Supported parameters
| Parameter | Always | Default |
|---|---|---|
| frequency_penalty | - | |
| max_tokens | - | |
| presence_penalty | - | |
| response_format | - | |
| seed | - | |
| stop | - | |
| structured_outputs | - | |
| temperature | 0.3 | |
| tool_choice | - | |
| tools | - | |
| top_p | - |
Pricing
| Input price | $0.00 · 1M tokens |
| Output price | $0.00 · 1M tokens |
| Context window | 256K tokens |
| Compatible endpoints | openai |
| Vendor | Mistral |
Call codestral-2508 from your code
Point any OpenAI-compatible SDK at UnoRouter and request the model by name. Replace YOUR_API_KEY with a real key from your dashboard.
curl https://api.unorouter.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "codestral-2508",
"messages": [{"role": "user", "content": "Hello!"}]
}'Frequently asked questions
How much does codestral-2508 cost per 1M tokens?
Input is priced at $0.00 per 1M tokens, output at $0.00 per 1M tokens. Billing is per token, no rounding to batch sizes.
How do I access codestral-2508 via API?
Send requests to the UnoRouter /v1/chat/completions endpoint with model=codestral-2508. Any OpenAI-compatible client library works. Authentication uses a standard Bearer token.
What is the context window of codestral-2508?
codestral-2508 supports a context window of 256K tokens, shared between your prompt and the model's response.