Llama 3.1 8B Instruct
by Meta · meta-llama/llama-3.1-8b-instruct · #13 cheapest of 325 paid models
Prices updated Jul 22, 2026, 2:18 AM UTC · refreshed hourly
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.05
per 1M tokens
Output
$0.08
per 1M tokens
Blended (3:1)
$0.057
3 input : 1 output
Cache read
$0.025
per 1M cached tokens
Cache write
—
per 1M tokens
Cache & batch economics
Effective prices for Llama 3.1 8B Instruct with prompt caching.
| Cache hit rate | Effective blended $/1M | Example request* | vs no cache |
|---|---|---|---|
| 0% | $0.057 | $0.00518 | — |
| 50% | $0.048 | $0.00393 | −24% |
| 90% | $0.041 | $0.00293 | −43% |
*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
| Workload | Input tokens | Output tokens | Cost / request | Cost / 1K requests |
|---|---|---|---|---|
| Short chat message | 500 | 300 | $4.90e-5 | $0.049 |
| Document summary | 8,000 | 1,000 | $0.00048 | $0.48 |
| Codebase question (RAG) | 30,000 | 2,000 | $0.00166 | $1.66 |
| Long-context analysis | 150,000 | 5,000 | $0.0079 | $7.90 |
Performance
Intelligence Index
7.6
AA composite quality
Coding Index
5.4
Math Index
—
Agentic Index
0.5
Output speed
—
median
Time to first token
—
median
Time to first answer
—
after reasoning tokens
Specs
Context window
131K
tokens
Max output
131K
tokens
Input modalities
text
Tokenizer
Llama3