Meta AI · small open-weight · Released 2023-07-09

Llama 3.1 7B: pricing, context window and benchmarks

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

open weightssmall
Input price
$1.01
per 1M tokens
Output price
$3.79
per 1M tokens
Context
8,192
tokens
Avg score
57.4
rank #480 of 600
Arena Elo
1237.4
modelled
Max output
8,192
tokens

Pricing

Llama 3.1 7B costs $1.01 per million input tokens and $3.79 per million output tokens. A blended 3:1 input-to-output mix works out to about $1.71 per million tokens. Cached input is listed at $0.13 per million tokens.

ItemPriceNotes
Input$1.01per 1M tokens
Output$3.79per 1M tokens
Cached input$0.13per 1M tokens
Blended 3:1$1.71estimate per 1M tokens
1M in + 1M out$4.80estimate

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 64.8 456 24th
GPQA Diamond 54.4 474 21th
SWE-bench Verified 44.1 477 21th
HumanEval 60.4 498 17th
MATH-500 58.8 481 20th
AIME 2025 46.9 480 20th
LiveCodeBench 45.0 499 17th
IFEval 67.5 494 18th
TruthfulQA 63.8 473 21th
HellaSwag 71.1 518 14th
MMMU 54.5 503 16th
Arena Elo 1237.4 518 14th

What Llama 3.1 7B is good for

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

Strengths

  • Input price of $1.01 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
Llama 3 DeepInfra 8B DeepInfra 8192 $1.05 57.4
Llama 3.1 7B Meta AI 8192 $1.01 57.4
DeepSeek-Coder 7B DeepSeek 32768 $1.14 57.3
Llama 3 Anyscale 8B Anyscale 32768 $0.97 57.3
Llama 3 Lambda 8B Lambda 4096 $1.03 57.2
Mistral Small 3 8B Mistral AI 8192 $0.99 57.2

Browse all comparisons →

FAQ

How much does Llama 3.1 7B cost?

Llama 3.1 7B is listed at $1.01 per million input tokens and $3.79 per million output tokens. Cached input is $0.13 per million tokens. A blended 3:1 input-to-output mix is about $1.71 per million tokens.

What is the context window of Llama 3.1 7B?

Llama 3.1 7B 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 7B open weights?

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

How does Llama 3.1 7B score on benchmarks?

Llama 3.1 7B averages 57.4 across the scored benchmarks in this index, ranking #480 of 600 models. Its strongest relative result is Arena Elo at 1237.4.

What is Llama 3.1 7B best for?

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

Related