Llama 3.1 Instruct 8B API Pricing

Meta · released 2024-07-23

Pricing

$0.02
input / 1M tokens
< 0.01¢ / 1K
$0.05
output / 1M tokens
< 0.01¢ / 1K
$0.028
blended / 1M tokens
< 0.01¢ / 1K

What it actually costs

WorkloadTokensCost
Short chat reply500 in / 300 out0.0025¢
RAG query4,000 in / 500 out0.0105¢
Long document summary50,000 in / 1,000 out0.105¢
Code review of a 2k-line file30,000 in / 2,000 out0.07¢
1,000 chat replies/day for 30 days30,000 × (500 in / 300 out)$0.7500

Cost = (input tokens ÷ 1,000,000 × $0.02) + (output tokens ÷ 1,000,000 × $0.05).

Benchmarks

6.9
Intelligence
#387 of 533
5.4
Coding
#187 of 197
4.3
Math
#229 of 249
Tokens/sec
Time to first token

Leaderboard neighbours

ModelIntelligenceBlended $/1M
Qwen3 VL 4B (Reasoning)7.0
Solar Pro 2 (Non-reasoning)7.0
Grok Beta6.9
Llama 3.1 Instruct 8B6.9$0.028
Llama 3.1 Nemotron Instruct 70B6.9$1.20
Qwen2.5 Instruct 32B6.9
Qwen3.5 2B (Reasoning)6.9

More from Meta

ModelIntelligenceBlended $/1M
Muse Spark 1.3 (max)48.1$2.00
Muse Spark 1.2 (xhigh)39.6$2.00
Muse Spark 1.1 (xhigh)33.7$2.00
Muse Spark31.3
Muse Glimmer (high)17.5$0.637
Llama 4 Maverick10.0$0.422
Llama 4 Scout8.1$0.313
Llama 3.3 Instruct 70B7.7$0.712

Count tokens & estimate cost for Llama 3.1 Instruct 8B See Llama 3.1 Instruct 8B on the leaderboard

Source: Artificial Analysis · last synced 2026-09-22

FAQ

Who develops Llama 3.1 Instruct 8B?

Llama 3.1 Instruct 8B is developed by Meta, released 2024-07-23.

How much does Llama 3.1 Instruct 8B cost per million tokens?

Llama 3.1 Instruct 8B costs $0.02 per 1M input tokens and $0.05 per 1M output tokens ($0.028 blended), per Artificial Analysis's official pricing data.

How does Llama 3.1 Instruct 8B rank on benchmarks?

Llama 3.1 Instruct 8B scores 6.9 on the Artificial Analysis Intelligence Index, ranking #387 of 533 models we track.

Where does this data come from?

Pricing and benchmark data for Llama 3.1 Instruct 8B comes from Artificial Analysis (artificialanalysis.ai), synced daily. Last synced 2026-09-22.