Llama 3.1 8B Instruct API pricing

Prices last checked: 28 Oct 2026 LLMs
$ per 1M input $0.020
$ per 1M output $0.040

Standard tier, blended at 3:1 input to output: $0.025 per million tokens.

OpenRouter charges $0.020 per million input tokens and $0.040 per million output tokens for Llama 3.1 8B Instruct.

$0.020
$/1M input
$0.040
$/1M output
131,072
Context window
$1.92
1k req/day, monthly

Against the models nearest in price

Standard tiers, blended at a 3:1 input to output ratio.

Calculator →
Llama 3.1 8B Instruct against comparable models, checked 28 Oct 2026
Source
Llama 3.1 8B Instruct This model OpenRouter $0.020 $0.040 131,072 $0.025 ↗

Prices last checked: . Methodology

Questions

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

$0.020 per million input tokens and $0.040 per million output tokens. At a 3:1 input to output mix that blends to $0.025. Checked 28 Oct 2026.

What would Llama 3.1 8B Instruct cost for a real workload?

A thousand requests a day at 2,000 input and 600 output tokens each comes to $1.92 a month on the standard tier.

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

131,072 tokens of input, with up to 16,384 tokens of output.

Llama 3.2 1B Instruct · Llama 3.2 3B Instruct · GPT-5 nano · Llama 4 Scout · Llama 3.3 70B Instruct · All OpenRouter models · Cost calculator