Llama-3.1-8B-Instruct pricing & specs

Meta · released 2024-07-23 · ● verified 2026-11-29

input / 1M$0.02via DeepInfra
output / 1M$0.04via DeepInfra
context131.1K
max output4.1K

Llama-3.1-8B-Instruct is a Meta model released on 2024-07-23. At $0.02 per million input tokens and $0.04 per million output tokens, its blended price of $0.025 per 1M tokens is lower than 99% of the 178 models we track. It offers text input, a 131.1K-token context window and tool calling. Its weights are open, and it is available from 4 tracked hosting providers.

Ranked #1 of 20 in Cheapest Claude Alternatives, #1 of 20 in Cheapest GPT Alternatives, #1 of 20 in Cheapest Models With Tool Calling and #2 of 14 in Cheapest Llama Models.

// price history ($/1M tokens)

$0.0575
input $/1Moutput $/1M2024-07-23 → 2026-11-29

Tracks the selected provider’s quote, which may change providers over time.

// cheaper or similar alternatives

modelinoutctxvs Llama-3.1-8B-Instruct
Mistral Nemo$0.029$0.03131.1K+17.2%
Gemma 4 E2B IT$0.04$0.08131.1K+100%
Qwen3.7 Flash$0.03$0.131M+120%
GPT OSS 20B$0.03$0.14131.1K+130%
Command R7B$0.0375$0.15128K+162.4%

// price by host

hostin $/1Mout $/1M
DeepInfra$0.02$0.04
Novita AI$0.02$0.05
Groq$0.05$0.08
Amazon Bedrock$0.22$0.22

// embed this price badge

Show the live price of Llama-3.1-8B-Instruct in your README or docs (updated daily):

Llama-3.1-8B-Instruct API price badge
[![Llama-3.1-8B-Instruct price](https://aisignals.dev/badge/meta/llama-3.1-8b-instruct.svg)](https://aisignals.dev/models/meta/llama-3.1-8b-instruct)

// faq

How much does Llama-3.1-8B-Instruct cost?

Llama-3.1-8B-Instruct costs $0.02 per million input tokens and $0.04 per million output tokens (cheapest tracked host: DeepInfra). At 50M input and 10M output tokens per month that is about $1.40.

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

131.1K tokens, with up to 4.1K output tokens per request.

Is Llama-3.1-8B-Instruct open weights?

Yes. It is available from 4 tracked hosts; the cheapest is DeepInfra at $0.02 input and $0.04 output per million tokens.

// spec sheet

input / 1M
$0.02
output / 1M
$0.04
blended (3:1)
$0.025
context
131.1K
max output
4.1K
input types
text
reasoning
no
tool calling
yes
structured output
no
open weights
yes
knowledge cutoff
2023-12
price source
DeepInfra

report a data error

// cost calculator

modelin $/1Mout $/1M= monthly
Llama-3.1-8B-Instruct$0.02$0.04$1.40
Mistral Nemo$0.029$0.03$1.75
Gemma 4 E2B IT$0.04$0.08$2.80
Qwen3.7 Flash$0.03$0.13$2.80

Base-tier list prices. Long-context tiers, caching and batch discounts are not included.