Meta has launched a newer model, Llama 3 8B, we suggest considering this model instead.

For more information, see Comparison of Llama 3 8B to other models and API provider benchmarks for Llama 3 8B.

Llama 2 Chat 7B logo

Open weights model

Released July 2023

Llama 2 Chat 7B Intelligence, Performance & Price Analysis

Model summary

Intelligence

10

Artificial Analysis Intelligence Index

2 out of 4 units for Intelligence.

Speed

N/A

Output tokens per second

Unknown out of 4 units for Speed.

Input Price

$0.05

USD per 1M tokens

3 out of 4 units for Input Price.

Output Price

$0.25

USD per 1M tokens

3 out of 4 units for Output Price.

Verbosity

N/A

Output tokens from Intelligence Index

Unknown out of 4 units for Verbosity.

Llama 2 Chat 7B is below average in intelligence and somewhat expensive when comparing to other open weight non-reasoning models of similar size. The model has a 4k tokens context window with knowledge up to July 2023.

Llama 2 Chat 7B scores 10 on the Artificial Analysis Intelligence Index, placing it below average among comparable models (averaging 12).

Pricing for Llama 2 Chat 7B is $0.05 per 1M input tokens (somewhat expensive, average: $0.04) and $0.25 per 1M output tokens (somewhat expensive, average: $0.14).

ReasoningNo

This page shows the non-reasoning version of this model.

A reasoning variant may also exist.

Input modality

Supports:

This information is still being updated

Output modality

This information is still being updated

Knowledge cutoffJul 1, 2023
Context window4k
~6 A4 pages of size 12 Arial font
Total parameters7B
LicenseLlama 2 Community License Agreement
Model weightsHugging Face

Metrics are compared against models of the same class:

  • Non-reasoning models → compared only with other non-reasoning models
  • Reasoning models → compared across both reasoning and non-reasoning
  • Open weights models → compared only with other open weights models of the same size class:
    • Tiny: ≤4B parameters
    • Small: 4B40B parameters
    • Medium: 40B150B parameters
    • Large: >150B parameters
  • Proprietary models → compared across proprietary and open weights models of the same price range, using a blended 3:1 input/output price ratio:
    • <$0.15 per 1M tokens
    • $0.15$1 per 1M tokens
    • >$1 per 1M tokens

Highlights

Intelligence
Artificial Analysis Intelligence Index; Higher is better
Estimate (independent evaluation forthcoming)
Speed
Output Tokens per Second; Higher is better
Price
USD per 1M Tokens; Lower is better

Intelligence

Artificial Analysis Intelligence Index

Artificial Analysis Intelligence Index v4.0 incorporates 10 evaluations: GDPval-AA, 𝜏²-Bench Telecom, Terminal-Bench Hard, SciCode, AA-LCR, AA-Omniscience, IFBench, Humanity's Last Exam, GPQA Diamond, CritPt
Reasoning models are indicated by a lightbulb icon

Artificial Analysis Intelligence Index v4.0 includes: GDPval-AA, 𝜏²-Bench Telecom, Terminal-Bench Hard, SciCode, AA-LCR, AA-Omniscience, IFBench, Humanity's Last Exam, GPQA Diamond, CritPt. See Intelligence Index methodology for further details, including a breakdown of each evaluation and how we run them.

Artificial Analysis Intelligence Index by Open Weights / Proprietary

Artificial Analysis Intelligence Index v4.0 incorporates 10 evaluations: GDPval-AA, 𝜏²-Bench Telecom, Terminal-Bench Hard, SciCode, AA-LCR, AA-Omniscience, IFBench, Humanity's Last Exam, GPQA Diamond, CritPt
Reasoning models are indicated by a lightbulb icon

Artificial Analysis Intelligence Index v4.0 includes: GDPval-AA, 𝜏²-Bench Telecom, Terminal-Bench Hard, SciCode, AA-LCR, AA-Omniscience, IFBench, Humanity's Last Exam, GPQA Diamond, CritPt. See Intelligence Index methodology for further details, including a breakdown of each evaluation and how we run them.

Indicates whether the model weights are available. Models are labelled as 'Commercial Use Restricted' if the weights are available but commercial use is limited (typically requires obtaining a paid license).

Intelligence Evaluations

Intelligence evaluations measured independently by Artificial Analysis; Higher is better
Reasoning models are indicated by a lightbulb icon.

While model intelligence generally translates across use cases, specific evaluations may be more relevant for certain use cases.

Artificial Analysis Intelligence Index v4.0 includes: GDPval-AA, 𝜏²-Bench Telecom, Terminal-Bench Hard, SciCode, AA-LCR, AA-Omniscience, IFBench, Humanity's Last Exam, GPQA Diamond, CritPt. See Intelligence Index methodology for further details, including a breakdown of each evaluation and how we run them.

Openness

Artificial Analysis Openness Index: Results

Openness Index assesses model openness on a 0 to 100 normalized scale (higher is more open)
Reasoning models are indicated by a lightbulb icon

Intelligence Index Comparisons

Intelligence vs. Price

Artificial Analysis Intelligence Index; Price: USD per 1M Tokens
Most attractive quadrant
Alibaba
Anthropic
DeepSeek
Google
Kimi
Meta
Mistral
NVIDIA
OpenAI
xAI
Xiaomi
Z AI
Reasoning models are indicated by a lightbulb icon.

While higher intelligence models are typically more expensive, they do not all follow the same price-quality curve.

Artificial Analysis Intelligence Index v4.0 includes: GDPval-AA, 𝜏²-Bench Telecom, Terminal-Bench Hard, SciCode, AA-LCR, AA-Omniscience, IFBench, Humanity's Last Exam, GPQA Diamond, CritPt. See Intelligence Index methodology for further details, including a breakdown of each evaluation and how we run them.

Price per token, represented as USD per million Tokens. Price is a blend of Input & Output token prices (3:1 ratio).

Figures represent performance of the model's first-party API (e.g. OpenAI for o1) or the median across providers where a first-party API is not available (e.g. Meta's Llama models).

Intelligence Index Token Use & Cost

Output Tokens Used to Run Artificial Analysis Intelligence Index

Tokens used to run all evaluations in the Artificial Analysis Intelligence Index
Reasoning models are indicated by a lightbulb icon

The number of tokens required to run all evaluations in the Artificial Analysis Intelligence Index (excluding repeats).

Cost to Run Artificial Analysis Intelligence Index

Cost (USD) to run all evaluations in the Artificial Analysis Intelligence Index
Reasoning models are indicated by a lightbulb icon

The cost to run the evaluations in the Artificial Analysis Intelligence Index, calculated using the model's input and output token pricing and the number of tokens used across evaluations (excluding repeats).

Context Window

Context Window

Context Window: Tokens Limit; Higher is better
Reasoning models are indicated by a lightbulb icon

Larger context windows are relevant to RAG (Retrieval Augmented Generation) LLM workflows which typically involve reasoning and information retrieval of large amounts of data.

Maximum number of combined input & output tokens. Output tokens commonly have a significantly lower limit (varied by model).

Pricing

Pricing: Input and Output Prices

Price: USD per 1M Tokens
Reasoning models are indicated by a lightbulb icon

Price per token included in the request/message sent to the API, represented as USD per million Tokens.

Figures represent performance of the model's first-party API (e.g. OpenAI for o1) or the median across providers where a first-party API is not available (e.g. Meta's Llama models).

Intelligence vs. Price (Log Scale)

Artificial Analysis Intelligence Index; Price: USD per 1M Tokens; Inspired by prior analysis by Swyx
Most attractive quadrant
Alibaba
Anthropic
DeepSeek
Google
Kimi
Meta
Mistral
NVIDIA
OpenAI
xAI
Xiaomi
Z AI
Reasoning models are indicated by a lightbulb icon.

While higher intelligence models are typically more expensive, they do not all follow the same price-quality curve.

Artificial Analysis Intelligence Index v4.0 includes: GDPval-AA, 𝜏²-Bench Telecom, Terminal-Bench Hard, SciCode, AA-LCR, AA-Omniscience, IFBench, Humanity's Last Exam, GPQA Diamond, CritPt. See Intelligence Index methodology for further details, including a breakdown of each evaluation and how we run them.

Price per token, represented as USD per million Tokens. Price is a blend of Input & Output token prices (3:1 ratio).

Figures represent performance of the model's first-party API (e.g. OpenAI for o1) or the median across providers where a first-party API is not available (e.g. Meta's Llama models).

 Pricing Comparison of Llama 2 Chat 7B API Providers

Speed

Measured by Output Speed (tokens per second)

Output Speed

Output Tokens per Second; Higher is better
Reasoning models are indicated by a lightbulb icon

Tokens per second received while the model is generating tokens (ie. after first chunk has been received from the API for models which support streaming).

Figures represent performance of the model's first-party API (e.g. OpenAI for o1) or the median across providers where a first-party API is not available (e.g. Meta's Llama models).

Output Speed vs. Price

Output Speed: Output Tokens per Second; Price: USD per 1M Tokens
Most attractive quadrant
Alibaba
Anthropic
DeepSeek
Google
Kimi
Mistral
NVIDIA
OpenAI
xAI
Xiaomi
Z AI
Reasoning models are indicated by a lightbulb icon.

Tokens per second received while the model is generating tokens (ie. after first chunk has been received from the API for models which support streaming).

Price per token, represented as USD per million Tokens. Price is a blend of Input & Output token prices (3:1 ratio).

Latency

Measured by Time (seconds) to First Token

Latency: Time To First Answer Token

Seconds to First Answer Token Received; Accounts for Reasoning Model 'Thinking' time
Reasoning models are indicated by a lightbulb icon

Time to first answer token received, in seconds, after API request sent. For reasoning models, this includes the 'thinking' time of the model before providing an answer. For models which do not support streaming, this represents time to receive the completion.

End-to-End Response Time

Seconds to output 500 Tokens, calculated based on time to first token, 'thinking' time for reasoning models, and output speed

End-to-End Response Time

Seconds to Output 500 Tokens, including reasoning model 'thinking' time; Lower is better
Reasoning models are indicated by a lightbulb icon

Seconds to receive a 500 token response. Key components:

  • Input time: Time to receive the first response token
  • Thinking time (only for reasoning models): Time reasoning models spend outputting tokens to reason prior to providing an answer. Amount of tokens based on the average reasoning tokens across a diverse set of 60 prompts (methodology details).
  • Answer time: Time to generate 500 output tokens, based on output speed

Figures represent performance of the model's first-party API (e.g. OpenAI for o1) or the median across providers where a first-party API is not available (e.g. Meta's Llama models).

Model Size (Open Weights Models Only)

Model Size: Total and Active Parameters

Comparison between total model parameters and parameters active during inference
Active Parameters
Passive Parameters
Reasoning models are indicated by a lightbulb icon.

The total number of trainable weights and biases in the model, expressed in billions. These parameters are learned during training and determine the model's ability to process and generate responses.

The number of parameters actually executed during each inference forward pass, expressed in billions. For Mixture of Experts (MoE) models, a routing mechanism selects a subset of experts per token, resulting in fewer active than total parameters. Dense models use all parameters, so active equals total.

Frequently Asked Questions

Common questions about Llama 2 Chat 7B

Llama 2 Chat 7B was released on July 18, 2023.

Llama 2 Chat 7B was created by Meta.

Llama 2 Chat 7B scores 10 (estimated) on the Artificial Analysis Intelligence Index, placing it below average among other open weight non-reasoning models of similar size (median: 12).

Llama 2 Chat 7B costs $0.05 per 1M input tokens (very competitive, median: $0.18) and $0.25 per 1M output tokens (better than average, median: $0.30), based on the median across providers serving the model.

Llama 2 Chat 7B costs $0.05 per 1M input tokens and $0.25 per 1M output tokens (based on the median across providers serving the model). For a blended rate (3:1 input to output ratio), this is $0.10 per 1M tokens. Pricing may vary by provider. Compare provider pricing

No, Llama 2 Chat 7B is not a reasoning model. It provides direct responses without extended chain-of-thought reasoning.

Llama 2 Chat 7B supports text only input.

Llama 2 Chat 7B supports text only output.

No, Llama 2 Chat 7B does not support image input. It can only process text.

No, Llama 2 Chat 7B is not multimodal. It only supports text only input.

Llama 2 Chat 7B has a context window of 4.1k tokens. This determines how much text and conversation history the model can process in a single request.

Yes, Llama 2 Chat 7B is open weights. The model weights are publicly available and can be downloaded for self-hosting.

Llama 2 Chat 7B has 7 billion parameters.

Llama 2 Chat 7B is released under the Llama 2 Community License Agreement license. This license allows commercial use. View license

Llama 2 Chat 7B achieves a score of 10 on the Artificial Analysis Intelligence Index. This composite benchmark evaluates models across reasoning, knowledge, mathematics, and coding.

Llama 2 Chat 7B has a knowledge cutoff of July 2023. The model's training data includes information up to this date.

Yes, Llama 2 Chat 7B is available via API through 1 provider. Compare API providers

Llama 2 Chat 7B is available through 1 API provider. Compare providers