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.
At a glance
- Input / 1M
- $0.05
- Output / 1M
- $0.08
- Context
- 131K
- Max output
- 118K
- Intelligence
- 6.9
- Released
- Jul 2024
Pricing
Llama 3.1 8B Instruct API pricing
Per-token rates, plus what common tasks actually cost.
| Input tokensPer 1M tokens | $0.05 |
|---|---|
| Output tokensPer 1M tokens | $0.08 |
| Cached input (read)Per 1M tokens | $0.03 |
| Cache writePer 1M tokens | Not available |
Chat message
2K in, 500 out
$0.14
per 1,000 requests
Coding task
30K in, 4K out
$1.82
per 1,000 requests
Long document summary
150K in, 2K out
$7.66
per 1,000 requests
Benchmarks
Llama 3.1 8B Instruct benchmark scores
Independent scores from Artificial Analysis. Higher is better.
Intelligence index
6.9
Coding index
5.4
Agentic index
Not available
Specs
Context window and capabilities
What it can read, what it can write, and which API features it supports.
- Context window
- 131K tokens
- Max output
- 118K tokens
- Input types
- Text
- Output types
- Text
- Reasoning effort
- Not available
- Release date
- July 23, 2024
- Knowledge cutoff
- December 31, 2023
- Tool calling
- Structured outputs
- JSON mode
- Reasoning
- Temperature
- Stop sequences
- Deterministic seed
- Verbosity control
Compare
Llama 3.1 8B Instruct vs other models
See how Llama 3.1 8B Instruct stacks up head to head on price, benchmarks, and features.
Llama 3.1 8B Instruct vs gpt-oss-20b
Meta vs OpenAI
See comparisonLlama 3.1 8B Instruct vs Mistral Nemo
Meta vs Mistral
See comparisonLlama 3.1 8B Instruct vs Llama 3.3 70B Instruct
Meta vs Meta
See comparisonLlama 3.1 8B Instruct vs Nova Micro 1.0
Meta vs Amazon
See comparisonLlama 3.1 8B Instruct vs Mistral Small 3
Meta vs Mistral
See comparisonLlama 3.1 8B Instruct vs Llama 4 Scout
Meta vs Meta
See comparisonMore Llama 3.1 8B Instruct comparisons
- Llama 3.1 8B Instruct vs Ministral 3 8B 2512
- Llama 3.1 8B Instruct vs Ministral 3 3B 2512
- Llama 3.1 8B Instruct vs Phi 4
- Llama 3.1 8B Instruct vs Granite 4.0 Micro
- Llama 3.1 8B Instruct vs Llama 3.1 70B Instruct
- Llama 3.1 8B Instruct vs Llama 3.2 3B Instruct
- Llama 3.1 8B Instruct vs Reka Flash 3
- Llama 3.1 8B Instruct vs Gemma 3 4B
- Llama 3.1 8B Instruct vs Llama 3.2 1B Instruct
Alternatives
Llama 3.1 8B Instruct alternatives
Similar models worth considering, and where each one has the edge.
OpenAI
gpt-oss-20b
Meta
Llama 4 Scout
Meta
Llama 3.3 70B Instruct
Want to learn about other models? Browse all models
FAQ
Frequently asked questions
How much does Llama 3.1 8B Instruct cost?
Llama 3.1 8B Instruct costs $0.05 per 1M input tokens and $0.08 per 1M output tokens through the API. A typical chat message costs about $0.14 per 1,000 messages.
What is the context window of Llama 3.1 8B Instruct?
Llama 3.1 8B Instruct accepts up to 131K tokens of input and can write up to 118K tokens in a single response.
What is the best alternative to Llama 3.1 8B Instruct?
gpt-oss-20b from OpenAI is a strong alternative. It offers: higher intelligence score, newer release.
Can I use Llama 3.1 8B Instruct alongside other models?
Yes. Shortcut Chat sends one prompt to Llama 3.1 8B Instruct and any other models you pick at the same time, so you can compare answers side by side.
Try Llama 3.1 8B Instruct next to every other model.
Use Llama 3.1 8B Instruct alongside all the other models. Use one at a time, or multiple together. Get the best answer from every AI.