Llama 3.1 8B API Pricing
Open-weight · 128K context · Available from 7 hosts. Cheapest: Novita at $0.04 input / $0.064 output per 1M tokens.
Among Meta's 10 open-weight models tracked here, Llama 3.1 8B ($0.05/$0.08 per 1M tokens) is above Llama 3.2 3B ($0.06/$0.06) and below Llama Guard 3 8B ($0.2/$0.2).
Llama 3.1 8B price by host (7 providers)
| Host | Input /1M | Output /1M | In+Out |
|---|---|---|---|
| Novita | $0.04 | $0.064 | $0.104 |
| DeepInfra | $0.0425 | $0.068 | $0.1105 |
| Groq | $0.0475 | $0.076 | $0.1235 |
| Meta | $0.05 | $0.08 | $0.13 |
| Together | $0.05 | $0.08 | $0.13 |
| OpenRouter | $0.05 | $0.08 | $0.13 |
| Fireworks | $0.0525 | $0.084 | $0.1365 |
Prices per 1M tokens, USD. Snapshot 2026-07 — verify with the provider before relying on them.
Llama 3.1 8B cost calculator
Frequently asked
Llama 3.1 8B costs $0.04 per 1M input tokens and $0.064 per 1M output tokens at its cheapest host (Novita).
Llama 3.1 8B supports a context window of about 128K tokens. Remember every token in the context is billed on each call.
Across 7 hosts, Novita is currently cheapest at $0.04/$0.064 per 1M tokens, versus Fireworks at $0.0525/$0.084. Prices change often — use the comparison table above.