Llama 3 8B
Meta's 8B-parameter open-weight Llama 3 model, released April 2024.
Key Specifications
- Context window
- 8K tokens
- Knowledge cutoff
- Released
- Parameters
- 8B
- Inputs
- Text
Hosted API pricing
| Provider | Input /1M tokens | Output /1M tokens | Cost at 10M in + 2M out | |
|---|---|---|---|---|
|
|
$0.05 | $0.25 | $1.00 | View |
|
|
$0.14 | $0.14 | $1.68 | View |
|
|
Open weights, no hosted price | View | ||
Heads up: Base-tier, on-demand rates per 1M tokens; cached, batch and long-context tiers excluded. A provider may serve a shorter context or a quantized build than the creator's release. Verify before provisioning. More on how we price.
Estimated cost to self-host
Llama 3 8B needs about 7 GB of GPU memory at 4-bit with its full 8K context. The cheapest rental that fits is 1× RTX 3060 at about $43 a month.
That costs the same as roughly 518M tokens a month on Replicate's API. Self-hosting is more expensive below that volume.
| Precision | Memory | Cheapest fit (Full 8K context) | Cost /mo | Break-even vs API |
|---|---|---|---|---|
| 4-bitINT4 / FP4 |
7 GB
|
$43
|
518M tokens /mo
|
|
| 8-bitFP8 / INT8 |
11 GB
|
$72
|
864M tokens /mo
|
|
| 16-bitFP16 / BF16 |
19 GB
|
$86
|
1B tokens /mo
|
Estimates based on median on-demand rates for Nvidia GPUs. Memory is weights plus KV cache for one request, using FP8 KV cache where supported and FP16/BF16 otherwise. Break-even assumes a 5:1 input-to-output ratio. No guarantee of runtime support, usable performance, or that a matching quantized build exists. How we estimate costs.
Similarly priced models
The models nearest Llama 3 8B by blended rate, each at its own cheapest provider.
| Model | Blended /1M | Input /1M | Output /1M | Context | Cutoff | vs Llama 3 8B |
|---|---|---|---|---|---|---|
|
|
$0.0583 | $0.04 | $0.15 | 128K | −30% | |
|
|
$0.0583 | $0.05 | $0.10 | 128K | Aug 2024 | −30% |
|
|
$0.0583 | $0.03 | $0.20 | 128K | Dec 2023 | −30% |
|
|
$0.0633 | $0.04 | $0.18 | 131K | Jun 2024 | −24% |
|
|
$0.075 | $0.05 | $0.20 | 262K | Jun 2025 | −10% |
|
|
$0.0833 | $0.05 | $0.25 | 8K | Mar 2023 | |
|
|
$0.0917 | $0.06 | $0.25 | 262K | +10% | |
|
|
$0.0983 | $0.05 | $0.34 | 128K | Dec 2023 | +18% |
|
|
$0.0983 | $0.05 | $0.34 | 33K | +18% | |
|
|
$0.10 | $0.10 | $0.10 | 256K | +20% | |
|
|
$0.1083 | $0.08 | $0.25 | 1M | +30% |
Prices are USD per 1M tokens at each model's cheapest listed provider. Blended is the cost of 10M input plus 2M output tokens, spread over the 12M.
Frequently Asked Questions
What is Llama 3 8B good for?
Small text-only tasks such as classification, short chat and extraction. Open weights under the Meta Llama 3 Community License, small enough for a single consumer GPU.
When is Llama 3 8B not a good fit?
Image input and tool calling, which it has neither of, and anything needing recent knowledge. Llama 3.1 8B takes far longer inputs and adds function calling under a similar licence.
What is the cheapest way to run Llama 3 8B?
Hosted, unless you push serious volume. Replicate charges $0.05 in / $0.25 out per 1M tokens. The cheapest rental that fits is 1x RTX 3060 at $43 a month, which costs the same as about 518M tokens a month on that API.
How does Llama 3 8B compare with Llama 3.1 8B?
Meta says Llama 3.1 8B upgrades Llama 3 8B with more and better training data and a new multi-round post-training, adding a much longer context, multilingual support, tool use and what Meta calls stronger reasoning. Same text input. Llama 3 8B costs 150% more per 1M input tokens and 400% more per 1M output tokens than Llama 3.1 8B, at each model's cheapest listed provider. It came out 3 months earlier, has an older knowledge cutoff (March 2023 against December 2023) and a smaller context (8K against 131K tokens) and is licensed under Meta Llama 3 Community License against Llama 3.1 Community License.
Can I self-host Llama 3 8B?
Yes. The weights are released under the Meta Llama 3 Community License. At 4-bit it needs about 7 GB of GPU memory, which starts at roughly $43 a month on the cheapest rental that fits.
More from Meta
| Model | Context | Input /1M | Output /1M |
|---|---|---|---|
|
|
128K | $0.05 | $0.34 |
|
|
128K | $0.03 | $0.20 |
|
|
128K | $0.05 | $0.68 |
|
|
128K | $0.13 | $0.40 |
|
|
10M | $0.16 | $0.64 |
|
|
131K | $0.02 | $0.05 |
|
|
1M | $0.20 | $0.70 |
|
|
131K | $0.20 | $0.80 |