Full per-token cost comparison with monthly estimates for different usage levels
OpenAI is cheaper at the high end. GPT-4o ($2.50/$10.00 per 1M input/output tokens) undercuts Claude Sonnet ($3.00/$15.00) across the board. But Anthropic wins on the low end — Claude Haiku ($0.25/$1.25) is nearly half the price of GPT-4o-mini ($0.40/$2.00) for lightweight tasks.
All prices per 1 million tokens. Last updated: May 7, 2026.
| Model | Provider | Input ($/1M) | Output ($/1M) | Context Window | Best For |
|---|---|---|---|---|---|
| GPT-4o | OpenAI | $2.50 | $10.00 | 128K | General purpose, coding, multimodal |
| Claude Sonnet 4 | Anthropic | $3.00 | $15.00 | 200K | Deep reasoning, long documents |
| GPT-4o-mini | OpenAI | $0.40 | $2.00 | 128K | Chatbots, classification, extraction |
| Claude Haiku 3.5 | Anthropic | $0.25 | $1.25 | 200K | High-volume, cost-sensitive tasks |
| o3 | OpenAI | $10.00 | $40.00 | 200K | Complex reasoning, math, science |
| Claude Opus 4 | Anthropic | $15.00 | $75.00 | 200K | Maximum accuracy, enterprise |
Estimates based on a 70:30 input:output token ratio and batch pricing where available.
If you don't want to lock into one provider, OpenRouter gives access to both OpenAI and Anthropic models through a single API. Pricing is nearly identical to direct API — and you can switch models mid-request or route by quality.
OpenRouter pricing for key models:
For the majority of applications, GPT-4o offers the best value — it's cheaper at every volume level while matching or exceeding Claude Sonnet's quality on most benchmarks. The batch API discount tips the scales further.
But if your primary need is ultra-cheap lightweight tasks (sentiment analysis, tagging, simple Q&A), Claude Haiku is the best deal in the industry at $0.25 per 1M input tokens.
Smart strategy: Use Claude Haiku for high-volume simple tasks and GPT-4o for everything else. That's the optimal price-performance mix.
See live pricing across OpenAI, Anthropic, Google, DeepSeek, OpenRouter, Ollama Cloud and 23+ providers. Estimate your exact monthly costs in 6 currencies.
Launch AI Cost Calculator →Prices verified against official OpenAI and Anthropic API documentation as of May 2026. Pricing may have changed — check the AI Cost Calculator for live rates.