LLM prices per 1M tokens

264 models · 161 price changes

Llama 3.1 8B Instruct

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

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

Ways to buy 4

Way to buyIn / out per 1M
DeepInfra
fp8
$0.02 / $0.04Cheapest
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.

A dash: not on that gateway's own model list. No published token fee: Martian Gateway, Portkey, TrueFoundry AI Gateway.

Related models

In / out per 1M
Muse Spark Open
Meta · 1M
$1.25 / $4.25Muse Spark Open is a coding-optimized open-weight model.
Muse Wonder
Meta · 1M
$4 / $20Muse Wonder is a frontier reasoning model from Meta, designed for complex personal and professional agentic tasks.
Muse Spark 1.3
Meta · 1M
$1.25 / $4.25Muse Spark 1.3 is a multimodal reasoning model from Meta for long-running agentic, multi-agent, and coding workflows.
Muse Spark 1.3 Contributor
Meta · 1M
$0.1 / $0.2Muse Spark 1.3 Contributor is the cost-efficient contributor tier of Meta’s multimodal reasoning model for experimentation, learning, and early-stage agentic, multi-agent, and coding workflows.
Titan Text Embeddings V2
Amazon Nova · 8K
$0.02 / FreeAmazon Titan Text Embeddings V2 is a text embedding model for retrieval, search, and clustering.
GLM 5.3 Flash
Z.ai · 1M
$0.012 / $0.158GLM-5.3-Flash is a native multimodal model from Z.ai.
Nemotron 3.5 Lightning
NVIDIA · 262K
$0.025 / $0.12NVIDIA Nemotron 3.5 Lightning is an open mixture-of-experts model from NVIDIA, with 3B active parameters out of 30B total.
Qwen3.7 Flash
Qwen (Alibaba) · 1M
$0.03 / $0.13Qwen3.7 Flash is a vision-language reasoning model from Alibaba.

About Llama 3.1 8B Instruct

Takes text in and returns text. First listed Sep 23, 2026. Up to 16K 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 16K tokens of output.

Where is Llama 3.1 8B Instruct cheapest?

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