Meta's latest class of model (Llama 3.1) launched with a variety of sizes & flavors.
Ways to buy 4
| Way to buy | Input | Output | In / out per 1M | Cached | Vs cheapest |
|---|---|---|---|---|---|
fp8 | $0.02 | $0.04 | $0.02 / $0.04Cheapest | n/a | Cheapest |
Default region · cached $0.025 | $0.05 | $0.08 | $0.05 / $0.08+130% vs cheapest | $0.025 | +130% vs cheapest |
fp8 | $0.152 | $0.287 | $0.152 / $0.287+643% vs cheapest | n/a | +643% vs cheapest |
bf16 · cached $0.22 | $0.22 | $0.22 | $0.22 / $0.22+780% vs cheapest | $0.22 | +780% vs cheapest |
USD per 1M tokens. Regions are separate routes.
Through a gateway
Your own numbers100M input and 20M output tokens a month: $2.80 direct.
Helicone$2.80+0%
Kong AI Gateway$2.80+0%
LiteLLM$2.80+0%
Neon AI Gateway$2.80+0%
Vercel AI Gateway$2.80+0%
Requesty$2.94+5%
Eden AI$2.95+5.5%
OpenRouter$2.95+5.5%
Cloudflare AI GatewayNot offeredNot offered
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 | Cheapest route | |||||||
|---|---|---|---|---|---|---|---|---|
Meta · 1M | $1.25 | $4.25 | $1.25 / $4.25 | $2 | 1M | on Modal | · | Muse Spark Open is a coding-optimized open-weight model. |
Meta · 1M | $4 | $20 | $4 / $20 | $8 | 1M | Lab list price | · | Muse Wonder is a frontier reasoning model from Meta, designed for complex personal and professional agentic tasks. |
Meta · 1M | $1.25 | $4.25 | $1.25 / $4.25 | $2 | 1M | Lab list price | · | Muse Spark 1.3 is a multimodal reasoning model from Meta for long-running agentic, multi-agent, and coding workflows. |
Meta · 1M | $0.1 | $0.2 | $0.1 / $0.2 | $0.125 | 1M | Lab list price | · | Muse 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. |
Amazon Nova · 8K | $0.02 | Free | $0.02 / Free | $0.015 | 8K | Lab list price | · | Amazon Titan Text Embeddings V2 is a text embedding model for retrieval, search, and clustering. |
Z.ai · 1M | $0.012 | $0.158 | $0.012 / $0.158 | $0.049 | 1M | on Relace (fp4) | · | GLM-5.3-Flash is a native multimodal model from Z.ai. |
NVIDIA · 262K | $0.025 | $0.12 | $0.025 / $0.12 | $0.049 | 262K | on Darkbloom (int4) | · | NVIDIA Nemotron 3.5 Lightning is an open mixture-of-experts model from NVIDIA, with 3B active parameters out of 30B total. |
Qwen (Alibaba) · 1M | $0.03 | $0.13 | $0.03 / $0.13 | $0.055 | 1M | Lab list price | · | Qwen3.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.