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.

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

Compare Meta: Llama 3.1 8B Instruct with other models

Meta: Llama 3.1 8B Instruct vs Meta: Llama 3.2 1B InstructMeta: 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 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 October 21, 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 IBM: Granite 4.0 Micro ($0.017 in / $0.112 out), Nex AGI: Nex-N2.5-Mini ($0.025 in / $0.1 out), OpenAI: gpt-oss-20b ($0.018 in / $0.09 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. 20 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 October 21, 2026, refreshed daily. How we collect prices