Mistral AI · small open-weight · Released 2025-03-16

Codestral 7B: pricing, context window and benchmarks

Codestral 7B is a small open-weight model from Mistral AI. It offers a 32,768-token context window, costs $1.05 per million input tokens and $5.23 per million output tokens, and averages 57.0 across the index's benchmark suite.

open weightssmall
Input price
$1.05
per 1M tokens
Output price
$5.23
per 1M tokens
Context
32,768
tokens
Avg score
57.0
rank #487 of 600
Arena Elo
1243.9
modelled
Max output
8,192
tokens

Pricing

Codestral 7B costs $1.05 per million input tokens and $5.23 per million output tokens. A blended 3:1 input-to-output mix works out to about $2.10 per million tokens. Cached input is listed at $0.12 per million tokens.

ItemPriceNotes
Input$1.05per 1M tokens
Output$5.23per 1M tokens
Cached input$0.12per 1M tokens
Blended 3:1$2.10estimate per 1M tokens
1M in + 1M out$6.28estimate

Benchmarks

Scores below are modelled estimates on a 0–100 scale. Use them to compare relative position, not as official vendor results.

BenchmarkScoreRankPercentileRelative
MMLU-Pro 60.2 526 12th
GPQA Diamond 54.0 480 20th
SWE-bench Verified 44.0 478 20th
HumanEval 62.3 465 23th
MATH-500 57.0 497 17th
AIME 2025 42.8 525 13th
LiveCodeBench 48.0 465 23th
IFEval 69.0 473 21th
TruthfulQA 61.0 519 14th
HellaSwag 73.9 457 24th
MMMU 55.1 495 18th
Arena Elo 1243.9 500 17th

What Codestral 7B is good for

Codestral 7B is a small model. That makes it a good fit for classification, extraction, routing, summarization and other high-volume jobs where latency and cost dominate. It is not the right pick for open-ended frontier reasoning, but at $1.05 per million input tokens it can handle a large share of production traffic.

Strengths

  • Input price of $1.05 per million tokens is at or below the index median.
  • Open weights make self-hosting, fine-tuning and data-residency review possible.

Trade-offs

  • Average benchmark score is below the index median; test it on your own task.
  • Less reliable on open-ended reasoning and complex multi-step instructions.

How it compares

ModelProviderContextInput / 1MAvg score
Auto Nano OpenRouter 4096 $2.83 57.1
Seed-OSS 8B ByteDance 8192 $1.05 57.1
Codestral 7B Mistral AI 32768 $1.05 57.0
Llama 3 Baseten 8B Baseten 4096 $1.02 57.0
Llama 3 Replicate 8B Replicate 32768 $1.00 57.0
DeepSeek-V3.2 1.5B DeepSeek 4096 $1.02 56.9

Browse all comparisons →

FAQ

How much does Codestral 7B cost?

Codestral 7B is listed at $1.05 per million input tokens and $5.23 per million output tokens. Cached input is $0.12 per million tokens. A blended 3:1 input-to-output mix is about $2.10 per million tokens.

What is the context window of Codestral 7B?

Codestral 7B has a context window of 32,768 tokens and can emit up to 8,192 output tokens per request in this index.

Is Codestral 7B open weights?

Yes. Codestral 7B is listed as an open-weight model under a open weights licence.

How does Codestral 7B score on benchmarks?

Codestral 7B averages 57.0 across the scored benchmarks in this index, ranking #487 of 600 models. Its strongest relative result is Arena Elo at 1243.9.

What is Codestral 7B best for?

Codestral 7B is a small model. That makes it a good fit for classification, extraction, routing, summarization and other high-volume jobs where latency and cost dominate. It is not the right pick for open-ended frontier reasoning, but at $1.05 per million input tokens it can handle a large share of production traffic.

Related