Skip to content
LLM Pricing Calc
Pricing last verified

Llama 3.1 8B Instruct pricing calculator

A small open-weight model that runs on almost any GPU or laptop. Pricing shown is DeepInfra's serverless rate.

Input
$0.02 / 1M
Cached input
—
Output
$0.04 / 1M
Context window
128K
Batch API
No
Reasoning
No

Official pricing ↗

Workload

Quick presets

1,000 tokens ≈ 750 English words.

Pro / Agent mode

Caching, batch, multi-turn loops, reasoning tokens

Cost comparison

Cheapest / month

$1.40

Llama 3.1 8B Instruct

Most expensive / month

$6.30

DeepSeek V4 Flash (open weights)

Tokens / request

1.5K in

400 out (cheapest model)

Estimated cost per model
Remove
Llama 3.1 8B InstructCheapestMeta via DeepInfra · $0.02 / $0.04$4.6e-5$0.046$1.40$16.79
gpt-oss-20bOpenAI via Together · $0.05 / $0.20$0.00015$0.155$4.72$56.58
Mistral Small 3.2 24BMistral via DeepInfra · $0.075 / $0.20$0.00019$0.1925$5.86$70.26
DeepSeek V4 Flash (open weights)DeepSeek via DeepInfra · $0.09 / $0.18$0.00021$0.207$6.30$75.55

Monthly = daily × 30.42. Prices are list prices for the standard context tier. Long-context surcharges, regional pricing and taxes are not included.Official pricing: DeepInfra ↗ · Together ↗

What Llama 3.1 8B Instruct costs for common workloads

Monthly estimates using the presets above, at list price.

WorkloadPer request / sessionMonthlyYearly
Small Chatbot1K chats/day, short prompts$2.4e-5$0.7301$8.76
RAG App5K queries/day, 4K-token retrieved context$9.6e-5$14.60$175.20
Coding Agent200 sessions/day × 25 turns$0.0252$153.32$1,840
Enterprise Scale250K requests/day, batched$6.0e-5$456.30$5,475

Official pricing ↗ (Meta via DeepInfra) · API model ID meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo

Llama 3.1 8B Instruct pricing FAQ

How much does Llama 3.1 8B Instruct cost per 1M tokens?

Llama 3.1 8B Instruct via DeepInfra costs $0.02 per 1M input tokens and $0.04 per 1M output tokens. Prices were last verified on Nov 21, 2026.

How much does one Llama 3.1 8B Instruct request cost?

A typical request with 1,000 input tokens and 500 output tokens costs about $4.0e-5. At 1,000 such requests per day that is $1.22 per month.

Does Llama 3.1 8B Instruct support prompt caching?

Llama 3.1 8B Instruct via DeepInfra has no discounted cached-input price listed, so every input token is billed at the full rate.

Is there a Batch API discount for Llama 3.1 8B Instruct?

No 50% batch discount is listed for Llama 3.1 8B Instruct via DeepInfra.

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

Llama 3.1 8B Instruct supports up to 128K tokens of context.

Is Llama 3.1 8B Instruct cheaper than gpt-oss-20b?

For a 1,000-in / 500-out request, Llama 3.1 8B Instruct costs $4.0e-5 and gpt-oss-20b costs $0.00015, so Llama 3.1 8B Instruct is 73% cheaper. Quality, speed and caching behaviour differ, so compare on your own workload above.

More AI cost tools