AI model pricing comparison

Compare sourced AI API input, output and cached token prices per million tokens across OpenAI, Anthropic and Google.

ModelProviderContextInput / 1MOutput / 1MCached / 1M
GPT-4.1openai1M$2$8$0.5
GPT-4.1 Miniopenai1M$0.4$1.6$0.1
GPT-4.1 Nanoopenai1M$0.1$0.4$0.025
Claude Sonnet 4anthropic200K$3$15$0.3
Gemini 2.5 Flashgoogle1M$0.3$2.5$0.03

Historical dataset checked October 3, 2026. Verify availability and current prices before use.

Open token cost calculator · Cheapest models

Compare standard text-token rates in USD. Input and output rates differ; caching and batch processing have separate conditions. See each model's official source before purchasing.