Llama 3 8B
ActiveSmaller open-weights Llama for on-device and cost-sensitive use.
Overview
Llama 3 8B is the smaller open-weights variant suitable for local deployment, fine-tuning, and low-cost inference.
History
Llama 3 8B was released on 2024-04-18.
Training & availability
Weights are publicly available under the Llama 3 Community License license, making this an open-weight model suitable for on-prem deployment and fine-tuning.
Capabilities
-
Context window: 128K tokens.
-
Max output: 8K tokens.
-
Input modalities: text.
Recommended for: agentic, open-source.
Limitations
- Text-only — cannot process images, audio, or video inputs.
Quick start
Minimal example using the OpenRouter API. Copy, paste, replace the key.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="sk-or-...",
)
resp = client.chat.completions.create(
model="meta/llama-3-8b",
messages=[{"role": "user", "content": "Explain quantum computing in one sentence."}],
)
print(resp.choices[0].message.content)Cost calculator
Estimate your monthly bill. Presets are typical workload sizes.
Integrations & tooling support
- Tool calling
- Supported
- Structured outputs
- Not supported
Price vs quality
Priced low — good for high-volume tasks. Quality tier pending more benchmark coverage.
- Quality percentile
- —
- Effective price
- $0.0375/1M
- Pricing breakdown
- $0.03/1M in
$0.04/1M out
Community ratings
Rate Llama 3 8B
Sign in to rate and review.
Comments
Sign in to leave a comment.