Llama 3.1 8B Instruct is Meta's language model with a 200K context window and up to 128K output tokens, available from 16 providers, starting at $0.02 / 1M input and $0.03 / 1M output. Meta's 8B instruction-tuned LLM optimized for fast, cost-effective deployment across multiple cloud regions with strong instruction-following performance.
Specifications
Canonical IDmeta-llama-3-1-8b-instruct
TypeLanguage
StatusDeprecated
CreatorMetaMeta
Providers
Context Window200K tokens
Max Output128K tokens
Input ModalitiesImageText
Output ModalitiesText
Parameters8B
HuggingFace Likes5,731
HuggingFace Downloads (30d)9,306,502
HuggingFace Downloads (all-time)140,394,735
Release Date · 2 years ago
Knowledge Cutoff · 3 years ago
Deprecation Date
Benchmarks
Intelligence Index
#434
Coding Index
#204
Math Index
#254
MMLU-Pro
#297
GPQA
#518
HLE
#367
LiveCodeBench
#301
AIME
#140
IFBench
#373
Time to First Token
#389
SciCode
#473
MATH-500
#164
AIME 2025
#254
LCR
#367
TerminalBench Hard
#360
TAU2
#357
Output TPS
#82

Capabilities

Input2/5
Text✓
Image✓
Audio·
Video·
PDF·
Output1/5
Text✓
Image·
Audio·
Video·
Embedding·
Capabilities5/13
Reasoning·
Adaptive Reasoning·
Function Calling✓
Parallel Function Calling✓
Structured Outputs✓
Native JSON Schema✓
Web Search·
URL Context·
Computer Use·
Code Execution·
File Search·
Prompt Caching✓
Assistant Prefill·

Pricing by Provider

US Dollar ($)
Per 1M tokens
ProviderStandardBatch
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Cache Write 5m
$ / 1M
Input
$ / 1M
Output
$ / 1M
Amazon Bedrock logo
Amazon Bedrock
meta.llama3-1-8b-instruct-v1:0
$0.22$0.22N/AN/A$0.11$0.11
Cloudflare Workers AI logo
Cloudflare Workers AI
@cf/meta/llama-3.1-8b-instruct
$0.282$0.827N/AN/A——
Databricks logo
Databricks
databricks/databricks-meta-llama-3-1-8b-instruct
$0.15$0.45$0.15$0.15——
DeepInfra logo
DeepInfra
deepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct
$0.03$0.05N/AN/A——
DeepInfra logo
DeepInfra
deepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo
$0.02$0.04N/AN/A——
Fireworks AI logo
Fireworks AI
fireworks_ai/accounts/fireworks/models/llama-v3p1-8b-instruct
$0.1$0.1N/AN/A——
Hugging Face logo
Hugging Face
novita:meta-llama/llama-3.1-8b-instruct
$0.02$0.05N/AN/A——
Hugging Face logo
Hugging Face
nscale:meta-llama/Llama-3.1-8B-Instruct
$0.06$0.06N/AN/A——
Hyperbolic logo
Hyperbolic
hyperbolic/meta-llama/Meta-Llama-3.1-8B-Instruct
$0.12$0.3N/AN/A——
Lambda logo
Lambda
lambda_ai/llama3.1-8b-instruct
$0.025$0.04N/AN/A——
Novita logo
Novita
novita/meta-llama/llama-3.1-8b-instruct
$0.02$0.05N/AN/A——
Nscale logo
Nscale
nscale/meta-llama/Llama-3.1-8B-Instruct
$0.03$0.03N/AN/A——
OpenRouter logo
OpenRouter
meta-llama/llama-3.1-8b-instruct
$0.05$0.08$0.025N/A——
Oracle Cloud (OCI) logo
Oracle Cloud (OCI)
oci/meta.llama-3.1-8b-instruct
$0.72$0.72N/AN/A——
OVHcloud logo
OVHcloud
ovhcloud/Llama-3.1-8B-Instruct
$0.1$0.1N/AN/A——
Perplexity logo
Perplexity
perplexity/llama-3.1-8b-instruct
$0.2$0.2N/AN/A——
Together AI logo
Together AI
together_ai/meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo
$0.18$0.18N/AN/A——
Weights & Biases logo
Weights & Biases
wandb/meta-llama/Llama-3.1-8B-Instruct
$0.22$0.22N/AN/A——

Cost Calculator

US Dollar ($)
Preset:

Cheapest Instances to Run It

Cloud GPU instances that can host Llama 3.1 8B Instruct, ranked by cheapest on-demand price. The model needs about 19 GB of GPU memory at FP16 precision (estimated from its parameter count), so treat the fit as guidance rather than a guarantee.

All clouds
FP16 (full precision)
US Dollar ($)
Instance
Cloud
GPU
VRAM
Price
Cheapest region
g2-standard-4GCPnvidia-l424 GB$0.705/hr
g6.xlargeAWSL422 GB$0.805/hr
g2-standard-8GCPnvidia-l424 GB$0.851/hr
7 more instances can run Llama 3.1 8B Instruct
Unlock the full ranked list and FP8 / INT4 quantization with a CloudPrice subscription.

Versions

VersionReleasedContextInput / 1MOutput / 1MStatus
Llama 3.3 70B Instruct131K$0.120$0.200Deprecated
Llama 3.2 3B Instruct131K$0.015$0.020Deprecated
Llama 3.2 1B Instruct131K$0.020$0.020Deprecated
Llama 3.1 8B Instruct200K$0.020$0.030Current
Llama 3.1 405B Instruct131K$0.120$0.300Deprecated
Llama 3.1 70B Instruct131K$0.100$0.100Deprecated
Llama 3.1 70B128K$0.360$0.360Available
Llama 3.1 8B131K$0.030$0.050Available
Llama 3 70B Instruct131K$0.120$0.300Deprecated
Llama 3 8B Instruct32K$0.030$0.040Deprecated
Llama 3.1 Tulu3 405B————Available

Model IDs

@cf/meta/llama-3.1-8b-instruct
accounts/fireworks/models/full-llama-v3p1-8b-instruct-8b-fp8
accounts/fireworks/models/full-llama-v3p1-8b-instruct-8b-fp8-amd
accounts/fireworks/models/llama-v3p1-8b-instruct
azure_ai/Meta-Llama-3.1-8B-Instruct
databricks/databricks-meta-llama-3-1-8b-instruct
deepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct
deepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo
fireworks_ai/accounts/fireworks/models/llama-v3p1-8b-instruct
friendliai/meta-llama-3.1-8b-instruct
groq/llama-3.1-8b-instant
hyperbolic/meta-llama/Meta-Llama-3.1-8B-Instruct
lambda_ai/llama3.1-8b-instruct
llama-3-1-instruct-8b
meta-llama-3-1-8b-instruct
meta-llama/llama-3.1-8b-instruct
meta-llama/Meta-Llama-3.1-8B-Instruct
meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo
meta-textgeneration-llama-3-1-8b-instruct
meta-textgenerationneuron-llama-3-1-8b-instruct
meta.llama3-1-8b-instruct-v1:0
meta.llama3-1-8b-instruct-v1:0:128k
nebius/meta-llama/Meta-Llama-3.1-8B-Instruct
novita/meta-llama/llama-3.1-8b-instruct
nscale/meta-llama/Llama-3.1-8B-Instruct
oci/meta.llama-3.1-8b-instruct
openrouter/meta-llama/llama-3.1-8b-instruct
ovhcloud/Llama-3.1-8B-Instruct
perplexity/llama-3.1-8b-instruct
sambanova/Meta-Llama-3.1-8B-Instruct
together_ai/meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo
us.meta.llama3-1-8b-instruct-v1:0
vertex_ai/meta/llama-3.1-8b-instruct-maas
wandb/meta-llama/Llama-3.1-8B-Instruct