Meta AI · small open-weight · Released 2025-06-24

Llama 3.1 8B: pricing, context window and benchmarks

Llama 3.1 8B is a small open-weight model from Meta AI. It offers a 8,192-token context window, costs $1.15 per million input tokens and $4.48 per million output tokens, and averages 58.7 across the index's benchmark suite.

open weightssmall
Input price
$1.15
per 1M tokens
Output price
$4.48
per 1M tokens
Context
8,192
tokens
Avg score
58.7
rank #470 of 600
Arena Elo
1277.1
modelled
Max output
8,192
tokens

Pricing

Llama 3.1 8B costs $1.15 per million input tokens and $4.48 per million output tokens. A blended 3:1 input-to-output mix works out to about $1.98 per million tokens. Cached input is listed at $0.16 per million tokens.

ItemPriceNotes
Input$1.15per 1M tokens
Output$4.48per 1M tokens
Cached input$0.16per 1M tokens
Blended 3:1$1.98estimate per 1M tokens
1M in + 1M out$5.63estimate

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.5 445 26th
GPQA Diamond 51.2 508 15th
SWE-bench Verified 45.6 457 24th
HumanEval 64.3 449 25th
MATH-500 57.9 493 18th
AIME 2025 50.0 459 24th
LiveCodeBench 48.7 458 24th
IFEval 68.3 486 19th
TruthfulQA 62.3 498 17th
HellaSwag 72.4 488 19th
MMMU 59.4 434 28th
Arena Elo 1277.1 450 25th

What Llama 3.1 8B is good for

Llama 3.1 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.15 per million input tokens it can handle a large share of production traffic.

Strengths

  • Input price of $1.15 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 8,192 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
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
DeepSeek-Coder 8B DeepSeek 32768 $1.26 58.7
Hunyuan-Large 8B Tencent 4096 $1.29 58.7
Llama 3.1 8B Meta AI 8192 $1.15 58.7

Browse all comparisons →

FAQ

How much does Llama 3.1 8B cost?

Llama 3.1 8B is listed at $1.15 per million input tokens and $4.48 per million output tokens. Cached input is $0.16 per million tokens. A blended 3:1 input-to-output mix is about $1.98 per million tokens.

What is the context window of Llama 3.1 8B?

Llama 3.1 8B has a context window of 8,192 tokens and can emit up to 8,192 output tokens per request in this index.

Is Llama 3.1 8B open weights?

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

How does Llama 3.1 8B score on benchmarks?

Llama 3.1 8B averages 58.7 across the scored benchmarks in this index, ranking #470 of 600 models. Its strongest relative result is Arena Elo at 1277.1.

What is Llama 3.1 8B best for?

Llama 3.1 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.15 per million input tokens it can handle a large share of production traffic.

Related