Skip to content

Llama 3.1 8B Instruct

Meta · Open weights · 131K context · released Jul 23, 2024 · checked 7h ago

Ways to buy 5

Way to buyIn / out per 1M
DeepInfra
fp8
$0.02 / $0.04Cheapest
Novita AI
fp8
$0.02 / $0.05+10% vs cheapest
Groq
Default region · cached $0.025
$0.05 / $0.08+130% vs cheapest
Cloudflare Workers AI
fp8
$0.152 / $0.287+643% vs cheapest
CoreWeave
bf16 · cached $0.22
$0.22 / $0.22+780% vs cheapest

USD per 1M tokens. Regions are separate routes.

Through a gateway

Your own numbers

100M input and 20M output tokens a month: $2.80 direct.

No published token fee: Martian Gateway, Portkey, TrueFoundry AI Gateway.

Related models

In / out per 1M
Muse Spark 1.3
Meta · 1M
$1.25 / $4.25
Muse Spark 1.3 Contributor
Meta · 1M
$0.1 / $0.2
Muse Spark 1.2 Contributor
Meta · 1M
$0.1 / $0.2
Muse Glimmer 30B
Meta · 131K
$0.3 / $1.1
Qwen3.7 Flash
Qwen (Alibaba) · 1M
$0.03 / $0.13
Text Embedding 3 Small
OpenAI · 8K
$0.02 / Free
Qwen3 Embedding 4B
Qwen (Alibaba) · 33K
$0.02 / Free
gpt-oss-20b
OpenAI · 131K
$0.018 / $0.09

About Llama 3.1 8B Instruct

Meta's latest class of model (Llama 3.1) launched with a variety of sizes & flavors.

Takes text in and returns text. First listed Sep 23, 2026. Up to 118K output tokens. Blended price $0.025 per 1M tokens at 3 input to 1 output. Model id llama-3-1-8b-instruct.

Price history

No list-price history: this model is sold by hosts rather than its lab.

Questions

How much does Llama 3.1 8B Instruct cost?

$0.02 per million input tokens and $0.04 per million output tokens.

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

131K tokens, with up to 118K tokens of output.

Where is Llama 3.1 8B Instruct cheapest?

Of 5 routes tracked, DeepInfra is cheapest at $0.02 input and $0.04 output per million tokens.

Sources: OpenRouter's public model catalog and each provider's own pricing page, read every morning at 05:00 UTC; gateway fees re-read every Monday. List prices: your contract may differ. Logos via logo.dev; trademarks belong to their owners.

Price changes by email

Thursdays, only in weeks when an LLM API list price changed.

Double opt-in. Unsubscribe any time.