Enter opens the highlighted result. Esc closes.

Llama 3.1 8B Instruct API pricing

As of December 6, 2026, Meta Llama 3.1 8B Instruct costs $0.135 per million input tokens and $0.15 per million output tokens, the median of 4 providers on OpenRouter, with cached input at $0.025 per million.

Llama 3.1 8B Instruct benchmarks and specs · Every Meta Llama model's price

  • Input, per million tokens$0.135
  • Output, per million tokens$0.15
  • Cached input, per million$0.025
  • Context window131K tokens
  • Max output118K tokens
  • Output speedNot measured

What a request costs

Three fixed token mixes at the list price, without cache or batch discounts. For a whole month, use the calculator.

Cost of three workloads on Llama 3.1 8B Instruct
WorkloadTokensOne request1,000 requestsFits the context window
Chat turn 1K input + 500 output tokens $0.0002 $0.210 Yes
Repository review 50K input + 3K output tokens $0.0072 $7.20 Yes
Agent loop 200K input + 10K output tokens $0.029 $28.50 No, it would need splitting
Solved coding task One SWE-bench Verified attempt, divided by the share that succeed Not computable Not computable

Price history

The price of Llama 3.1 8B Instruct here is the median across 4 providers on OpenRouter, so we do not track price changes for it.

Cheaper models as good as Llama 3.1 8B Instruct

Models within two points of Llama 3.1 8B Instruct or above it on the LLMBenchmark Index, with a lower output price. Cheapest first.

Llama 3.1 8B Instruct pricing questions

How much does Llama 3.1 8B Instruct cost per million tokens?
$0.135 per million input tokens and $0.15 per million output tokens, as listed on OpenRouter on December 6, 2026.
Does Llama 3.1 8B Instruct support prompt caching?
Yes. OpenRouter lists cached input at $0.025 per million tokens, against $0.135 for uncached input.
Is there a cheaper model as good as Llama 3.1 8B Instruct?
Gemma 3 4B scores 28.5 on the LLMBenchmark Index, within two points of Llama 3.1 8B Instruct or above it, and costs $0.075 per million output tokens.
Has the price of Llama 3.1 8B Instruct changed?
The price of Llama 3.1 8B Instruct here is the median across 4 providers on OpenRouter, so we do not track price changes for it.