// meta-llama

Llama 3.1 8B Instruct

meta-llama/llama-3.1-8b-instruct

tool callingprompt caching
OpenRouter + LiveBenchAll modelsFull leaderboard

Llama 3.1 8B Instruct costs $0.050 per 1M input tokens and $0.080 per 1M output tokens with a 131K-token context window.

A tool-calling model from meta-llama, released Jul 23, 2024. LiveBench hasn't published a run for it, so this page carries measured price and specs only — no benchmark numbers.

Input / 1M
$0.050
Output / 1M
$0.080
Context
131K
LiveBench overall
Not evaluated

Specs and pricing

Input price

USD per 1M prompt tokens

$0.050
Output price

USD per 1M completion tokens, reasoning included

$0.080
Blended price

3:1 input:output — #15 cheapest of 343 listed models

$0.057
Cached input read

Blank means not priced separately — not free

$0.025
Cache write
Context window131,072 tokens
Max output117,964 tokens
Input modalitiestext
Tool callingYes
Extended reasoningNo
Knowledge cutoff2023-12-31
ListedJul 23, 2024
All Meta (meta-llama) API pricing

What Llama 3.1 8B Instruct costs to run

Monthly list cost across five workload shapes, using the published cached-input rate where there is one. A floor, not a quote — batch discounts and cache writes aren't included.

WorkloadPer month
Support chatbot

1.2K in / 400 out × 200K requests

$16.60/mo
RAG assistant

8K in / 600 out × 100K requests

$34.80/mo
Coding agent

40K in / 4K out × 20K requests

$32.40/mo
Document extraction

20K in / 1.5K out × 50K requests

$54.75/mo
Bulk classification

500 in / 20 out × 5M requests

$120.50/mo
Price your own workload

Compare Llama 3.1 8B Instruct with

Benchmarked models at a similar price.

Llama 3.1 8B Instruct FAQ

How much does Llama 3.1 8B Instruct cost?

Llama 3.1 8B Instruct lists at $0.050 per 1M input tokens and $0.080 per 1M output tokens, with cached input reads at $0.025 per 1M. A RAG assistant handling 100K requests a month (8K tokens in, 600 out) comes to about $34.80 at list price.

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

Llama 3.1 8B Instruct accepts up to 131,072 tokens of context and can return up to 117,964 output tokens per response.

Does Llama 3.1 8B Instruct support tool calling?

Yes — Llama 3.1 8B Instruct supports tool (function) calling. It accepts text input.

How does Llama 3.1 8B Instruct score on benchmarks?

LiveBench has not published a run for Llama 3.1 8B Instruct yet. Until it does, compare it on price and specs, or run your own evaluation on your own tasks.

What is the API model ID for Llama 3.1 8B Instruct?

On OpenRouter the model ID is "meta-llama/llama-3.1-8b-instruct". It was listed on Jul 23, 2024.

More from meta-llama

How these numbers are produced

  • Price and specs — provider list data from OpenRouter, refreshed every 15 minutes. “Blended” is a 3:1 input:output mix.
  • Scores and ranksLiveBench release 2026-06-25. Ranks count only models that have a published run; a blank means “not evaluated”, never “bad”.
  • Cost per point — the measured dollars LiveBench spent on the run, divided by the score it earned.

Published benchmarks rank models on someone else's tasks. Before committing, see LLM & agent evaluation for building an eval on your own.