All Models / meta-llama / meta-llama/llama-3.1-8b-instruct

Meta: Llama 3.1 8B Instruct API Pricing & Cost Calculator

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...

Tool Calling
Input Price / 1M Tokens
$0.020
Output Price / 1M Tokens
$0.040
Prompt Cache Read / 1M
—
Context Window
131K
Max out: 16K

Interactive Meta: Llama 3.1 8B Instruct Monthly Cost Calculator

Est. Monthly (With Cache)
—
Est. Monthly (Uncached)
—
Est. Daily Run Rate
—

Volume Cost Benchmarks (75% Input / 25% Output)

Monthly Token VolumeUncached API CostWith 50% Prompt Caching
1M Tokens (Small App)$0.03$0.03
10M Tokens (Growing SaaS)$0.25$0.25
100M Tokens (Scale / Agents)$2.50$2.50
1B Tokens (Enterprise)$25.00$25.00

Deploy or Switch Providers

Best for H100 / A100 / 4090

RunPod Cloud GPUs

Spin up on-demand H100, A100, L40S, and RTX 4090 pods or serverless vLLM endpoints in seconds.

Launch GPU on RunPod →
Predictable Cloud Infra

DigitalOcean GPU Droplets

Deploy AI inference APIs, vector databases, and GPU droplets with simple monthly billing.

Try DigitalOcean →
1 API Key · 470+ Models

OpenRouter Unified API

Switch between Gemini, Claude, GPT, DeepSeek, and Llama with one OpenAI-compatible key.

Get Unified API Key →

Lower-Cost Alternatives to Meta: Llama 3.1 8B Instruct