Skip to content
llmmodels
Chat LLMOpen weightsTool callingStructured outputFree tier

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 →

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

ProviderInput $/1MOutput $/1MCached inputContext
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.22128K
Vercel AI Gateway$0.22$0.22—125K
Amazon Bedrock(deprecated)$0.22$0.22—125K
Atomic ChatFreeFree—128K
NanoGPT$0.02$0.04$0.01128K
Abacus(deprecated)$0.02$0.05—125K
Kilo Gateway$0.02$0.04—128K
Kitani$0.049$0.076$0.0248K
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

Alternatives to Llama-3.1-8B-Instruct
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
Gemma 2 9BopenGoogle DeepMindJun 20249.2B———112.4
Llama 3-8BopenMetaApr 20248B———109.1
Mistral NemoopenMistral AIJul 202412B128K$0.029$0.03113.9
Gemma 7BopenGoogle DeepMindFeb 20248.5B———103.2
Yi-9Bopen01.AIMar 20248.8B———102.2
Mistral-7B-v0.1openMistral AISep 20237.2B———102.7
Stable Beluga 2openStability AIJul 202370B———109.4
DeepSeek-Coder-V2-Lite-BaseopenDeepSeekJun 202416B———99.4

More models from Meta

All Meta models →
ModelReleasedParamsContextInput $/1MOutput $/1M
Muse Spark 1.3 ContributorSep 2026—1M$0.1$0.2
Llama-3.3-70B-InstructopenDec 202471B128K$0.71$0.71
Muse Spark OpenopenOct 2026816B1M$1.25$4.25
Muse Spark 1.2Aug 2026—1M$0.1$0.2
Muse WonderOct 2026—1M$4$20
Muse Spark 1.1Apr 2026—1M$1.25$4.25
Llama 4 MaverickopenApr 2025402B512K$0.35$1
Llama 4 ScoutopenApr 2025109B320K$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.