Codestral 2508 vs Llama 3.1 8B Instruct
Side-by-side pricing tables, surcharge math, capability benchmarks, and 30-day spend estimators across 411 live models and cloud GPU matchups.
$0.05 vs $0.30 / 1M
$0.08 vs $0.90 / 1M
—
256K vs 131K tokens
Capability Benchmarks & Third-Party Evaluations
Compare Artificial Analysis intelligence and engineering indexes, core capability matrices, and standardized external leaderboards.
| Metric | Codestral 2508 | Llama 3.1 8B Instruct |
|---|---|---|
| Reasoning | — | — |
| Input Modalities | text, file | text |
| Tools & JSON | Tools | Tools |
| Prompt Caching | $0.03/1M | $0.025/1M |
| Open-Weight | Open | 8B |
Compare independent Intelligence Index, Engineering/Coding scores, tokens/sec throughput, and TTFT latency for Codestral 2508 and Llama 3.1 8B Instruct.
Blind pairwise human preference Elo ratings across Overall, Coding, Hard Prompts, and Instruction Following.
Measures autonomous GitHub repository issue resolution rates in sandboxed software engineering evaluations.
Monthly refreshed objective tests spanning Math, Coding, Reasoning, Data Analysis, and Language.
Evaluates practical diff editing pass rates and API cost per benchmark run across Python, C++, Go, Java, JS, and Rust.
Side-by-side specification matrix
USD ·| Metric | Compare | ||
|---|---|---|---|
| Input / 1M | $0.30 | $0.05 | Llama 3.1 8B Instruct -83% |
| Output / 1M | $0.90 | $0.08 | Llama 3.1 8B Instruct -91% |
| 5m Cache Write / 1M | $0.30 | $0.05 | Llama 3.1 8B Instruct -83% |
| 1h Cache Write / 1M | — | — | — |
| Cache Read | $0.03 | $0.025 | Llama 3.1 8B Instruct -17% |
| Web Search / Call | — | — | — |
| Context | 256K (256,000) | 131K (131,072) | Codestral 2508 2× |
| Max Output | 205K (204,800) | 118K (117,964) | Codestral 2508 1.7× |
| AA Intelligence(Artificial Analysis) | — | — | — |
| AA Engineering | — | — | — |
| Capabilities | text, file | text | Codestral 2508 |
| Reasoning | Not listed | Not listed | Equal |
| Structured Outputs(JSON Schema) | Not listed | Not listed | Equal |
| Open-Weight | Open-Weight | Open-Weight · 8B | Equal |
30-day production cost estimator
Adjust daily volume, prompt length, and cache hit rate to model 30-day API spend.
Frequently Asked Questions
Is Codestral 2508 or Llama 3.1 8B Instruct cheaper per API token?
Llama 3.1 8B Instruct is 83% cheaper on input tokens ($0.05 vs $0.30 per 1M). For output tokens, Llama 3.1 8B Instruct costs 91% less ($0.08 vs $0.90 per 1M).
How do Codestral 2508 and Llama 3.1 8B Instruct prompt caching discounts compare?
Llama 3.1 8B Instruct offers 17% cheaper cache reads at $0.025/1M compared to $0.03/1M for Codestral 2508. Codestral 2508 5m write: $0.30/1M; Llama 3.1 8B Instruct 5m write: $0.05/1M.
Which model has a larger context window: Codestral 2508 or Llama 3.1 8B Instruct?
Codestral 2508 provides a 2× larger context window (256K vs 131K tokens). For single-turn output generation, Codestral 2508 caps at 205K tokens and Llama 3.1 8B Instruct caps at 118K tokens.
How do Codestral 2508 and Llama 3.1 8B Instruct compare on benchmarks and capabilities?
Compare Codestral 2508 (Mistral) and Llama 3.1 8B Instruct (Meta) across tool calling (yes vs yes) and reasoning support above.
Related Head-to-Head Matchups
ComparisonsCodestral 2508 vs Gemini 3.5 Flash Lite
In: $0.30 vs $0.30 · Out: $0.90 vs $2.50
Codestral 2508 vs DeepSeek Flash
In: $0.30 vs $0.30 · Out: $0.90 vs $1.20
Codestral 2508 vs Gemini 2.5 Flash
In: $0.30 vs $0.30 · Out: $0.90 vs $2.50
Codestral 2508 vs Gemini Exp 1206
In: $0.30 vs $0.30 · Out: $0.90 vs $2.50
Llama 3.1 8B Instruct vs Llama 4 Maverick
In: $0.05 vs $0.35 · Out: $0.08 vs $1.00
Llama 3.1 8B Instruct vs Llama 4 Scout
In: $0.05 vs $0.10 · Out: $0.08 vs $0.30