# Codestral (latest) API pricing

The official API price of Codestral (latest) is $0.3 per 1M input tokens and $0.9 per 1M output tokens (as of 2026-11-12). Context window: 256K tokens, up to 4.1K output tokens per request. 4 providers sell it, none below the official price.

- Type: Text
- Context: 256K
- Max output: 4.1K
- Released: 2024-05-29
- Open weights: Yes

## Price by provider (USD per 1M tokens)

| Provider | Model id | Input | Output | Cached | Notes |
| --- | --- | --- | --- | --- | --- |
| [Mistral](https://docs.mistral.ai/getting-started/models/) | codestral-latest | $0.3 | $0.9 | $0.03 | Official |
| [Eden AI](https://docs.edenai.co) | mistral/codestral-latest | $0.3 | $0.9 | $0.03 |  |
| [Merge Gateway](https://docs.merge.dev/merge-gateway) | mistral/codestral-latest | $0.3 | $0.9 | — |  |
| [Vercel AI Gateway](https://github.com/vercel/ai/tree/5eb85cc45a259553501f535b8ac79a77d0e79223/packages/gateway) | mistral/codestral | $0.3 | $0.9 | $0.03 |  |
| [Eden AI](https://docs.edenai.co) | mistral/codestral-latest@eu | $0.33 | $0.99 | $0.033 |  |

Providers are those listed by models.dev. This site has not vetted them one by one; each provider's own page has the binding price.

Prices and specs come from models.dev (MIT licence), updated 2026-11-12. Each provider's name links to its official docs. A provider priced at 0 usually includes the model in a subscription; it is not necessarily a free API.

https://apibook.ai/models/mistral/codestral-latest/
