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.
AI model pricing comparison
Compare sourced AI API input, output and cached token prices per million tokens across OpenAI, Anthropic and Google.
| Model | Provider | Context | Input / 1M | Output / 1M | Cached / 1M |
|---|---|---|---|---|---|
| GPT-4.1 | openai | 1M | $2 | $8 | $0.5 |
| GPT-4.1 Mini | openai | 1M | $0.4 | $1.6 | $0.1 |
| GPT-4.1 Nano | openai | 1M | $0.1 | $0.4 | $0.025 |
| Claude Sonnet 4 | anthropic | 200K | $3 | $15 | $0.3 |
| Gemini 2.5 Flash | 1M | $0.3 | $2.5 | $0.03 |
Historical dataset checked October 3, 2026. Verify availability and current prices before use.