Skip to main content
⚖️ BalancedVery Cheap

Codestral

by Mistral AI

Specialized code generation and completion model

Try Mistral AI

Input Price

$0.3

per 1M tokens

Output Price

$0.9

per 1M tokens

Context Window

128K

tokens (32.768K max output)

Specifications

Release Date2025-07-30
Category⚖️ Balanced
Context Window128,000 tokens
Max Output32,768 tokens
ProviderMistral AI
Input Cost$0.3 / 1M tokens
Output Cost$0.9 / 1M tokens
Price TierVery Cheap

Capabilities

textcode

Related Use Cases

Monthly Cost Estimates

Usage LevelDaily TokensDailyMonthlyYearly
Light~50 requests/day100K in / 20K out$0.05$1.44$18
Medium~200 requests/day500K in / 100K out$0.24$7.20$88
Heavy~1K requests/day2,000K in / 500K out$1.05$31.50$383
Enterprise~5K requests/day10,000K in / 2,000K out$4.80$144.00$1752

Cost Calculator

Alternatives to Codestral

Frequently Asked Questions

How much does Codestral API cost per million tokens?
Codestral costs $0.3 per million input tokens and $0.9 per million output tokens as of 2026. These are the standard API rates from Mistral AI.
What is the Codestral context window?
Codestral supports a 128K context window (128,000 tokens), which means you can process up to 128K tokens in a single API call.
How much does Codestral cost per month?
At medium usage (~200 requests/day with 500K input and 100K output tokens/day), Codestral costs approximately $7.20/month. Light usage runs about $1.44/month, and heavy usage (~1K requests/day) around $31.50/month.
Is there a cheaper alternative to Codestral?
Yes — Llama 4 Maverick by Meta (via Together AI) is a cheaper option at $0.27/M input tokens vs $0.3/M for Codestral. Other budget alternatives include models in the efficient tier.
Is Codestral good for ai chatbot?
Codestral is a balanced model with support for text, code. For ai chatbot, it offers 128K context and costs $0.3/M input tokens — a budget-friendly choice for this use case.

Codestral Comparisons

Ready to use Codestral?

Get started with Mistral AI's API — free tier available for most models.

Try Mistral AI API →