Enter opens the highlighted result. Esc closes.

Llama 3.1 8B Instruct API pricing

As of October 21, 2026, Meta Llama 3.1 8B Instruct costs $0.05 per million input tokens and $0.08 per million output tokens through 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.05
  • Output, per million tokens$0.08
  • 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.0001 $0.090 Yes
Repository review 50K input + 3K output tokens $0.0027 $2.74 Yes
Agent loop 200K input + 10K output tokens $0.011 $10.80 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

We read this price every day and have since October 15, 2026. It has not changed yet; any change will be listed here with its date.

  1. October 15, 2026 First recorded: $0.05 input, $0.08 output

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 Artificial Analysis Intelligence 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.05 per million input tokens and $0.08 per million output tokens, as listed on OpenRouter on October 21, 2026.
Does Llama 3.1 8B Instruct support prompt caching?
Yes. OpenRouter lists cached input at $0.025 per million tokens, against $0.05 for uncached input.
Is there a cheaper model as good as Llama 3.1 8B Instruct?
Ling 3.0 Flash scores 20.1 on the Artificial Analysis Intelligence Index, within two points of Llama 3.1 8B Instruct or above it, and costs $0.063 per million output tokens.
Has the price of Llama 3.1 8B Instruct changed?
Not since we started recording it daily on October 15, 2026.