All AI models · LLM benchmarks · Methodology

Meta

Llama 3.1 8B

Open Llama instruction model for multilingual chat, reasoning, and coding

Model facts

Context window
131K tokens
Maximum output
4K tokens
Cheapest paid input
$0.025 per 1M tokens
Cheapest paid output
$0.025 per 1M tokens
Open weights
yes
Providers
18

Capabilities and modalities

reasoning, tool calling, structured output, temperature control, open weights, text.

Local hardware estimate

At 4K context: Q4_K_M 5.9 GiB, Q8_0 9.6 GiB, F16 16.6 GiB working memory.

Parameters
8.0 billion
Architecture
llama
Model license
llama3.1

Planning estimate adapted from the MIT-licensed whichllm estimator using metadata from Hugging Face; not a vendor minimum requirement.

Artificial Analysis benchmarks

Compare this model on the full LLM benchmark leaderboard.

ConfigurationAAICodingMathOutput tokens/s
default7.45.44.3not measured

Observed price history

  • 2026-08-24: $0.025 input / $0.025 output per 1M tokens

API providers

  • Nvidia — model id meta/llama-3.1-8b-instruct; free input / free output per 1M tokens; provider documentation
  • Inference — model id meta/llama-3.1-8b-instruct; $0.025 input / $0.025 output per 1M tokens; provider documentation
  • Kilo Gateway — model id meta-llama/llama-3.1-8b-instruct; $0.02 input / $0.04 output per 1M tokens; provider documentation
  • Helicone — model id llama-3.1-8b-instruct; $0.02 input / $0.05 output per 1M tokens; provider documentation
  • Abacus — model id meta-llama/Meta-Llama-3.1-8B-Instruct; $0.02 input / $0.05 output per 1M tokens; provider documentation
  • NovitaAI — model id meta-llama/llama-3.1-8b-instruct; $0.02 input / $0.05 output per 1M tokens; provider documentation
  • Hugging Face — model id meta-llama/Llama-3.1-8B-Instruct; $0.06 input / $0.06 output per 1M tokens; provider documentation
  • Groq — model id llama-3.1-8b-instant; $0.05 input / $0.08 output per 1M tokens; provider documentation
  • OpenRouter — model id meta-llama/llama-3.1-8b-instruct; $0.05 input / $0.08 output per 1M tokens; provider documentation
  • NanoGPT — model id meta-llama/llama-3.1-8b-instruct; $0.054 input / $0.085 output per 1M tokens; provider documentation
  • Cortecs — model id llama-3.1-8b-instruct; $0.167 input / $0.167 output per 1M tokens; provider documentation
  • DigitalOcean — model id llama3-8b-instruct; $0.198 input / $0.198 output per 1M tokens; provider documentation
  • Pioneer — model id meta-llama/Llama-3.1-8B-Instruct; $0.2 input / $0.2 output per 1M tokens; provider documentation
  • Amazon Bedrock — model id meta.llama3-1-8b-instruct-v1:0; $0.22 input / $0.22 output per 1M tokens; provider documentation
  • Merge Gateway — model id meta/llama-3.1-8b-instruct; $0.22 input / $0.22 output per 1M tokens; provider documentation
  • Vercel AI Gateway — model id meta/llama-3.1-8b; $0.22 input / $0.22 output per 1M tokens; provider documentation
  • Weights & Biases — model id meta-llama/Llama-3.1-8B-Instruct; $0.22 input / $0.22 output per 1M tokens; provider documentation
  • Neon — model id meta-llama-3-1-8b-instruct; $0.15 input / $0.45 output per 1M tokens; provider documentation