English
EnglishDeutschEspañolالعربية日本語

Llama 3.1 8B Instruct — API Pricing, Context Window & Specifications

Llama 3.1 8B Instruct by Meta: $0.05 per 1M input tokens, $0.08 per 1M output tokens, 131K token context window, monthly workload cost estimates and rival LLM comparisons.

$0.05Input / 1M
$0.08Output / 1M
131KContext
118KMax Output
MetaProvider
text->textModality

Llama 3.1 8B Instruct token cost by volume

Token volumeInput costOutput cost
10K tokens$0.0005$0.0008
100K tokens$0.0050$0.0080
1M tokens$0.05$0.08
10M tokens$0.50$0.80
100M tokens$5.00$8.00
Workload scenario (30 days)Est. monthly bill
Customer chatbot (1,000 chats/day · 1.5K in + 500 out)$3.45
Enterprise RAG search (5,000 queries/day · 4K in + 600 out)$37.20
Coding / agentic workflow (500 runs/day · 12K in + 2K out)$11.40

Llama 3.1 8B Instruct (8B) local GPU VRAM requirements

Precision / QuantizationModel weightsEst. VRAM (with 8K KV cache)Recommended GPU / Memory tier
FP16 / BF16 (16-bit)16.0 GB19.2 GBRTX 3090 / RTX 4090 24GB / Mac 32GB
INT8 / Q8_0 (8-bit)8.5 GB10.6 GBRTX 3060 12GB / RTX 4070 12GB / Mac 16GB
Q6_K (6-bit)6.6 GB8.3 GBRTX 3060 12GB / RTX 4070 12GB / Mac 16GB
Q4_K_M (4-bit)4.6 GB6.1 GBRTX 3060 12GB / RTX 4070 12GB / Mac 16GB

Compare side by side

More models from Meta

Frequently asked questions

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

Llama 3.1 8B Instruct (Meta) is priced at $0.05 per 1 million input tokens and $0.08 per 1 million output tokens, with prompt cache reads at $0.025 per 1M tokens.

What is Llama 3.1 8B Instruct's maximum context window and output limit?

Llama 3.1 8B Instruct supports a context window of 131,072 tokens with up to 117,964 maximum completion tokens (text->text).