47 model prices
  1. Home
  2. 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: Pricing data: LiteLLM (MIT)

Cost calculator Compare models

Anthropic

ModelInput /1MOutput /1MCached input /1MContext windowMax output
Claude Opus 5.5$4.00$20.00$0.201,000,000128,000
Claude Opus 5$5.00$25.00$0.501,000,000128,000
Claude Opus 4.6$5.00$25.00$0.501,000,000128,000
Claude Opus 4.5$5.00$25.00$0.50200,00064,000
Claude Sonnet 5.5$2.00$10.00$0.101,000,000128,000
Claude Sonnet 5$2.00$10.00$0.201,000,000128,000
Claude Sonnet 4.6$3.00$15.00$0.301,000,000128,000
Claude Sonnet 4.5$3.00$15.00$0.30200,00064,000
Claude Haiku 5.5$0.10$0.50$0.011,000,000128,000
Claude Haiku 4.5$1.00$5.00$0.10200,00064,000

OpenAI

ModelInput /1MOutput /1MCached input /1MContext windowMax output
GPT-6.2 Astra$8.00$40.00$0.40922,000128,000
GPT-6 Astra$10.00$50.00$1.00922,000128,000
GPT-6.2 Sol$2.00$10.00$0.10922,000128,000
GPT-6.1 Sol$2.00$10.00$0.10922,000128,000
GPT-6 Sol$2.00$10.00$0.20922,000128,000
GPT-5.5$5.00$30.00$0.501,050,000128,000
GPT-5.4$2.50$15.00$0.251,050,000128,000
GPT-5.2$1.75$14.00$0.175272,000128,000
GPT-5.1$1.25$10.00$0.125272,000128,000
GPT-5$1.25$10.00$0.125272,000128,000
GPT-4.1$2.00$8.00$0.501,047,57632,768
GPT-4o$2.50$10.00$1.25128,00016,384
GPT-5 mini$0.25$2.00$0.025272,000128,000
GPT-4o mini$0.15$0.60$0.075128,00016,384
GPT-5 nano$0.05$0.40$0.005272,000128,000
o3$2.00$8.00$0.50200,000100,000

Google

ModelInput /1MOutput /1MCached input /1MContext windowMax output
Gemini 3.1 Pro Preview$2.00$12.00$0.201,048,57665,536
Gemini 2.5 Pro$1.25$10.00$0.1251,048,57665,536
Gemini 3.8 Flash$0.75$3.75$0.0751,048,57665,536
Gemini 3.5 Flash$1.50$9.00$0.151,048,57665,536
Gemini 3 Flash Preview$0.50$3.00$0.051,048,57665,536
Gemini 2.5 Flash$0.30$2.50$0.031,048,57665,536
Gemini 2.5 Flash-Lite$0.10$0.40$0.011,048,57665,536

xAI

ModelInput /1MOutput /1MCached input /1MContext windowMax output
Grok 4.7$2.00$6.00$0.50500,000—
Grok 4.5$2.00$6.00$0.30500,000—
Grok 4.3$1.25$2.50$0.201,000,000—
Grok 4.20$1.25$2.50$0.201,000,000—

DeepSeek

ModelInput /1MOutput /1MCached input /1MContext windowMax output
DeepSeek V4 Pro$1.32$3.96$0.0441,000,000393,216
DeepSeek V3.2$0.28$0.40$0.028163,840—
DeepSeek V4 Flash$0.30$1.20$0.0061,000,000393,216

Mistral

ModelInput /1MOutput /1MCached input /1MContext windowMax output
Mistral Large 4$0.70$2.10$0.071,048,576—
Mistral Large 3$0.50$1.50$0.05262,144—
Mistral Medium 3.5$1.50$7.50$0.15262,144—
Codestral 25.08$0.30$0.90$0.03128,000—

Moonshot AI

ModelInput /1MOutput /1MCached input /1MContext windowMax output
Kimi K3$3.00$15.00$0.301,048,576—
Kimi K2.6$0.95$4.00$0.16262,144—

Cohere

ModelInput /1MOutput /1MCached input /1MContext windowMax output
Command A$2.50$10.00—256,0008,000