Context
256K
Max output
128K
Serving providers
2
Cheapest input
$0.20 /1M
Prices are on-demand list rates. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower.

Pricing by serving provider

standard tier · per 1M tokens · click a provider to expand

Input pricing runs from $0.20 to $0.30 per 1M tokens across 2 providers, so the dearest route costs 50% more than the cheapest for the same model.

Serving providerInput /1MOutput /1MEndpoints
Vertex AI Mistral ModelsCheapest$0.20$0.601
ComponentUnitStandardBatchCached
Text input/1M tok$0.2000
Text output/1M tok$0.6000
Vercel AI Gateway$0.30$0.901

Price history

input + output $/1M since we started tracking
Input Output
Input down 80% since first tracked
$0.000$1.00$2.00$3.00Aug 1Dec 28Jul 30Jun 22$0.600$0.200

Cost calculator

estimate your monthly spend on this model
$88
estimated / month

Model IDs

copy the exact identifier for your platform
vertex_ai/codestral@latestvercel_ai_gateway/mistral/codestral

Frequently asked questions

Codestral pricing, context and availability

How much does Codestral cost?

Codestral costs $0.20 per 1M input tokens and $0.60 per 1M output tokens at its cheapest provider via Vertex AI Mistral Models. Across 2 serving providers, input prices range from $0.20 to $0.30 per 1M tokens.

What is the context window of Codestral?

Codestral accepts up to 256K tokens of context and can return up to 128K output tokens.

Which providers serve Codestral?

Codestral is available from 2 serving providers, each with its own pricing and model ID. Vertex AI Mistral Models is currently the cheapest.

What can Codestral do?

Codestral supports tool use.

Other Mistral models

compare pricing across the Mistral lineup
Pricing verified against LiteLLM + OpenRouter + provider pages · refreshed daily

Every weekday

AI moves fast. Here's your debrief.

News, analysis, tools, and more.

For people who build with AI