Mistral: CodestralWork with me

Mistral: Codestral

byMistral

Codestral is a language model from Mistral released on May 29, 2024. It reads text and writes text, with a 256K token context window and up to 4K tokens per reply.

Show more

It costs $0.30 per million input tokens and $0.90 per million output tokens. Cached input bills at $0.03, 90% less than fresh input.

It supports tool calling and prompt caching, and its weights are open, so you can host it yourself.

4 providers serve it, including Vercel AI Gateway, Eden AI and Merge Gateway.

Modalities
In / out price
$0.30 / $0.90 per 1M
Context
256K
Max output
4K
Released
May 29, 2024
Knowledge cutoff
Oct 2024
  • Tool calling
  • Structured output
  • Reasoning
  • Prompt caching
  • Open weights
  • Free to use

Codestral pricing

USD, as listed on Oct 15, 2026. Most bills are input heavy, so the cached input rate matters as much as the headline price.

Input$0.30 / 1M tokens
Output$0.90 / 1M tokens
Cached input (read)$0.03 / 1M tokens

Codestral providers

4 providers serve it, including Vercel AI Gateway, Eden AI and Merge Gateway. Each host sets its own price and limits, so the cheapest one is not always the one with the longest context.

ProviderInput /MOutput /MCache read /MContextMax output
Mistral First party$0.30$0.90$0.03256K4K
Vercel AI Gateway$0.30$0.90$0.03256K4K
Eden AI$0.30$0.90$0.03256K4K
Merge Gateway$0.30$0.90–256K4K

What Codestral costs per month

Pick a workload close to yours or type your own volumes.

Codestral per month
$19.80
Without caching
$31.95
Per request
$0.0007

Supported request parameters

What you can set when you call Codestral through an OpenAI compatible API.

  • Toolstools
  • Temperaturetemperature

Alternatives to Codestral

Models that take the same inputs and call tools, closest in price, cheaper ones first.

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 39 providers.

    by openaiJul 9, 2026$0.20/M input tokens$1.20/M output tokens39 providers

  • Reads text. Tool calling, structured output. Served by 10 providers.

    by mistralaiJul 30, 2025$0.30/M input tokens$0.90/M output tokens10 providers

  • Reads text and images. Tool calling, structured output. Served by 7 providers.

    by meta-llamaJan 15, 20251.05M context$0.25/M input tokens$1/M output tokens7 providers

  • Reads text. Tool calling, structured output, reasoning. Served by 6 providers.

    by inclusionaiSep 29, 2026$0.30/M input tokens$0.90/M output tokens6 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 5 providers.

    by openaiJul 9, 2026$0.20/M input tokens$1.20/M output tokens5 providers

  • Reads text, images and video. Tool calling, structured output, reasoning. Served by 13 providers.

    by z-aiDec 8, 2025$0.30/M input tokens$0.90/M output tokens13 providers

More from Mistral

  • Index 38.4

    Reads text and images. Tool calling, structured output, reasoning. Served by 8 providers.

    by mistralaiOct 6, 20261.05M context$0.68/M input tokens$2.09/M output tokens8 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 18 providers.

    by mistralaiApr 29, 2026262K context$1.50/M input tokens$7.50/M output tokens18 providers

  • Reads text and images. Tool calling, structured output, reasoning. Served by 5 providers.

    by mistralaiApr 29, 2026$1.50/M input tokens$7.50/M output tokens5 providers

  • Index 11.3

    Reads text and images. Tool calling, structured output, reasoning. Served by 15 providers.

    by mistralaiMar 16, 2026262K context$0.15/M input tokens$0.60/M output tokens15 providers

  • Reads text and images. Tool calling, structured output, reasoning. Served by 4 providers.

    by mistralaiMar 16, 2026$0.15/M input tokens$0.60/M output tokens4 providers

  • Turns text into spoken audio.

    by mistralaiMar 1, 2026

All Mistral models

Codestral questions

How much does the Codestral API cost?

$0.30 per million input tokens and $0.90 per million output tokens, with cached input at $0.03. The estimator on this page turns that into a monthly bill for your own workload.

What is the context window of Codestral?

256,000 tokens of input, and it can write up to 4,096 tokens in one reply. As a rough guide, a million tokens is around 750,000 English words.

Which providers serve Codestral?

4 providers serve it, including Vercel AI Gateway, Eden AI and Merge Gateway. Prices differ by host, so the Providers table on this page lists each one with its input and output price.

Does Codestral support tool calling?

Yes. It accepts tool definitions, which is what an agent needs to call your APIs.

Is Codestral open source?

Its weights are published, so you can run it on your own hardware or a cloud of your choice. Read the license before commercial use.

When was Codestral released?

May 29, 2024, with training data up to Oct 2024.

Catalog data from models.dev (MIT licensed), refreshed daily, last on Oct 15, 2026. The summary is written from these facts.

Building on Codestral?

I test your real tasks on it and the two closest alternatives, then ship the agent on whichever wins on cost and accuracy.

Book Meeting