LLM Reference

Llama 3.1 8B Instruct

Released
2024-07-23
Last refreshed
2026-07-11
Status
Researched 90d ago
Open weightsCommercial use: conditionalRAGLong contextClassificationJSON / Tool use

Llama 3.1 8B Instruct is worth evaluating for rag, long context, and classification when its provider route and context window match the workload.

Use it for

  • Teams evaluating rag, long context, and classification
  • Workloads that can use a 128k context window
  • Buyers comparing 4 tracked provider routes

Do not use it for

  • Vision or document-understanding workloads
Specifications
Family
Llama 3.1
Released
2024-07-23
Context
128k
Parameters
8B
Architecture
Decoder Only
Knowledge cutoff
2023-12
Specialization
general
Openness
Open weights
License
Llama 3 CommunityCommercial use: conditional
Weights
Available
Code
Unknown
Training
Fine-tuned
Created by

Large-scale open-source AI for social technologies.

Menlo Park, California, United States
Founded 2013
Website
Pricing
Output / 1M
$0.050
Input / 1M
$0.020

Cheapest of 16 routes · DeepInfra

About

The Llama 3.1 8B Instruct model, released on July 23, 2024, is a multilingual large language model with 8 billion parameters, optimized for instruction-following tasks. It features an enhanced transformer architecture, supporting languages like English, German, French, and others. The model excels in dialogue applications, having been fine-tuned using supervised fine-tuning and reinforcement learning with human feedback. Trained on approximately 15 trillion tokens with a December 2023 data cutoff, it outperforms many existing open-source and closed chat models in various benchmarks. Ideal for commercial and research applications such as conversational agents and content generation, the model can be accessed on Hugging Face .

Llama 3.1 8B Instruct is an open-weight model in the Llama 3.1 family. The structured metadata tracks a 128k-token context window and structured outputs. This page tracks provider routes through Cloudflare Workers AI, OctoAI API (Deprecated), Together AI, and 13 more, with the cheapest tracked route listed at $0.02 input and $0.05 output per 1M tokens. Headline tracked benchmarks include BFCL 25.8 and MMLU PRO 44.3.

Top use-case fit

RAG

Included by capability and metadata signals in the decision map.

Long context

Included by capability and metadata signals in the decision map.

Classification

Q/$ A

1 relevant benchmark in the decision map.

Provider price ladder

Compare all 16

Compare API pricing across 4 providers for input and output tokens, batch, and cached reads when available.

ProviderInput / 1MOutput / 1MRoute
DeepInfra$0.020$0.050
Serverless
Novita AI$0.020$0.050
Serverless
OpenRouter$0.020$0.050
Serverless
GroqCloud$0.050$0.080
Serverless

Available via routers & gateways(8)

Capabilities

Structured Outputs

Benchmark peer barsfor Classification

Benchmark scores(2)

Scores are benchmark-specific and are direction-aware: the same numeric gap can mean very different outcomes across suites. Use the leaderboard context and this model's provider route to decide whether the winning margin is meaningful for your workload.
BenchmarkScoreVersionEvaluationSource
BFCL25.8v4Observed 2026-04-14Source
MMLU PRO44.3Observed 2026-04-14Source

Migration checks

No linked migration route is available for this model yet.

Compare Llama 3.1 8B Instruct with other models

Frequently asked questions

What is the context window of Llama 3.1 8B Instruct?

Llama 3.1 8B Instruct has a context window of 128k tokens.

How much does Llama 3.1 8B Instruct cost?

Llama 3.1 8B Instruct pricing ranges from $0.02/1M to $0.3/1M input tokens depending on the provider.

When was Llama 3.1 8B Instruct released?

Llama 3.1 8B Instruct was released on 2024-07-23.

Which providers offer Llama 3.1 8B Instruct?

Llama 3.1 8B Instruct is available from 16 providers: Cloudflare Workers AI, OctoAI API (Deprecated), Together AI, Fireworks AI, NVIDIA NIM, GroqCloud, Microsoft Foundry, Databricks Foundation Model Serving, Hyperbolic AI Inference, OpenRouter, IBM watsonx, AWS Bedrock, Replicate API, Vercel AI Gateway, Novita AI, DeepInfra.

What benchmarks has Llama 3.1 8B Instruct been tested on?

Llama 3.1 8B Instruct has been evaluated on 2 benchmarks, including BFCL, MMLU PRO.