Mistral: Codestral 2508✓ Catalog verified
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
Overview
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
Access: available through the official Mistral AI API. Context window: 256K.
Specifications
| API identifier | mistralai/codestral-2508 |
| Provider | Mistral AI |
| Model type | Text LLM |
| Context window | 256K catalog |
| Input modalities | text |
| Output modalities | text |
| Released | Aug 1, 2025 |
| Tokenizer | Mistral |
| Moderated | No |
| Architecture modality | text->text |
API defaults
{
"temperature": 0.3
}Pricing
Live pricing components for mistralai/codestral-2508 as published in the catalog.
| Pricing component | Raw unit price | Normalized | Unit |
|---|---|---|---|
| Prompt tokens | $3e-7 | $0.30 / 1M | Per input token |
| Completion tokens | $9e-7 | $0.90 / 1M | Per output token |
| Request fee | N/A | N/A | Per request |
| Image fee | N/A | N/A | Per image unit |
| Web search fee | N/A | N/A | Per search request |
Cost calculator
Estimate monthly spend from your own token volumes.
Estimated Total Cost
$0.33Calculated from current list pricing in the ModelsAtlas catalog.Capabilities
| Capability | Status | What it means |
|---|---|---|
| Visual Understanding | Not advertised | Image and document analysis support |
| Audio Processing | Not advertised | Speech and voice aligned flows |
| Tool Calling | ✓ Supported | Supports tools / function calling |
| Self-Hosting | ✓ Supported | Deploy outside managed APIs |
Capability signals
Directional signals derived from model metadata and capability tags — not official benchmark submissions.
Quick start
Call Mistral: Codestral 2508 through an OpenAI-compatible client.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="mistralai/codestral-2508",
messages=[{"role": "user", "content": "Explain quantum physics."}]
)
print(response.choices[0].message.content)Alternatives
Closest models by context window from a different provider.
| Model | Provider | Context | Input /1M | Actions |
|---|---|---|---|---|
| AI21: Jamba Large 1.7 | AI21 | 256K | $2.00 | View → |
| Cohere: Command A | Cohere | 256K | $2.50 | View → |
Sources & attribution
Pricing and metadata are maintained in the ModelsAtlas catalog.
Frequently asked questions
How much does Mistral: Codestral 2508 cost?
$0.30 per 1M input tokens and $0.90 per 1M output tokens on the official Mistral AI API.
What is the context window of Mistral: Codestral 2508?
Mistral: Codestral 2508 supports up to 256K tokens of context.
Does Mistral: Codestral 2508 support tool / function calling?
Yes, Mistral: Codestral 2508 supports tool / function calling — you can register tools and the model will emit structured tool calls.
How do I access Mistral: Codestral 2508?
Use the official Mistral AI API with the model id `mistralai/codestral-2508`. See the Quick start section above for code examples.