Meta-llama

Llama 3 8B Instruct API Pricing 2026

Compare pricing, benchmarks, and providers for Llama 3 8B Instruct. 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 Instruct was released on April 18, 2024. Pricing starts at $0.040 per million input tokens and $0.040 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.040
Output$0.040
Cached$0.100
per 1M tokens
Speed
Output-
TTFT-
median latency
Capabilities
Tools

Llama 3 8B Instruct is priced at $0.040 per million input tokens and $0.040 per million output tokens. It has a context window of 8,192 tokens. It is available from 4 providers, with Novita the cheapest at $0.040 per million input tokens (input prices range from $0.040 to $0.200). On benchmarks, Llama 3 8B Instruct scores Intelligence 14.3 (19th percentile), MMLU Pro 17.8 (10th percentile), GPQA 2.1 (4th percentile).

Pricing Comparison

Compare Llama 3 8B Instruct 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.040
$0.040
—
17.8
2.1
8,192
Try
$0.035
$0.140
—
—
—
128,000
Try
$0.035
$0.900
—
—
81.8
1,000,000
Try
$0.037
$0.150
—
—
—
128,000
Try
$0.040
$0.078
—
—
91.2
1,048,575
Try
$0.040
$0.080
—
—
—
131,072
Try
$0.040
$0.064
—
—
—
32,768
Try
$0.040
$0.040
—
—
—
32,768
Try
$0.040
$0.050
—
—
—
131,072
Try
$0.040
$0.040
—
—
—
128,000
Try
$0.040
$0.050
—
31.0
6.8
8,192
Try

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

Compare Providers

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

4
Providers
$0.040
Cheapest Input/M
$0.040
Cheapest Output/M
Novita
Best Price

Provider Pricing

4 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
Novita
Novita
Best Price
$0.040
$0.040
-
-
-
$0.050
$0.080
-
-
-
$0.200
$0.200
-
-
-
$0.200
$0.200
$0.100
-
-
Provider pricing data sourced from OpenRouter and Helicone

Community Rankings

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

Cost vs. Quality

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

X-axis:
Y-axis:
Loading chart...
Llama 3 8B Instruct
Other models

Detailed Benchmark Scores

Intelligence
14.3 (19th pct)
Coding
-
Math
-
MMLU Pro
17.8 (10th pct)
GPQA
2.1 (4th pct)
LiveCodeBench
-
AIME
-
Aider
-
Benchmark data from Artificial Analysis and HuggingFace Open LLM Leaderboard

Try Llama 3 8B Instruct

Use our Calculator

Estimate your costs based on expected token usage.

Open Cost Calculator

Try in Playground

Test Llama 3 8B Instruct directly in your browser.

Open Playground

Frequently Asked Questions

Llama 3 8B Instruct costs $0.000040 per 1,000 input tokens and $0.000040 per 1,000 output tokens.
Llama 3 8B Instruct is available from 4 providers. Novita offers the best price.
Novita offers Llama 3 8B Instruct at $0.040 per million input tokens, the lowest of 4 providers (input prices range from $0.040 to $0.200 per million tokens).
Llama 3 8B Instruct scores Intelligence 14.3 (19th percentile), MMLU Pro 17.8 (10th percentile), GPQA 2.1 (4th percentile). Only benchmarks with published data for this model are shown.
We compare Llama 3 8B Instruct 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 →