Home / meta-llama / Meta: Llama 3.1 8B Instruct
Meta: Llama 3.1 8B Instruct API Pricing & Cost Calculator
Meta's latest class of model (Llama 3.1) launched with a variety of sizes & flavors. This 8B instruct-tuned version is fast and efficient. It has demonstrated strong performance compared to...
CachingOpen-Weight meta-llama/llama-3.1-8b-instruct
Input / 1M
$0.050
Output / 1M
$0.080
Cache Read / 1M
$0.025
Blended 3:1 / 1M
$0.058
Agent Cached / 1M
$0.040
Context Window
131.1K
Monthly Workload Cost Calculator
Daily
$0.196
Monthly
$5.89
Cache Saved
$2.81
Annual
$71.63
Benchmarks & Capabilities
| Intelligence Index | — |
|---|---|
| Coding / Engineering | — / — |
| Agentic Index | — |
| Design Arena Avg ELO | — |
| Value Score | — |
| Modality | text->text |
| Max Output | 118.0K |
5 Cheaper Alternatives to Meta: Llama 3.1 8B Instruct
| Alternative Model | Blended / 1M | Input / 1M | Output / 1M | Intel | Side-by-Side |
|---|---|---|---|---|---|
| Z.ai: GLM 5.3 Flash (batch) z-ai/glm-5.3-flash:batch |
$0.034 | $0.023 | $0.068 | 28 | Compare → |
| OpenAI: gpt-oss-120b (batch) openai/gpt-oss-120b:batch |
$0.056 | $0.030 | $0.136 | 4 | Compare → |
| Upstage: Solar Mini 4.5 upstage/solar-mini-4-5 |
$0.018 | $0.010 | $0.040 | — | Compare → |
| Mistral: Mistral Nemo mistralai/mistral-nemo |
$0.029 | $0.029 | $0.030 | — | Compare → |
| ScaleDown: Summarize scaledown/summarize |
$0.030 | $0.040 | $0.00 | — | Compare → |
Frequently Asked Questions
How much does Meta: Llama 3.1 8B Instruct API cost per 1M tokens?
Meta: Llama 3.1 8B Instruct (meta-llama/llama-3.1-8b-instruct) costs $0.050 per 1M input tokens and $0.080 per 1M output tokens (3:1 blended price: $0.058 per 1M tokens).
Does Meta: Llama 3.1 8B Instruct support prompt caching and how much does it save?
Yes. Cached input reads cost $0.025 per 1M tokens, bringing realistic 80%-cached agent loop cost down to $0.040 per 1M tokens.
What is the context window and maximum output of Meta: Llama 3.1 8B Instruct?
Meta: Llama 3.1 8B Instruct supports a 131.1K token context window (131,072 tokens) and up to 118.0K output tokens per completion.
Fetch Live JSON via API
curl -s "https://llm.lhblabs.com/api/v1/models/meta-llama-llama-3-1-8b-instruct"
Recommended Stack: DigitalOcean
Predictable Droplets, managed databases, and GPU nodes for production AI workloads.
Try DigitalOcean →
Self-Serve Placement
Building an LLM API, GPU Cloud, or AI Dev Tool?
Book Sponsor Slot →
Feature your product across 1,500+ LLM pricing & comparison pages starting at $49/mo.