Meta
Llama 3.1 8B Instruct pricing and cost calculator
Llama 3.1 8B Instruct from Meta costs $0.05 per million input tokens and $0.08 per million output tokens, with a context window of 131,072 tokens. It was released on Jul 23, 2024. Cached input tokens are billed at $0.025 per million.
- Input price
- $0.05
- Output price
- $0.08
- Context window
- 131,072
- Released
- Jul 23, 2024
Token cost calculator
| Model | Per request | Per day | Per month (30 days) |
|---|---|---|---|
| Llama 3.1 8B Instruct | $0.00009 | $0.09 | $2.70 |
| Qwen3.7 Flash | $0.0001 | $0.095 | $2.85 |
Token estimate: about 4 characters per token for English, about 1 token per character for Chinese, Japanese and Korean. Exact counts depend on each model's tokenizer.
Price and specs
| Input price | $0.05 / 1M |
|---|---|
| Output price | $0.08 / 1M |
| Cached input | $0.025 / 1M |
| Context window | 131,072 |
| Max output | 117,964 |
| Accepts | text |
| Produces | text |
| Reasoning mode | No |
| Tool / function calling | Yes |
| Structured (JSON) output | Yes |
| Open weights | Yes |
| Released | Jul 23, 2024 |
What typical workloads cost
| 1,000 chat replies (1,000 input + 500 output tokens each) | $0.09 |
|---|---|
| Summarise a 100-page document (≈50,000 input + 1,000 output tokens) | $0.0026 |
| 1 million input + 1 million output tokens | $0.13 |
Prices are list prices in USD per 1 million tokens from OpenRouter's public model list, refreshed daily. Direct provider prices, batch discounts and regional pricing may differ.
Cheaper models with at least the same context window
- Qwen3.7 Flash$0.03 / $0.13
- gpt-oss-20b$0.03 / $0.13
- Gemma 3 4B$0.04 / $0.05
- Mistral Nemo$0.029 / $0.03
Similarly priced models from other providers
- Mistral Small 3$0.05 / $0.08
- Qwen3.7 Flash$0.03 / $0.13
- gpt-oss-20b$0.03 / $0.13
- Nova Micro 1.0$0.035 / $0.14
- Hy4 flash$0.035 / $0.141
- Command R7B (12-2024)$0.038 / $0.15
More Meta models
- Muse Ember$0.10 / $0.50
- Muse Spark Open$1.25 / $4.25
- Muse Wonder$4 / $20
- Muse Spark 1.3$1.25 / $4.25
- Muse Spark 1.3 Contributor$0.10 / $0.20
- Muse Spark 1.2 Contributor$0.10 / $0.20
- Muse Glimmer 30B$0.35 / $1.50
- Muse Spark 1.2$1.25 / $4.25
About 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...
Llama 3.1 8B Instruct FAQ
- 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. 1,000 replies with 1,000 input and 500 output tokens each cost about $0.09.
- What is the context window of Llama 3.1 8B Instruct?
- Llama 3.1 8B Instruct accepts up to 131,072 tokens of context and can return up to 117,964 tokens in one response.
- Can Llama 3.1 8B Instruct read images?
- No. Llama 3.1 8B Instruct accepts text as input.
- What is a cheaper alternative to Llama 3.1 8B Instruct?
- Cheaper models with at least the same context window include Qwen3.7 Flash, gpt-oss-20b, Gemma 3 4B.