RunsOnMy ModelsGPUs & MacsBy VRAMAPI pricesVRAM calculatorNew

Meta: Llama 3.1 8B Instruct API pricing

$0.02 per 1M input tokens and $0.04 per 1M output tokens on OpenRouter. Context window: 131,072 tokens.

$0.02input / 1M tokens
$0.04output / 1M tokens
128Kcontext
text->textmodality

What it costs in practice

WorkloadCost
Chatbot: 10,000 messages (1,500 in / 400 out tokens each)$0.460
RAG: 1,000 queries (8,000 in / 600 out each)$0.184
Summarize 100 long documents (50,000 in / 1,000 out each)$0.104

Cross-check against the provider's list price

No first-party entry for this model in LiteLLM's price map, so this price comes from OpenRouter only.

Price history

No price change recorded since we started tracking on Nov 17, 2026. We check every 6 hours and log every change.

Run it yourself instead

The open weights are on Hugging Face. See the VRAM Llama 3.1 8B Instruct needs and which GPUs fit it →

Cheaper alternatives with similar context

Text models with at least 125K context and a lower blended price (75% input, 25% output). Price only, not a quality ranking.

ModelInput / 1MOutput / 1MContext
inclusionAI: Ling 3.0 Tiny$0.015$0.045256K

Source: OpenRouter listing via the public models API. Prices checked Nov 17, 2026. Model ID meta-llama/llama-3.1-8b-instruct, listed Jul 23, 2024. Report an error.