Meta Llama API pricing

Input and output price per 1 million tokens for 8 Meta Llama models, with context window sizes. Updated 2026-11-09.

OpenAI (58) Qwen (41) Google (30) Mistral (20) Z.ai (17) Anthropic (15) DeepSeek (14) Meta (9) Meta Llama (8) Moonshot AI (8) Tencent (8) xAI (7) Aion Labs (6) ByteDance Seed (6) NVIDIA (6) Amazon (5) Cohere (5) Perplexity (5) Xiaomi (5) Inclusionai (4) MiniMax (4) Sakana (4)

Prices are USD per 1 million tokens. Updated 2026-11-09. Want a number for your own prompt? Use the token counter and cost calculator.

Meta Llama API pricing per 1M tokens

ModelContextInput $/1MOutput $/1MCached input $/1MImages in
Llama Guard 4 12Bmeta-llama/llama-guard-4-12b164K$0.18$0.18—Yes
Llama 4 Maverickmeta-llama/llama-4-maverick524K$0.35$1$0.17Yes
Llama 4 Scoutmeta-llama/llama-4-scout1.3M$0.1$0.3—Yes
Llama 3.3 70B Instructmeta-llama/llama-3.3-70b-instruct131K$0.59$0.79$0.295—
Llama 3.2 1B Instructmeta-llama/llama-3.2-1b-instruct60K$0.027$0.201——
Llama 3.2 3B Instructmeta-llama/llama-3.2-3b-instruct131K$0.05$0.33——
Llama 3.1 70B Instructmeta-llama/llama-3.1-70b-instruct131K$0.72$0.72——
Llama 3.1 8B Instructmeta-llama/llama-3.1-8b-instruct131K$0.02$0.04——

Quick facts