Context
131K
Max output
131K
Serving providers
5
Cheapest input
$0.03 /1M
On-demand listed rates, OpenRouter routed quotes and Vercel reseller quotes. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower.
Pricing by serving provider
standard tier · per 1M tokens · click a provider to expandInput pricing runs from $0.03 to $0.24 per 1M tokens across 5 providers, so the dearest route costs 700% more than the cheapest for the same model.
| Serving provider | Input /1M | Output /1M | Endpoints | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LlamagateCheapest | $0.03 | $0.05 | 1 | ||||||||||
Standardllamagate/llama-3.1-8b
| |||||||||||||
| Cerebras | $0.10 | $0.10 | 1 | ||||||||||
Standardcerebras/llama3.1-8b
| |||||||||||||
| Together AI | $0.20 | $0.20 | 1 | ||||||||||
Standardtogether_ai/meta-llama/Meta-Llama-3.1-8B
| |||||||||||||
| VercelVercel reseller quote | $0.22 | $0.22 | 1 | ||||||||||
Standardmeta/llama-3.1-8b
| |||||||||||||
| Snowflake | $0.24 | $0.24 | 1 | ||||||||||
Standardsnowflake/llama3.1-8b
| |||||||||||||
Price history
listed seller prices, input and output per 1M tokens Input Output
Input down 70% since first tracked
Cost calculator
estimate your monthly spend on this model$10
estimated / month
Model IDs
copy the exact identifier for your platformllamagate/llama-3.1-8bcerebras/llama3.1-8btogether_ai/meta-llama/Meta-Llama-3.1-8Bmeta/llama-3.1-8bsnowflake/llama3.1-8b
Frequently asked questions
Llama 3.1 8B pricing, context and availabilityHow much does Llama 3.1 8B cost?
Llama 3.1 8B costs $0.03 per 1M input tokens from Llamagate, and $0.05 per 1M output tokens from Llamagate. Across 5 serving providers, input prices range from $0.03 to $0.24 per 1M tokens.
What is the context window of Llama 3.1 8B?
Llama 3.1 8B accepts up to 131K tokens of context and can return up to 131K output tokens.
Which providers serve Llama 3.1 8B?
Llama 3.1 8B is available from 5 serving providers, each with its own pricing and model ID. Llamagate is currently the cheapest.
What can Llama 3.1 8B do?
Llama 3.1 8B supports tool use and structured output.
Other Meta models
compare pricing across the Meta lineupLlama 3.3 70B Instruct$0.12/1M · 18 providersLlama 3.1 8B Instruct$0.02/1M · 17 providersLlama 3.1 70B Instruct$0.12/1M · 12 providersLlama 3.2 3B Instruct$0.015/1M · 11 providersLlama 4 Scout 17B 16e Instruct$0.05/1M · 11 providersLlama 3.1 405B Instruct$0.12/1M · 9 providersLlama 3 70B Instruct$0.12/1M · 9 providersLlama 3.2 1B Instruct$0.02/1M · 8 providers
Listed prices from LiteLLM, OpenRouter and Vercel · last checked Oct 14, 2026
Every weekday
AI moves fast. Here's your debrief.
News, analysis, tools, and more.
For people who build with AI