Llama-3.1-8B-Instruct
by Meta · Jul 23, 2024
Llama-3.1-8B-Instruct is an open-weight chat llm from Meta, released Jul 23, 2024. It has 8B parameters and a 128K-token context window. API pricing starts at $0.02 per million input tokens and $0.04 per million output tokens. It is available from 19 API providers. It scores 110.9 on the Epoch Capabilities Index.
- Provider
- Meta
- Released
- Jul 23, 2024
- Type
- Chat LLM
- Parameters
- 8B
- Context window
- 131,072 tokens
- Max output
- 16,384 tokens
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- llama3.1
- Knowledge cutoff
- Dec 2023
- Status
- Available via API
- Training compute
- 1.2e+24 FLOP
- HF downloads (30d)
- 4M
About Llama-3.1-8B-Instruct
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...
Llama-3.1-8B-Instruct benchmarks
All benchmarks →- Epoch Capabilities Index110.9
- GPQA Diamond27.0%
- OTIS Mock AIME1.7%
- MATH Level 522.9%
- MMLU56.1%
- GSM8K82.4%
Scores from the Epoch AI Benchmarking Hub (best reported setting). ECI = Epoch Capabilities Index.
Where to run Llama-3.1-8B-Instruct — API providers & pricing
| Provider | Input $/1M | Output $/1M | Cached input | Context |
|---|---|---|---|---|
| OpenRouter | $0.02 | $0.04 | — | 128K |
| Helicone | $0.02 | $0.03 | — | 125K |
| Novita AI | $0.02 | $0.05 | — | 16K |
| Inference(deprecated) | $0.025 | $0.025 | — | 16K |
| Groq(deprecated) | $0.05 | $0.08 | — | 128K |
| Hugging Face | $0.06 | $0.06 | — | 128K |
| Poe | $0.1 | $0.1 | — | 125K |
| Cloudflare Workers AI(deprecated) | $0.152 | $0.287 | — | 32K |
| CoreWeave | $0.22 | $0.22 | $0.22 | 128K |
| Vercel AI Gateway | $0.22 | $0.22 | — | 125K |
| Amazon Bedrock(deprecated) | $0.22 | $0.22 | — | 125K |
| Atomic Chat | Free | Free | — | 128K |
| NanoGPT | $0.02 | $0.04 | $0.01 | 128K |
| Abacus(deprecated) | $0.02 | $0.05 | — | 125K |
| Kilo Gateway | $0.02 | $0.04 | — | 128K |
| Kitani | $0.049 | $0.076 | $0.024 | 8K |
| Neon | $0.15 | $0.45 | — | 128K |
| ZeroGPU | $0.15 | $0.28 | — | 128K |
| Merge Gateway | $0.22 | $0.22 | — | 125K |
Open weights: you can also run Llama-3.1-8B-Instruct locally with Ollama, LM Studio, llama.cpp or vLLM, from Hugging Face.
Llama-3.1-8B-Instruct vs alternatives
- Llama-3.1-8B-Instruct vs Gemma 2 9B
- Llama-3.1-8B-Instruct vs Llama 3-8B
- Llama-3.1-8B-Instruct vs Mistral Nemo
- Llama-3.1-8B-Instruct vs Gemma 7B
- Llama-3.1-8B-Instruct vs Yi-9B
- Llama-3.1-8B-Instruct vs Mistral-7B-v0.1
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| Gemma 2 9Bopen | Google DeepMind | Jun 2024 | 9.2B | — | — | — | 112.4 |
| Llama 3-8Bopen | Meta | Apr 2024 | 8B | — | — | — | 109.1 |
| Mistral Nemoopen | Mistral AI | Jul 2024 | 12B | 128K | $0.029 | $0.03 | 113.9 |
| Gemma 7Bopen | Google DeepMind | Feb 2024 | 8.5B | — | — | — | 103.2 |
| Yi-9Bopen | 01.AI | Mar 2024 | 8.8B | — | — | — | 102.2 |
| Mistral-7B-v0.1open | Mistral AI | Sep 2023 | 7.2B | — | — | — | 102.7 |
| Stable Beluga 2open | Stability AI | Jul 2023 | 70B | — | — | — | 109.4 |
| DeepSeek-Coder-V2-Lite-Baseopen | DeepSeek | Jun 2024 | 16B | — | — | — | 99.4 |
More models from Meta
All Meta models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| Muse Spark 1.3 Contributor | Sep 2026 | — | 1M | $0.1 | $0.2 |
| Llama-3.3-70B-Instructopen | Dec 2024 | 71B | 128K | $0.71 | $0.71 |
| Muse Spark Openopen | Oct 2026 | 816B | 1M | $1.25 | $4.25 |
| Muse Spark 1.2 | Aug 2026 | — | 1M | $0.1 | $0.2 |
| Muse Wonder | Oct 2026 | — | 1M | $4 | $20 |
| Muse Spark 1.1 | Apr 2026 | — | 1M | $1.25 | $4.25 |
| Llama 4 Maverickopen | Apr 2025 | 402B | 512K | $0.35 | $1 |
| Llama 4 Scoutopen | Apr 2025 | 109B | 320K | $0.1 | $0.3 |
Frequently asked questions
Who made Llama-3.1-8B-Instruct?
Llama-3.1-8B-Instruct was developed by Meta (United States of America). It was released on Jul 23, 2024.
What is the context window of Llama-3.1-8B-Instruct?
Llama-3.1-8B-Instruct supports a context window of 131,072 tokens (128K) and can generate up to 16,384 output tokens per response.
How much does Llama-3.1-8B-Instruct cost?
Llama-3.1-8B-Instruct costs $0.02 per 1M input tokens and $0.04 per 1M output tokens. Prices vary across the 19 providers that serve it.
Is Llama-3.1-8B-Instruct open source?
Yes. Llama-3.1-8B-Instruct's weights are publicly available under the llama3.1 license on Hugging Face (meta-llama/Llama-3.1-8B-Instruct), so you can download and run it yourself.
How many parameters does Llama-3.1-8B-Instruct have?
Llama-3.1-8B-Instruct has 8B parameters.
How does Llama-3.1-8B-Instruct perform on benchmarks?
Llama-3.1-8B-Instruct scores 27.0% on GPQA Diamond, 22.9% on MATH Level 5, 1.7% on OTIS Mock AIME and 56.1% on MMLU.
Where can I use Llama-3.1-8B-Instruct?
Llama-3.1-8B-Instruct is available via 19 API providers, and you can also self-host it with tools like vLLM, Ollama or LM Studio.
Sources: epoch, huggingface, models.dev, openrouter · paper · huggingface · openrouter. Last updated 2026-11-22.