Llama-3.1-8B-Instruct pricing & specs
Meta · released 2024-07-23 · ● verified 2026-11-29
Llama-3.1-8B-Instruct is a Meta model released on 2024-07-23. At $0.02 per million input tokens and $0.04 per million output tokens, its blended price of $0.025 per 1M tokens is lower than 99% of the 178 models we track. It offers text input, a 131.1K-token context window and tool calling. Its weights are open, and it is available from 4 tracked hosting providers.
Ranked #1 of 20 in Cheapest Claude Alternatives, #1 of 20 in Cheapest GPT Alternatives, #1 of 20 in Cheapest Models With Tool Calling and #2 of 14 in Cheapest Llama Models.
// price history ($/1M tokens)
Tracks the selected provider’s quote, which may change providers over time.
// cheaper or similar alternatives
| model | in | out | ctx | vs Llama-3.1-8B-Instruct |
|---|---|---|---|---|
| Mistral Nemo | $0.029 | $0.03 | 131.1K | +17.2% |
| Gemma 4 E2B IT | $0.04 | $0.08 | 131.1K | +100% |
| Qwen3.7 Flash | $0.03 | $0.13 | 1M | +120% |
| GPT OSS 20B | $0.03 | $0.14 | 131.1K | +130% |
| Command R7B | $0.0375 | $0.15 | 128K | +162.4% |
// price by host
| host | in $/1M | out $/1M |
|---|---|---|
| DeepInfra | $0.02 | $0.04 |
| Novita AI | $0.02 | $0.05 |
| Groq | $0.05 | $0.08 |
| Amazon Bedrock | $0.22 | $0.22 |
// embed this price badge
Show the live price of Llama-3.1-8B-Instruct in your README or docs (updated daily):
[](https://aisignals.dev/models/meta/llama-3.1-8b-instruct)
// faq
How much does Llama-3.1-8B-Instruct cost?
Llama-3.1-8B-Instruct costs $0.02 per million input tokens and $0.04 per million output tokens (cheapest tracked host: DeepInfra). At 50M input and 10M output tokens per month that is about $1.40.
What is the context window of Llama-3.1-8B-Instruct?
131.1K tokens, with up to 4.1K output tokens per request.
Is Llama-3.1-8B-Instruct open weights?
Yes. It is available from 4 tracked hosts; the cheapest is DeepInfra at $0.02 input and $0.04 output per million tokens.
// spec sheet
- input / 1M
- $0.02
- output / 1M
- $0.04
- blended (3:1)
- $0.025
- context
- 131.1K
- max output
- 4.1K
- input types
- text
- reasoning
- no
- tool calling
- yes
- structured output
- no
- open weights
- yes
- knowledge cutoff
- 2023-12
- price source
- DeepInfra
// cost calculator
| model | in $/1M | out $/1M | = monthly |
|---|---|---|---|
| Llama-3.1-8B-Instruct | $0.02 | $0.04 | $1.40 |
| Mistral Nemo | $0.029 | $0.03 | $1.75 |
| Gemma 4 E2B IT | $0.04 | $0.08 | $2.80 |
| Qwen3.7 Flash | $0.03 | $0.13 | $2.80 |
Base-tier list prices. Long-context tiers, caching and batch discounts are not included.