Home Models AI model API pricing and context windows
This table tracks 47 popular AI models from 8 providers. Input prices range from $0.05 per 1M tokens (GPT-5 nano) to $10.00 (GPT-6 Astra). The largest context window is 1,050,000 tokens (GPT-5.5 and GPT-5.4). Prices last updated November 27, 2026.
Last updated: November 27, 2026 Pricing data: LiteLLM (MIT)
Cost calculator Compare models
Anthropic Model Input /1M Output /1M Cached input /1M Context window Max output Claude Opus 5.5 $4.00 $20.00 $0.20 1,000,000 128,000 Claude Opus 5 $5.00 $25.00 $0.50 1,000,000 128,000 Claude Opus 4.6 $5.00 $25.00 $0.50 1,000,000 128,000 Claude Opus 4.5 $5.00 $25.00 $0.50 200,000 64,000 Claude Sonnet 5.5 $2.00 $10.00 $0.10 1,000,000 128,000 Claude Sonnet 5 $2.00 $10.00 $0.20 1,000,000 128,000 Claude Sonnet 4.6 $3.00 $15.00 $0.30 1,000,000 128,000 Claude Sonnet 4.5 $3.00 $15.00 $0.30 200,000 64,000 Claude Haiku 5.5 $0.10 $0.50 $0.01 1,000,000 128,000 Claude Haiku 4.5 $1.00 $5.00 $0.10 200,000 64,000
OpenAI Model Input /1M Output /1M Cached input /1M Context window Max output GPT-6.2 Astra $8.00 $40.00 $0.40 922,000 128,000 GPT-6 Astra $10.00 $50.00 $1.00 922,000 128,000 GPT-6.2 Sol $2.00 $10.00 $0.10 922,000 128,000 GPT-6.1 Sol $2.00 $10.00 $0.10 922,000 128,000 GPT-6 Sol $2.00 $10.00 $0.20 922,000 128,000 GPT-5.5 $5.00 $30.00 $0.50 1,050,000 128,000 GPT-5.4 $2.50 $15.00 $0.25 1,050,000 128,000 GPT-5.2 $1.75 $14.00 $0.175 272,000 128,000 GPT-5.1 $1.25 $10.00 $0.125 272,000 128,000 GPT-5 $1.25 $10.00 $0.125 272,000 128,000 GPT-4.1 $2.00 $8.00 $0.50 1,047,576 32,768 GPT-4o $2.50 $10.00 $1.25 128,000 16,384 GPT-5 mini $0.25 $2.00 $0.025 272,000 128,000 GPT-4o mini $0.15 $0.60 $0.075 128,000 16,384 GPT-5 nano $0.05 $0.40 $0.005 272,000 128,000 o3 $2.00 $8.00 $0.50 200,000 100,000
Google Model Input /1M Output /1M Cached input /1M Context window Max output Gemini 3.1 Pro Preview $2.00 $12.00 $0.20 1,048,576 65,536 Gemini 2.5 Pro $1.25 $10.00 $0.125 1,048,576 65,536 Gemini 3.8 Flash $0.75 $3.75 $0.075 1,048,576 65,536 Gemini 3.5 Flash $1.50 $9.00 $0.15 1,048,576 65,536 Gemini 3 Flash Preview $0.50 $3.00 $0.05 1,048,576 65,536 Gemini 2.5 Flash $0.30 $2.50 $0.03 1,048,576 65,536 Gemini 2.5 Flash-Lite $0.10 $0.40 $0.01 1,048,576 65,536
xAI Model Input /1M Output /1M Cached input /1M Context window Max output Grok 4.7 $2.00 $6.00 $0.50 500,000 — Grok 4.5 $2.00 $6.00 $0.30 500,000 — Grok 4.3 $1.25 $2.50 $0.20 1,000,000 — Grok 4.20 $1.25 $2.50 $0.20 1,000,000 —
DeepSeek Mistral Moonshot AI Model Input /1M Output /1M Cached input /1M Context window Max output Kimi K3 $3.00 $15.00 $0.30 1,048,576 — Kimi K2.6 $0.95 $4.00 $0.16 262,144 —
Cohere Model Input /1M Output /1M Cached input /1M Context window Max output Command A $2.50 $10.00 — 256,000 8,000