Llama 3.1 8B Pricing
FastMeta · 131K tokens context
Llama 3.1 8B from Meta costs $0.050 per 1 million input tokens and $0.080 per 1 million output tokens as of July 2026 (live OpenRouter data). The model supports a 131,072-token context window (approximately 98,304 words) with a 4K-token maximum output. A typical 1,000-token request costs $0.0000 in input charges; a 10,000-token request costs $0.0005.
| Input price | $0.050 / 1M tokens |
|---|---|
| Output price | $0.080 / 1M tokens |
| Output / input ratio | 1.6× |
| Context window | 131,072 tokens (~98,304 words) |
| Maximum output | 4,096 tokens |
| Cost per 1K tokens (input) | $0.0000 |
| Tier | Fast |
| Last verified |
Llama 3.1 8B is the smallest open-weight Llama 3.1 model — extremely cheap to host or call, and good enough for classification, extraction, and basic chat.
Input Price
$0.050
per 1 million tokens
Output Price
$0.080
per 1 million tokens
Context Window
131K tokens
max 4K output
Cost Examples
| Request Type | Tokens | Input Cost | Output Cost |
|---|---|---|---|
| 1,000 word article | 1,333 | $0.0000666 | $0.000032 |
| 10-page document (2,500 words) | 3,333 | $0.000167 | $0.00008 |
| 1,000 lines of code | 5,000 | $0.00025 | $0.00012 |
| 100K token document | 100,000 | $0.005 | $0.0024 |
Output cost estimated at 30% of input token count. Use the calculator for exact figures.
Strengths
- ✓Among the cheapest hosted LLMs
- ✓Easy to self-host (fits on a single consumer GPU)
- ✓128K context
Limitations
- –Limited reasoning
- –Not for complex generation
Best Use Cases
Calculate Llama 3.1 8B Costs
Use the TokenRate calculator to convert any budget, token count, or text into exact Llama 3.1 8B costs — and compare across all models.
Open Calculator →Llama 3.1 8B — FAQ
Related Models
Related Guides