Codestral
Our cutting-edge language model for coding. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation.
Specs
- Context
- 131.1K
- Max output
- —
- Input price
- —
- Output price
- —
- Released
- 2025-01-13
Context
- Context window
- 131.1K
- Max input
- —
- Max output
- —
Pricing
- Not published
Modalities
- Input
- Text
- Output
- Text
API
- API types
Reasoning
- Not published
Info
- Status
- Retired
- Released
- 2025-01-13
- Knowledge cutoff
- —
Features
- Confirmed
How to call
1 provider
mistralmodel = codestral-2501
chat
POSThttps://api.mistral.ai/v1/chat/completions
batch
POSThttps://api.mistral.ai/v1/batch
JSON
Standard format
{
"id": "codestral-2501",
"object": "model",
"created": 1736726400,
"owned_by": "mistral",
"name": "Codestral",
"api": {
"types": [
"chat",
"batch"
]
},
"limits": {
"context": 131072,
"input": null,
"output": null
},
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
},
"reasoning": {
"supported": null,
"efforts": []
},
"pricing": null,
"features": [
"tools",
"structured_output",
"batch"
],
"info": {
"status": "retired",
"release_date": "2025-01-13",
"knowledge_cutoff": null,
"description": "Our cutting-edge language model for coding. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation.",
"docs": "https://docs.mistral.ai/models/codestral-25-01",
"verified_at": "2026-10-11"
}
}Official sources
3