AiCostCompare

Llama 3.1 8B Instruct

by Meta · meta-llama/llama-3.1-8b-instruct · #10 cheapest of 457 paid models

Prices updated Nov 18, 2026, 6:42 AM UTC · refreshed nightly

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 vs:Claude Sonnet 5Claude Opus 4.6Claude Haiku 4.5GPT-5.6 Sol

Pricing

Input

$0.02

per 1M tokens

Output

$0.04

per 1M tokens

Blended (3:1)

$0.025

3 input : 1 output

Cache read

—

per 1M cached tokens

Cache write

—

per 1M tokens

Cache & batch economics

Effective prices for Llama 3.1 8B Instruct (no cache-read rate published — hits billed as normal input).

Cache hit rateEffective blended $/1MExample request*vs no cache
0%$0.025$0.00208—
50%$0.025$0.00208−0%
90%$0.025$0.00208−0%

*Example: 100K sticky context + 2K new input + 1K output. Batch discount is an approximate 50% off list rates (available for OpenAI / Anthropic / Google — not flagged for this creator). Confirm on the vendor’s pricing page.

What a request costs

WorkloadInput tokensOutput tokensCost / requestCost / 1K requests
Short chat message500300$2.20e-5$0.022
Document summary8,0001,000$0.0002$0.2
Codebase question (RAG)30,0002,000$0.00068$0.68
Long-context analysis150,0005,000$0.0032$3.20

Performance

Intelligence Index

—

AA composite quality

Coding Index

5.4

Math Index

—

Agentic Index

—

Output speed

—

median

Time to first token

—

median

Time to first answer

—

after reasoning tokens

Specs

Context window

131K

tokens

Max output

16K

tokens

Input modalities

text

Tokenizer

Llama3