AI Model TrackerLLM prices & token cost calculator

Meta

Llama 3.1 8B Instruct pricing and cost calculator

Llama 3.1 8B Instruct from Meta costs $0.05 per million input tokens and $0.08 per million output tokens, with a context window of 131,072 tokens. It was released on Jul 23, 2024. Cached input tokens are billed at $0.025 per million.

Input price
$0.05
Output price
$0.08
Context window
131,072
Released
Jul 23, 2024

Token cost calculator

ModelPer requestPer dayPer month (30 days)
Llama 3.1 8B Instruct$0.00009$0.09$2.70
Qwen3.7 Flash$0.0001$0.095$2.85
≈ 0 tokens

Token estimate: about 4 characters per token for English, about 1 token per character for Chinese, Japanese and Korean. Exact counts depend on each model's tokenizer.

Price and specs

Input price$0.05 / 1M
Output price$0.08 / 1M
Cached input$0.025 / 1M
Context window131,072
Max output117,964
Acceptstext
Producestext
Reasoning modeNo
Tool / function callingYes
Structured (JSON) outputYes
Open weightsYes
ReleasedJul 23, 2024

What typical workloads cost

1,000 chat replies (1,000 input + 500 output tokens each)$0.09
Summarise a 100-page document (≈50,000 input + 1,000 output tokens)$0.0026
1 million input + 1 million output tokens$0.13

Prices are list prices in USD per 1 million tokens from OpenRouter's public model list, refreshed daily. Direct provider prices, batch discounts and regional pricing may differ.

Cheaper models with at least the same context window

Similarly priced models from other providers

More Meta models

About Llama 3.1 8B Instruct

Meta's latest class of model (Llama 3.1) launched with a variety of sizes & flavors. This 8B instruct-tuned version is fast and efficient. It has demonstrated strong performance compared to...

Llama 3.1 8B Instruct FAQ

How much does Llama 3.1 8B Instruct cost?
Llama 3.1 8B Instruct costs $0.05 per 1M input tokens and $0.08 per 1M output tokens. 1,000 replies with 1,000 input and 500 output tokens each cost about $0.09.
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 tokens in one response.
Can Llama 3.1 8B Instruct read images?
No. Llama 3.1 8B Instruct accepts text as input.
What is a cheaper alternative to Llama 3.1 8B Instruct?
Cheaper models with at least the same context window include Qwen3.7 Flash, gpt-oss-20b, Gemma 3 4B.