API pricing comparison

Claude vs GPT API pricing

As of 2026-06-22, Anthropic opus-4-8 costs $5 per 1M input and $25 per 1M output tokens, while OpenAI gpt-5.5 costs $5 input and $30 output. Each price is dated and first-party-sourced.

ModelProviderInput /1MOutput /1M
opus-4-8Anthropic$5$25
sonnet-4-6Anthropic$3$15
haiku-4-5Anthropic$1$5
gpt-5.5OpenAI$5$30
gpt-4oOpenAI$2.50$10
Claude vs GPT input price over time, USD per 1M tokensroninforge.org/ai-price-index$0$2$4$620252026opus-4-8gpt-5.5sonnet-4-6gpt-4o
SeriesDateValue
opus-4-82026-05-28$5
gpt-5.52026-04-24$5
sonnet-4-62026-02-17$3
gpt-4o2024-05-13$5
gpt-4o2024-08-06$2.50
Input price per 1M tokens, step series (each price holds until the next dated change).

How to read this

These are standard published list prices per 1M tokens, not promotional, batch, or cached rates, and not the same as what you actually pay once caching and short prompts are taken into account. Output tokens cost several times input, so the model mix and how chatty each model is matter as much as the sticker price. To see the price you were actually charged on a given day, priced at the rate in effect then, use Goei or the claude-code-cost plugin.

More from the index

Open data, CC BY 4.0. Prices validated as of 2026-06-22.