LLMCost
meta-llama

Meta: Llama 3.1 8B Instruct API Pricing

Meta: Llama 3.1 8B Instruct costs $0.050 per 1M input tokens and $0.080 per 1M output tokens (cache reads: $0.025). Context window: 131K. Prices verified 2026-10-21 · source

🔔 Price alerts coming soon

Alternatives to consider

💰 Save money
inclusionAI: Ling 3.0 Flash
$0.021 in / $0.063 out
Quality score: 20.1

45% cheaper with nearly identical quality (20.1 vs 6.9)

⬆️ Upgrade smart
OpenAI: GPT-5 Nano (batch)
$0.025 in / $0.200 out
Quality score: 13

+6.1 quality points for 20% more

Price history
2026-08-23 → 2026-10-21 · 59 daily snapshots
inputoutput

Rebuilt daily from our snapshot archive — the chart appears once a model has 5+ snapshots of history.

Community adoption
5.3M
HF downloads
9K
Likes

High adoption means battle-tested weights, more fine-tunes/quants, and faster bug fixes. View on HuggingFace →

Pricing behavior
Stable — no price moves across our 59 daily snapshots (2026-08-23 → 2026-10-21).

From our own daily snapshot archive — independent of provider announcements.

Intelligence & capability
via Artificial Analysis
6.9
Intelligence index · top 91% of 288 scored
5.4
Coding index
$0.0575
Blended $/1M (3:1 in:out)

Intelligence measures reasoning/knowledge/coding benchmarks. A high score with a low blended price = value pick; check the value chart to see where this model lands.

Input / 1M tokens
$0.050
Output / 1M tokens
$0.080
Context window
131K
Max output
118K

Token economics

Token typePricevs base input
Standard input$0.050—
Cache read$0.025−50%
Output$0.080—

Prompt caching stores repeated context server-side: reads cost far less, but writes carry a one-time premium.

Knowledge cutoff
2023-12-31

Training data ends here — newer events require retrieval or web search.

What would Meta: Llama 3.1 8B Instruct cost you per month?

WorkloadRequests/moAvg tokens (in/out)Est. monthly cost
Light chatbot10,000800 / 400$0.72
Coding agent5,0008,000 / 2,000$2.80
RAG pipeline30,0004,000 / 500$7.20
Doc summarizer2,00020,000 / 1,000$2.16

Estimates use list prices without prompt caching. Caching can cut input cost by up to 90% on repeated context.

About Meta: Llama 3.1 8B Instruct

Meta's latest class of model (Llama 3.1) launched with a variety of sizes & flavors. This 8B instruct-tuned version is fast and efficient. It has demonstrated strong performance compared to...

Compare Meta: Llama 3.1 8B Instruct with

Popular head-to-heads — see all on the comparisons index.

Frequently asked questions

How much does Meta: Llama 3.1 8B Instruct cost?

Meta: Llama 3.1 8B Instruct costs $0.050 per 1M input tokens and $0.080 per 1M output tokens; cached input tokens cost $0.025 per 1M. Verified 2026-10-21 — provider source.

What is the context window?

131K tokens, with up to 118K output tokens per response. That's roughly 164 pages of text in a single request.

Does it support prompt caching?

Yes — cached input is $0.025/1M, about 50% cheaper than standard input. Agents and RAG workloads with repeated context benefit most.

What's a cheaper alternative?

Mistral: Mistral Nemo saves about 50% on a typical workload with comparable quality.

Official resources