by Meta AI

Llama 3.1 8B.

text open weights laptop+ 8B params 128K ctx Transformer Quality 59.4
Cheapest input
$0.02/M
on DeepInfra
Cheapest output
$0.04/M
on DeepInfra
Smallest GPU
1× Nvidia GeForce RTX 4060
$0.051/hr

Meta's most popular open-weight small LLM — fits anywhere.

Smallest GPU to run it See all quantisations →

1× Nvidia GeForce RTX 4060 · $0.051/hr.

Most-aggressive quantisation we have a working recommendation for. Lower precision = less VRAM = cheaper hardware, at a small accuracy cost.

Where to use it Top 4 cheapest · 7 total below

Cheapest hosted endpoints.

Provider Access $/M in $/M out Contexto
DeepInfra hosted inference $0.02 $0.04 131K Launch ↗
OpenRouter api aggregator $0.05 $0.08 131K Launch ↗
Together AI hosted inference $0.18 $0.18 131K Launch ↗
Fireworks AI hosted inference $0.2 $0.2 —
Capability snapshot Full benchmarks →

What it's best at.

General knowledge 73.0
Coding 72.6
Graduate-level science 32.8
Sources

Official references.

Family

Variants in the Llama family.

FAQ

Frequently asked.

How do I run Llama 3.1 8B?
Llama 3.1 8B is open-weight, so you can self-host on rented GPUs. See the Run It Yourself tab for GPU configurations + cost estimates, or use one of the hosted inference providers listed on this page.
Where can I access Llama 3.1 8B?
Llama 3.1 8B is available via Fireworks AI, Together AI, DeepInfra, OpenRouter, Ollama. Each access option lists its own pricing (per million tokens or hourly hosting).
How much does it cost to run Llama 3.1 8B?
API pricing starts at $0.02/M input tokens and $0.04/M output tokens. Self-hosting cost depends on the GPU you rent — see the Run It Yourself tab.
Is Llama 3.1 8B open-source or proprietary?
Llama 3.1 8B is open-weight under the Llama 3.1 Community License license. You can download and self-host it.