Meta-llama

Llama 3 8B API Pricing 2026

Compare pricing, benchmarks, and providers for Llama 3 8B. Find the best value for your use case.

8 Ways to Use Fewer Tokens
Last updated: November 21, 2026 at 08:43 AM

Overview

Llama 3 8B. Pricing starts at $0.050 per million input tokens and $0.080 per million output tokens. The model supports a context window of up to 8K tokens. API access is available through Meta-llama.

Context Window
8K
tokens
Pricing
Input$0.050
Output$0.080
Cached$0.100
per 1M tokens
Speed
Output-
TTFT-
median latency
Capabilities
Text only

Llama 3 8B is priced at $0.050 per million input tokens and $0.080 per million output tokens. It has a context window of 8,192 tokens. It is available from 2 providers, with Vercel the cheapest at $0.050 per million input tokens (input prices range from $0.050 to $0.200).

Pricing Comparison

Compare Llama 3 8B with 10 similar models by price.

Current Pricing (per 1M tokens)

11 models

Sponsored The Grid | Spot Priced LLM API
The Grid | Spot Priced LLM API — Why pay list price when providers will bid for your API usage? Up to 80% off.
View spot prices
Provider
Model
Input $/M
Output $/M
Coding
MMLU
GPQA
Context
Actions
$0.050
$0.080
—
—
—
8,192
Try
$0.040
$0.040
—
17.8
2.1
8,192
Try
$0.040
$0.150
—
—
—
260,000
Try
$0.040
$0.100
—
—
—
1,048,576
Try
$0.042
$0.123
—
—
—
262,144
Try
$0.042
$0.123
—
—
—
262,144
Try
$0.045
$0.150
—
—
—
131,072
Try
$0.050
$0.190
—
—
—
262,144
Try
$0.050
$0.700
—
—
—
262,144
Try
IB
IBM
$0.050
$0.100
—
—
—
131,072
Try
$0.050
$0.200
—
—
—
128,000
Try

* Some models use tiered pricing based on prompt length. Displayed prices are for prompts ≤ 200k tokens.

Compare Providers

Llama 3 8B is available from multiple providers with different pricing and availability.

2
Providers
$0.050
Cheapest Input/M
$0.080
Cheapest Output/M
Vercel
Best Price

Provider Pricing

2 models

Sponsored The Grid | Spot Priced LLM API
The Grid | Spot Priced LLM API — Why pay list price when providers will bid for your API usage? Up to 80% off.
View spot prices
Provider
Input $/M
Output $/M
Cache Read $/M
Cache Write $/M
Uptime
V
Vercel
Best Price
$0.050
$0.080
-
-
-
$0.200
$0.200
$0.100
-
-
Provider pricing data sourced from OpenRouter and Helicone

Community Rankings

How does Llama 3 8B perform? Vote based on your experience.

Cost vs. Quality

Compare Llama 3 8B's benchmark performance against all models.

X-axis:
Y-axis:
Loading chart...
Other models

Try Llama 3 8B

Use our Calculator

Estimate your costs based on expected token usage.

Open Cost Calculator

Try in Playground

Test Llama 3 8B directly in your browser.

Open Playground

Frequently Asked Questions

Llama 3 8B costs $0.000050 per 1,000 input tokens and $0.000080 per 1,000 output tokens.
Llama 3 8B is available from 2 providers. Vercel offers the best price.
Vercel offers Llama 3 8B at $0.050 per million input tokens, the lowest of 2 providers (input prices range from $0.050 to $0.200 per million tokens).
We compare Llama 3 8B with 10 similarly-priced models. See the benchmark scatter plot above to compare quality vs cost.

All Meta-llama Models

See pricing for all Meta-llama models.

View all Meta-llama models →