Meta: Llama 3.1 8B Instruct API Pricing — $0.050 Input / $0.080 Output per 1M Tokens

Meta: Llama 3.1 8B Instruct by Meta — $0.050 input / $0.080 output per 1M tokens via OpenRouter. Context: 131K tokens. Pricing last updated Oct 29, 2026.

Input / 1M tokens
$0.050
Output / 1M tokens
$0.080
Provider
Meta
Context window
131K tokens
Via
OpenRouter

Cost at common usage volumes

Usage Daily Monthly
Chatbot (100/day)$0.013$0.38
Small app (1K/day)$0.090$2.70
Mid-scale (10K/day)$1.40$42.00
Large scale (100K/day)$33.00$990.00
Model ID: meta-llama/llama-3.1-8b-instruct
Data source: OpenRouter public API — updated Oct 29, 2026.

About Meta: Llama 3.1 8B Instruct

Meta: Llama 3.1 8B Instruct is an LLM developed by Meta. Input costs $0.050 per million tokens and output costs $0.080 per million tokens via OpenRouter. It supports a context window of 131K tokens.

Pricing Details

Via the OpenRouter API:

  • Input tokens: $0.050 per 1 million tokens
  • Output tokens: $0.080 per 1 million tokens

A token is roughly 0.75 words. For context: a typical user message of 100 words is approximately 133 tokens; a 500-word system prompt is about 650 tokens.

How Much Does Meta: Llama 3.1 8B Instruct Cost?

For a typical chatbot application (1,000 requests/day, 1,000 prompt tokens and 500 output tokens per request):

  • Daily cost: $0.0900
  • Monthly cost: $2.700

Accessing Meta: Llama 3.1 8B Instruct via OpenRouter

OpenRouter provides a unified API for 200+ LLMs including Meta: Llama 3.1 8B Instruct. You can use it with any OpenAI-compatible SDK by setting the base URL to https://openrouter.ai/api/v1 and using your OpenRouter API key. The model ID is meta-llama/llama-3.1-8b-instruct.

Compare Meta: Llama 3.1 8B Instruct with Other Models

Use the AI Model Cost Comparison tool to compare Meta: Llama 3.1 8B Instruct against GPT-4o, Claude 3.5 Sonnet, Gemini 1.5 Pro, or any other model side by side. Or use the LLM API Cost Calculator to browse all 456+ models sorted by cost for your specific usage.

Frequently Asked Questions