
Codestral: API pricing, context window and capabilities
Codestral costs $0.3 per 1M input tokens and $0.9 per 1M output tokens, with a 128K context window. Mid-priced: dearer than 27% of this rating, with Mistral Small 4 as the nearest cheaper Mistral AI option. Recorded for coding, free tier.
Codestral is an AI model from Mistral AI, priced at $0.3 input and $0.9 output per 1M tokens. That places it in the budget tier of this rating — cheaper than 72% of the 205 priced models listed.
It holds 128K tokens in a single conversation. Capabilities recorded in this rating: text & chat, coding, structured JSON output, prompt caching, batch API. Access is through the API rather than a consumer subscription.
Cost calculator
Assumes a 1:3 input-to-output ratio, which is typical for chat and generation. Dirham figures use 3.6725 per dollar. Batch and caching discounts apply where the vendor offers them.
Compared with alternatives
How Codestral sits against its neighbours in this rating. Tap a card to open that model.
Good and poor fit
- Writing, reviewing and refactoring code, including fill-in-the-middle edits.
- General text generation and conversation across languages.
- Anything requiring image input — this model does not accept it.
- Integrations that depend on structured function calls.
Related filters
Frequently asked questions
How much does Codestral cost?
What is the context window of Codestral?
What can Codestral do?
Is Codestral a good choice?
Frequently searched
Ratings 0
Avg. score 0
Rate this page
Help us improve