Meta logo Open weights · Meta Llama 3 Community License

Llama 3 8B

Meta's 8B-parameter open-weight Llama 3 model, released April 2024.

Cheapest via Replicate
Input
$0.05 /1M tokens
Output
$0.25 /1M tokens
Replicate Together AI Meta 3 providers

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
Replicate logo Replicate Cheapest $0.05 $0.25 $1.00 View
Together AI logo Together AI $0.14 $0.14 $1.68 View
Meta logo Meta Creator 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.

Fits on 1 Single node ≤ 8
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 vs Llama 3 8B
Cohere Command R7B Cohere $0.0583 −30%
Google Cloud Gemma 3 12B Instruct Google Cloud $0.0583 −30%
Meta Llama 3.2 1B Meta $0.0583 −30%
OpenAI GPT-OSS-120B OpenAI $0.0633 −24%
Nvidia Nemotron 3 Nano 30B A3B Nvidia $0.075 −10%
Meta Llama 3 8B This model Meta $0.0833
Alibaba Cloud Qwen3-Coder-30B-A3B Alibaba Cloud $0.0917 +10%
Meta Llama 3.2 3B Meta $0.0983 +18%
Alibaba Cloud Qwen3-30B-A3B FP8 Alibaba Cloud $0.0983 +18%
Mistral Ministral 3 3B Mistral $0.10 +20%
Z.AI GLM-5.3-Flash Z.AI $0.1083 +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
Meta Llama 3.2 3B Open weights 128K $0.05 $0.34
Meta Llama 3.2 1B Open weights 128K $0.03 $0.20
Meta Llama 3.2 11B Vision Open weights 128K $0.05 $0.68
Meta Llama 3.3 70B Open weights 128K $0.13 $0.40
Meta Llama 4 Scout Open weights 10M $0.16 $0.64
Meta Llama 3.1 8B Open weights 131K $0.02 $0.05
Meta Llama 4 Maverick Open weights 1M $0.20 $0.70
Meta Muse Glimmer 30B Open weights 131K $0.20 $0.80