# Codestral (latest) Usage, Cost & Rank | OpenCode Data

> Codestral (latest) costs $0.30 per 1M input tokens and $0.90 per 1M output tokens.

Mistral code model for completions, refactors, and developer IDE workflows

- Page: https://opencode.ai/data/mistral/codestral-latest
- JSON: https://opencode.ai/data/mistral/codestral-latest.json
- Model ID: mistral/codestral-latest
- Lab: Mistral

## Model facts

| Fact | Value |
| --- | --- |
| Context window | 256K |
| Max output | 4.1K |
| Knowledge cutoff | 2024-10 |
| Release date | 2024-05-29 |
| Input modalities | text |
| Output modalities | text |
| Reasoning | No |
| Tool calling | Yes |
| Open weights | Yes |
| Weights | [Hugging Face](https://huggingface.co/mistralai/Codestral-22B-v0.1) |

## Pricing: USD per 1M tokens

| Input | Output | Cached input | Cache write |
| --- | --- | --- | --- |
| $0.30 | $0.90 | - | - |

## Benchmarks

| Benchmark | Score | Metric | Source |
| --- | --- | --- | --- |
| Aider Polyglot | 11.1 | percent correct | https://aider.chat/docs/leaderboards/ |

## Methodology

- Updates: Aggregated every hour. Days and weeks use UTC.
- Tokens: Input, output, reasoning, and cached tokens for each request.
- Users and sessions: Approximate counts of distinct users and OpenCode sessions.
- Cost: Session cost is the average cost per OpenCode session. Token prices are list prices from the OpenCode model catalog.
- Retention: The share of a model's users in one week who use it again the next week.
- Citation: Cite OpenCode Data (opencode.ai/data) with the update time shown at the top of the page.
