Home › Providers › meta-llama › Meta: Llama 3.1 8B Instruct

Meta: Llama 3.1 8B Instruct API Pricing

Meta: Llama 3.1 8B Instruct is an API model from meta-llama. It costs $0.05 per 1M input tokens and $0.08 per 1M output tokens, with cached input at $0.025. Its context window is 131,072 tokens with up to 117,964 output tokens. A workload of 10M input + 2M output tokens costs about $0.66 per month.
Input
$0.05
per 1M tokens
Output
$0.08
per 1M tokens
Cached input
$0.025
per 1M tokens
Context window
131K
131,072 tokens
Blended (80/20)
$0.056
per 1M tokens

Meta's latest class of model (Llama 3.1) launched with a variety of sizes & flavors. This 8B instruct-tuned version is fast and efficient. It has demonstrated strong performance compared to...

How much does Meta: Llama 3.1 8B Instruct cost for a real workload?

At 10M input + 2M output tokens per month, Meta: Llama 3.1 8B Instruct costs about $0.66 ($0.5 input + $0.16 output). Try your own volumes in the cost calculator.

Price history

Tracked since 2026-10-21 (47 daily snapshots). Catalog input price moved $0.05 → $0.05 (+0.0%); output $0.08 → $0.08 (+0.0%).

2026-10-212026-12-06

Blended price (80% input / 20% output) per 1M tokens, one point per daily OpenRouter snapshot.

DateFieldFrom /1MTo /1MChange
2026-11-25Output$0.04$0.08+100.0%
2026-11-25Input$0.02$0.05+150.0%
2026-11-09Output$0.08$0.04-50.0%
2026-11-09Input$0.05$0.02-60.0%

What are cheaper alternatives to Meta: Llama 3.1 8B Instruct?

Where to run Meta: Llama 3.1 8B Instruct

AI/ML API: one API key for 400+ models, including most models tracked here · Novita AI: pay-as-you-go APIs for open models (DeepSeek, Qwen, Llama and more) plus GPU cloud · CometAPI: one API for 500+ models (GPT, Claude, Gemini and more) at about 80% of official prices. Prices there follow each platform's own catalog and can differ from the list prices tracked here.

Run it on AI/ML API →Run it on Novita AI →Run it on CometAPI →

Disclosure: links to these platforms may be affiliate links — if you sign up or buy through them, LLMPrices may earn a commission at no extra cost to you.

Compare Meta: Llama 3.1 8B Instruct with other models

Meta: Llama 3.1 8B Instruct vs Meta: Llama Guard 4 12BMeta: Llama 3.1 8B Instruct vs Meta: Llama 3.2 3B InstructMeta: Llama 3.1 8B Instruct vs Meta: Llama 4 ScoutMeta: Llama 3.1 8B Instruct vs Meta: Llama 4 MaverickMeta: Llama 3.1 8B Instruct vs Meta: Llama 3.3 70B InstructMeta: Llama 3.1 8B Instruct vs Meta: Llama 3.1 70B Instruct

Frequently asked questions

How much does Meta: Llama 3.1 8B Instruct cost?

Meta: Llama 3.1 8B Instruct costs $0.05 per 1M input tokens and $0.08 per 1M output tokens (list price, snapshot December 06, 2026). At 10M input + 2M output tokens per month that is about $0.66.

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

Meta: Llama 3.1 8B Instruct has a context window of 131,072 tokens and can return up to 117,964 output tokens per response.

What are cheaper alternatives to Meta: Llama 3.1 8B Instruct?

Cheaper models include Z.ai: GLM Flash Latest ($0.0356 in / $0.0815 out), Z.ai: GLM 5.3 Flash ($0.0356 in / $0.0815 out), Z.ai: GLM 5.3 Flash (batch) ($0.023 in / $0.068 out). See the full list on this page.

Is Meta: Llama 3.1 8B Instruct free to use?

No. Meta: Llama 3.1 8B Instruct is a paid model at $0.05 input / $0.08 output per 1M tokens. 16 free models are listed on the free models page.

Provider: meta-llama · Model ID: meta-llama/llama-3.1-8b-instruct · Modality: text->text · Price snapshot December 06, 2026, refreshed daily. How we collect prices