Compute Comparison
Meta/Llama 3BudgetOpen Weights

llama-3-8b

costspeed
llama-3-8b Pricing per 1M tokens
Input$0.040
Output$0.040
View Meta
Context Window
8K
tokens
llama-3-8b Max Output
4K
tokens
llama-3-8b Throughput
450
tokens/sec
llama-3-8b Latency P50
110ms
time to first token
llama-3-8b Parameters
8B
Parameters
About llama-3-8b

llama-3-8b is a budget-tier language model from Meta with 8B parameters. llama-3-8b is an open-weights model, meaning the weights are publicly available for self-hosting, fine-tuning, and deployment on your own infrastructure — not just through Meta's API. Llama 3 is Meta's open-weights model family, available in 8B and 70B sizes — the most widely deployed open-weights models, with strong community support and broad framework compatibility.

llama-3-8b is priced at $0.04/1M input tokens and $0.04/1M output tokens. Output tokens are 1× more expensive than input tokens — this ratio reflects the sequential nature of autoregressive generation, which requires a separate forward pass per output token versus parallel processing of all input tokens simultaneously. At a typical usage pattern of 1,000 input tokens and 500 output tokens per call, llama-3-8b costs approximately $0.06 per 1,000 API calls. Meta does not publish a prompt caching rate for this model, so repeated long contexts are billed at the standard $0.04/1M input rate.

Its 8K-token context window is standard for this tier — adequate for most chat and completion tasks, but may require chunking for long-document workloads. Median latency (P50 time-to-first-token) is approximately 110ms — fast enough for real-time interactive applications. Throughput is approximately 450 tokens/second — fast enough to stream responses at reading speed with headroom for concurrent requests. Maximum output length is 4K tokens — adequate for most generation tasks including essays, code functions, and detailed responses.

llama-3-8b is best suited to cost, speed. Supported capabilities include streaming token output for real-time UIs. When evaluating this model for a specific workload, the most important factors are: context window (does your input fit?), output price (how long are your generations?), and latency (is this interactive or batch?). The pricing table above shows how llama-3-8b compares to similar models across these dimensions.

llama-3-8b sits in the budget tier — the most cost-efficient models, best for high-volume simple tasks, classification, extraction, and applications where cost per call is the primary constraint. As an open-weights model, llama-3-8b can be self-hosted on GPU compute (see the GPU rental comparison on this site) to eliminate per-token API costs entirely — the break-even point versus API pricing depends on your volume and the GPU hourly rate. When comparing llama-3-8b to alternatives, use the similar models section on this page to find models at comparable price points with different capability tradeoffs. The intelligence score (46/100) reflects aggregate benchmark performance — a useful proxy for general capability, though real-world performance varies significantly by task type. Always test with your specific prompts and use case before committing to a model for production.

llama-3-8b Intelligence Score
46/100
46

Composite quality score based on reasoning, coding, and instruction-following benchmarks.

llama-3-8b Pricing vs Budget Tier
CheapestThis modelMost expensive
$0.020$0.040$0.500

Input price vs 119 budget models tracked. Avg: $0.110/1M.

llama-3-8b Capabilities
Vision / Images✗
Function Calling✗
Streaming✓
Prompt Caching✗
Reasoning / CoT✗
Open Weights✓
Computer Use✗
Web Search✗
llama-3-8b Full Specifications
Model IDllama-3-8b
ProviderMeta
Model FamilyLlama 3
TierBudget
Context Window8,192 tokens (8K)
Max Output Tokens4,096 tokens
Input Price$0.04 / 1M tokens
Output Price$0.04 / 1M tokens
Cached Input PriceNot available
Throughput450 tokens/sec
Latency (P50)110ms
Intelligence Score46/100
LiveBench Score—
Cost per Task (LiveBench)—
Data Confidence—
HLE Score—
GPQA Diamond—
SWE-bench Score—
OSWorld Score—
BrowseComp Score—
Terminal-Bench Score—
AutoBench Score—
Parameters8B
Vision SupportNo
Function CallingNo
StreamingYes
Reasoning ModelNo
Open WeightsYes
Data SourceStatic (verified)
Last Updated2026-07-01

Similar Models by Intelligence Score

llama-3-8b Frequently Asked Questions