Context
4K
Max output
4K
Serving providers
3
Cheapest input
$0.05 /1M
On-demand listed rates, OpenRouter routed quotes and Vercel reseller quotes. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower.
Pricing by serving provider
standard tier · per 1M tokens · click a provider to expandInput pricing runs from $0.05 to $0.20 per 1M tokens across 2 providers, so the dearest route costs 300% more than the cheapest for the same model.
| Serving provider | Input /1M | Output /1M | Endpoints | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ReplicateCheapest | $0.05 | $0.25 | 1 | ||||||||||
Standardreplicate/meta/llama-2-7b
| |||||||||||||
| Fireworks AI | $0.20 | $0.20 | 1 | ||||||||||
Standardfireworks_ai/accounts/fireworks/models/llama-v2-7b
| |||||||||||||
| Ollama | $0.00 | $0.00 | 1 | ||||||||||
Standardollama/llama2:7b
| |||||||||||||
Price history
listed seller prices, input and output per 1M tokens Input Output
Cost calculator
estimate your monthly spend on this model$0
estimated / month
Model IDs
copy the exact identifier for your platformollama/llama2:7breplicate/meta/llama-2-7bfireworks_ai/accounts/fireworks/models/llama-v2-7b
Frequently asked questions
Llama 2 7B pricing, context and availabilityHow much does Llama 2 7B cost?
Llama 2 7B costs $0.05 per 1M input tokens from Replicate, and $0.20 per 1M output tokens from Fireworks AI. Across 2 serving providers, input prices range from $0.05 to $0.20 per 1M tokens.
What is the context window of Llama 2 7B?
Llama 2 7B accepts up to 4K tokens of context and can return up to 4K output tokens.
Which providers serve Llama 2 7B?
Llama 2 7B is available from 3 serving providers, each with its own pricing and model ID. Replicate is currently the cheapest.
What can Llama 2 7B do?
Llama 2 7B supports tool use.
Other Meta models
compare pricing across the Meta lineupLlama 3.3 70B Instruct$0.12/1M · 18 providersLlama 3.1 8B Instruct$0.02/1M · 17 providersLlama 3.1 70B Instruct$0.12/1M · 12 providersLlama 3.2 3B Instruct$0.015/1M · 11 providersLlama 4 Scout 17B 16e Instruct$0.05/1M · 11 providersLlama 3.1 405B Instruct$0.12/1M · 9 providersLlama 3 70B Instruct$0.12/1M · 9 providersLlama 3.2 1B Instruct$0.02/1M · 8 providers
Listed prices from LiteLLM, OpenRouter and Vercel · last checked Oct 14, 2026
Every weekday
AI moves fast. Here's your debrief.
News, analysis, tools, and more.
For people who build with AI