
Meta: Llama 3.1 8B Instruct
meta-llama/llama-3.1-8b-instruct
Model weightsMeta'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 leading closed-source models in human evaluations.
To read more about the model release, click hereOpens in new tab. Usage of this model is subject to Meta's Acceptable Use PolicyOpens in new tab.
Providers
Different companies host the same model. OpenRouter routes your request to one of them based on the routing mode you pick: Balanced (price + speed), Nitro (fastest), or Floor (cheapest).
| $0.020 | $0.040 | -- | 0.75s | 22 tok/s | ||
| $0.050 | $0.080 | $0.025 | 0.13s | 346 tok/s | ||
| $0.220 | $0.220 | $0.220 | 0.19s | 137 tok/s | ||
| $0.152 | $0.287 | -- | 0.43s | 18 tok/s |
Input $0.02 / Output $0.0422 tok/s99.91% uptime- Input $0.05 / Output $0.08346 tok/s99.73% uptime
- Input $0.22 / Output $0.22137 tok/s100.00% uptime
- Input $0.152 / Output $0.28718 tok/s98.68% uptime
Pricing
The average price customers actually pay for this model, next to the prices providers post. Caching and discounts mean the price actually paid is often well below the listed one.
Weighted average
Llama 3.1 8B Instruct — Price history
| $0.0195 | $0.0373 | 0.0% | 70.0% | ||
| $0.0437 | $0.0771 | 24.1% | 8.5% | ||
| $0.1513 | $0.2822 | 0.0% | 0.8% | ||
| $0.2197 | $0.2137 | 12.2% | 20.7% |
- Effective in $0.0195 / Effective out $0.0373Token share70.0%
- Effective in $0.0437 / Effective out $0.0771Token share8.5%
- Effective in $0.1513 / Effective out $0.2822Token share0.8%
- Effective in $0.2197 / Effective out $0.2137Token share20.7%
Performance
Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better).
P50, best across providers
P50, best provider
Uptime
Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.
Availability over the last 3 days
Last 72 hoursAvailability over the last 24 hours
When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it. You can access per-provider uptime data programmatically through the Endpoints API. Learn more about our load balancing and provider routing options.
Benchmarks
Scores on standardized evaluations and this model’s own outputs on shared benchmark prompts. Higher percentages are better — and each rank shows where this model lands among the models evaluated on that source.
| Source | Benchmark | Score |
|---|---|---|
| Artificial Analysis | Llama 3.1 Instruct 8B Coding Index | 5.4 |
| Artificial Analysis | Llama 3.1 Instruct 8B GPQA Diamond | 25.9% |
| Artificial Analysis | Llama 3.1 Instruct 8B HLE | 5.3% |
| Artificial Analysis | Llama 3.1 Instruct 8B IFBench | 28.6% |
| Artificial Analysis | Llama 3.1 Instruct 8B τ²-Bench Telecom | 16.4% |
| Artificial Analysis | Llama 3.1 Instruct 8B AA-LCR | 18.0% |
| Artificial Analysis | Llama 3.1 Instruct 8B GDPval-AA | 0.0% |
| Artificial Analysis | Llama 3.1 Instruct 8B CritPt | 0.0% |
| Artificial Analysis | Llama 3.1 Instruct 8B LiveCodeBench | 11.6% |
| Artificial Analysis | Llama 3.1 Instruct 8B Terminal-Bench Hard | 0.8% |
| Artificial Analysis | Llama 3.1 Instruct 8B Terminal-Bench 2.1 | 1.5% |
| Artificial Analysis | Llama 3.1 Instruct 8B MMLU-Pro | 47.6% |
| Artificial Analysis | Llama 3.1 Instruct 8B AIME 2025 | 4.3% |
| Artificial Analysis | Llama 3.1 Instruct 8B AIME | 7.7% |
| Artificial Analysis | Llama 3.1 Instruct 8B MATH-500 | 51.9% |
Apps
Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.
Activity
Token volume and request traffic to this model over time.
API
Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.
Not currently available through EU in-region routing. In-region routing docs
Frequently asked questions
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 leading closed-source models in human evaluations. To read more about the model release, click here. Usage of this model is subject to Meta's Acceptable Use Policy.
Llama 3.1 8B Instruct costs $0.02/M input tokens and $0.04/M output tokens.
Llama 3.1 8B Instruct has a 131,072 token context window. It supports up to 16,384 completion tokens.
Yes. Llama 3.1 8B Instruct accepts tools and tool_choice for function calling on 2 of the 4 providers serving it, and requests that send tools are routed to those providers. It also supports structured outputs via a JSON schema in response_format.
Llama 3.1 8B Instruct is served by 4 providers on OpenRouter: DeepInfra, Groq, Cloudflare, and CoreWeave. Requests are routed to the best available provider, with automatic failover to the others, and you can pin or exclude providers with provider routing.
Llama 3.1 8B Instruct was released on July 23, 2024. Its knowledge cutoff is December 31, 2023.