Llama 3.1 8B Instruct

GA

Open-weight, text-only, 8B dense, 128k context. License: Llama 3.1 Community License. Hosted price = OpenRouter slug 'meta-llama/llama-3.1-8b-instruct' $0.02 in / $0.03 out per 1M (page accessed 2026-06-28; 131k ctx). Together AI reports ~$0.18 per 1M flat. Free tier also available. Langs: English, German, French, Italian, Portuguese, Hindi, Spanish, Thai.

Llama 3.1 8B Instruct by Meta costs $0.02 per 1M input tokens and $0.03 per 1M output tokens ($0.022/1M blended), with a 128K (128.000-token) context window. It is generally available (GA), with a knowledge cutoff of Dec 2023. Its weights are publicly downloadable, so it can be self-hosted on your own infrastructure.

Last verified: 13 Aug 2026 · sourced from official provider documentation

Provider
Meta
Status
GA
Input price
$0.02 / 1M tokens
Output price
$0.03 / 1M tokens
Cached input
Blended price
$0.022 / 1M tokens
Context window
128.000 tokens (128K)
Max output
Modality
text
Open weights
Yes — self-hostable
Knowledge cutoff
2023-12
Released
23 Jul 2024
API string
meta-llama/Llama-3.1-8B-Instruct

Source: Meta official documentation ↗

FAQ

Llama 3.1 8B Instruct — questions & answers

How much does Llama 3.1 8B Instruct cost?

Llama 3.1 8B Instruct is priced at $0.02 per 1M input tokens and $0.03 per 1M output tokens ($0.022/1M blended at a 3:1 input-to-output ratio).

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

Llama 3.1 8B Instruct has a 128.000-token context window (128K).

Is Llama 3.1 8B Instruct deprecated?

No — Llama 3.1 8B Instruct is generally available (GA) and not currently scheduled for deprecation or retirement in our tracker.

Does Llama 3.1 8B Instruct support image or vision input?

Our catalog lists Llama 3.1 8B Instruct's modalities as text; image/vision input is not among them.

Can I self-host Llama 3.1 8B Instruct?

Yes — Llama 3.1 8B Instruct is an open-weight model: its weights are publicly downloadable, so you can run it on your own infrastructure (subject to its license) instead of only calling Meta's API.

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

The API model identifier for Llama 3.1 8B Instruct is "meta-llama/Llama-3.1-8B-Instruct" when calling Meta's API.

What is Llama 3.1 8B Instruct's knowledge cutoff?

Llama 3.1 8B Instruct's training knowledge cutoff is Dec 2023.