Mistral AI · small open-weight · Released 2024-12-18

Codestral 8B: pricing, context window and benchmarks

Codestral 8B is a small open-weight model from Mistral AI. It offers a 4,096-token context window, costs $1.18 per million input tokens and $5.35 per million output tokens, and averages 59.0 across the index's benchmark suite.

open weightssmall
Input price
$1.18
per 1M tokens
Output price
$5.35
per 1M tokens
Context
4,096
tokens
Avg score
59.0
rank #465 of 600
Arena Elo
1253.3
modelled
Max output
4,096
tokens

Pricing

Codestral 8B costs $1.18 per million input tokens and $5.35 per million output tokens. A blended 3:1 input-to-output mix works out to about $2.22 per million tokens. Cached input is listed at $0.12 per million tokens.

ItemPriceNotes
Input$1.18per 1M tokens
Output$5.35per 1M tokens
Cached input$0.12per 1M tokens
Blended 3:1$2.22estimate per 1M tokens
1M in + 1M out$6.53estimate

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 65.7 441 27th
GPQA Diamond 53.3 488 19th
SWE-bench Verified 46.1 451 25th
HumanEval 62.8 459 24th
MATH-500 57.9 492 18th
AIME 2025 49.9 461 23th
LiveCodeBench 49.5 453 25th
IFEval 70.4 451 25th
TruthfulQA 65.4 455 24th
HellaSwag 72.0 495 18th
MMMU 55.6 491 18th
Arena Elo 1253.3 486 19th

What Codestral 8B is good for

Codestral 8B 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.18 per million input tokens it can handle a large share of production traffic.

Strengths

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

Trade-offs

  • Context window of 4,096 tokens is small for long-document work.
  • 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
Yi-Lightning 8B 01.AI 4096 $1.16 59.2
Pythia Chat EleutherAI 4096 $1.31 59.1
Codestral 8B Mistral AI 4096 $1.18 59.0
Magistral 7B Mistral AI 32768 $1.22 58.9
Llama 3.1 Turbo 8B Together AI 32768 $1.16 58.8
Llama 3.1 8B Meta AI 8192 $1.15 58.7

Browse all comparisons →

FAQ

How much does Codestral 8B cost?

Codestral 8B is listed at $1.18 per million input tokens and $5.35 per million output tokens. Cached input is $0.12 per million tokens. A blended 3:1 input-to-output mix is about $2.22 per million tokens.

What is the context window of Codestral 8B?

Codestral 8B has a context window of 4,096 tokens and can emit up to 4,096 output tokens per request in this index.

Is Codestral 8B open weights?

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

How does Codestral 8B score on benchmarks?

Codestral 8B averages 59.0 across the scored benchmarks in this index, ranking #465 of 600 models. Its strongest relative result is Arena Elo at 1253.3.

What is Codestral 8B best for?

Codestral 8B 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.18 per million input tokens it can handle a large share of production traffic.

Related