Llama 3.1 8B Instruct
Provider: Meta Llama US
Input price
$0.05
/ 1M tokens
Output price
$0.08
/ 1M tokens
Cache price
$0.025
/ 1M tokens (read)
Context
131K tokens
Max output 16K tokens
Overview
Meta's budget-tier 8B instruct-tuned model for high-throughput text tasks. Features a 131k context window and native function-calling.
Strengths
- Low input cost at $0.05 per million tokens
- Competitive output pricing at $0.08 per million tokens
- Supports 131072 context window and json-mode
- Knowledge cutoff through December 2023
Best use cases
- High-volume data extraction and categorization pipelines
- Cost-sensitive structured JSON generation workloads
- Local prototyping before scaling to 70B models
Pricing position
Matches Mistral Small 3 input and output rates, but sits significantly cheaper on output than Gemma 3 12B ($0.15) and Llama 3.2 3B ($0.33).
Caveats
Context window limited to 131k tokens compared to Gemini 2.5 Flash Lite's 1M.
Notes drafted by an LLM from the figures on this page (2026-11-10) and rewritten when the price changes.
Key facts
- Price basis
- Median third-party host price (no first-party API)
- Max output
- 16K tokens
- Knowledge cutoff
- 2023-12-31
- Listed on OpenRouter
- 2024-07-23
- Tracked since
- 2026-05-08
- Last updated
- 2026-11-10
Features
Function callingJSON output
Monthly cost estimate
| Scale | Input (M) | Output (M) | Monthly |
|---|---|---|---|
| 0.1M (hobby) | 0.1 | 0.05 | $0.01 |
| 1M (small app) | 1 | 0.5 | $0.09 |
| 10M (mid scale) | 10 | 5 | $0.90 |
| 100M (large) | 100 | 50 | $9.00 |
※ Cache and batch discounts not factored in. Detailed calculator
Official resources
Other models from Meta Llama
Similar-priced models
Source: OpenRouter API (meta-llama/llama-3.1-8b-instruct)