Input / output, USD per 1M tokens. Arrow keys move, Enter opens.

Llama-3.1-8B-Instruct from Meta: $0.05 input and $0.08 output per 1M tokens, 128,000 context. Compact open Llama model for lightweight chat, drafting, and self-hosting Data last refreshed Nov 30, 2026, 07:15 AM UTC.

Models / Meta / Llama-3.1-8B-Instruct

Meta · llama

Llama-3.1-8B-Instruct

Compact open Llama model for lightweight chat, drafting, and self-hosting

$0.05 in · $0.08 out

per 1M tokens · provider rate closest to the median. No first-party Meta price was listed. The reference price is Groq's rate, the provider closest to the median.

Provider input prices run from $0.02 to $0.22 per 1M tokens. Output prices run from $0.025 to $0.45.

Context
128,000
Max output
4,096
Cache read
—
Cache write
—
Reasoning
No
Tool calls
Yes
Structured output
Unknown
Vision
No
Open weights
Yes
License
—
Released
Jul 23, 2024
Updated in source
Jul 23, 2024
Knowledge
2023-12
Providers
21

Hugging Face weights

What this model costs per month

Prices are USD per 1M tokens. A month is 30 days. Cache hits use the cache-read rate when the model has one; otherwise the cache field is ignored.

Estimated monthly cost

Llama-3.1-8B-Instruct

$0.42

Cache hit is ignored because this model has no cache-read price.

monthly = requests/day × 30 × (input tokens × (1 − cache hit) × input price + input tokens × cache hit × cache-read price + output tokens × output price) ÷ 1,000,000

Providers

Base rates from Models.dev. Where a provider lists the model more than once, the row is the listing whose id is closest to the canonical model id.
ProviderInputOutputCache readCache writeStatus
Abacus$0.02$0.05——deprecated
Deep Infra$0.02$0.04———
Eden AI$0.02$0.05———
Helicone$0.02$0.05———
Hugging Face$0.02$0.04———
Kilo Gateway$0.02$0.04———
NanoGPT$0.02$0.04$0.01——
Novita AI$0.02$0.05———
Inference$0.025$0.025——deprecated
Kitani$0.049$0.077$0.024——
Groqreference$0.05$0.08——deprecated
OpenRouter$0.05$0.08$0.025——
Poe$0.10$0.10———
Databricks$0.15$0.45———
Neon$0.15$0.45———
ZeroGPU$0.15$0.28———
Amazon Bedrock$0.22$0.22——deprecated
CoreWeave$0.22$0.22$0.22——
Merge Gateway$0.22$0.22———
Vercel AI Gateway$0.22$0.22———
Atomic Chatplan/freeplan/free———

Jobs this model qualifies for