AI Rankings
Llama 2-7B: Score, Price and Context Window
Data updated
- Meta
- Open weights
- Released Jul 2023
Its score range overlaps with LLaMA-13B, the model just above it, so a small gap in rank is not a meaningful difference.
Best for
- Running it yourself: its weights can be downloaded (read the licence terms first).
Skip if
- Cutting-edge tasks: its overall Epoch score is in the lower part of the models we track.
- Long documents: its context window is only 4K tokens.
These lines are worked out from the numbers on this page, not from hands-on testing.
Key facts
- Price per million tokens
- $0.10 in / $0.20 out
- Blended $0.13. Median across hosting providers, checked 26 Oct 2026.
We do not have benchmark results for Llama 2-7B yet. It is shown as "Not measured" rather than guessed.
How Llama 2-7B stacks up
- Overall capability98.6
Better than 8% of the other 269 models
Epoch Capabilities Index: one score that combines many tests.
- Human preference: chat1108
Better than 3% of the other 177 models
How often people pick its answers over another model's on Arena.
- Human preference: coding1103
Better than 2% of the other 176 models
How often people pick its answers to coding questions on Arena.
- Price$0.13 per 1M
Cheaper than 91% of the other 199 priced modelsTop 10%
Blended price per million tokens. Lower is better, so the cheapest models sit on the right.
- Context window4K tokens
Larger context window than 0% of the other 197 models
How much text it can read at once. Bigger suits long documents.
Where Llama 2-7B ranks
What it costs in everyday terms
- 100 chats
- $0.02
- Cost of 100 chats assumes each chat sends 1,000 tokens (about 750 words) and gets 500 tokens (about 375 words) back.
- A 300-page book
- $0.01
- Cost to read a 300-page book assumes about 100,000 input tokens and no reply. A real book varies with page size and language.
- Blended price
- $0.13 per 1M
- Three parts input to one part output. Our own calculation for comparing models.
Assumptions: 100 chats of about 1,000 tokens in and 500 tokens back. a 300-page book of about 100,000 tokens, read once with no reply.
Similar models
Questions about Llama 2-7B
- How much does Llama 2-7B cost?
- Llama 2-7B costs $0.10 per million input tokens and $0.20 per million output tokens, using the median price across hosting providers as of 26 Oct 2026. That is about $0.02 for 100 chats of about 1,000 tokens in and 500 tokens back. Confirm on the maker's site before you buy, because prices change.
- What is the context window of Llama 2-7B?
- Llama 2-7B has a context window of 4K tokens, roughly 3,000 words of text read at once. A single answer can be up to 4K tokens long.
- Is Llama 2-7B open source?
- Llama 2-7B has open weights: its trained parameters can be downloaded. That is not always the same as open source, because licence terms differ, so read the licence before you use it commercially.
- How good is Llama 2-7B compared with other AI models?
- On the Epoch Capabilities Index, Llama 2-7B scores 98.6 (likely range 87.3 to 105.6), which ranks 247 of 270 models we track. On Arena's human-vote text board it is ranked 172 of 178. Scores close together are a tie in practice.
- How does Llama 2-7B compare with chatglm2-6b?
- Llama 2-7B scores higher on 2 of 3 shared quality measures, chatglm2-6b on 0. 1 measure is too close to call. See the full comparison for every measure.
- How current are these numbers for Llama 2-7B?
- The newest data on this page is dated 26 Oct 2026. Scores come from Epoch AI and Arena, prices from the open LiteLLM price list.
Where this data comes from
- Epoch AI: Benchmark data: Epoch AI, 'Capabilities & benchmarking', epoch.ai/benchmarks (CC BY 4.0). We match models across sources, rank them and show them in charts. Scores are not changed. Epoch AI does not endorse this site.
- Arena (formerly LMArena): Human-preference ratings: Arena (arena.ai) leaderboard dataset, CC BY 4.0. We keep the latest published ratings, match them to models from other sources and rank them. Ratings are not changed. Arena does not endorse this site.
- LiteLLM model price list: Prices and context windows: LiteLLM model price list (github.com/BerriAI/litellm, MIT licence). We use the model maker's own price entry when there is one. Prices change often, so always confirm on the maker's site before you buy.
Newest data on this page: 26 Oct 2026. Prices are list prices and change often, so confirm on the maker's site before you buy. Sponsors never change a score or an order. How we calculate this · Report a mistake