OpenAI vs Anthropic

Compare

Both appear in 1 section: llm apis. OpenAI is cheaper on 2 of 2 comparable measures.

The two leading commercial model providers price within the same range, and the comparison depends entirely on which models you line up. At the flagship tier, GPT-5 is $1.25 per million input tokens and $10 output, against Claude Opus 5 at $5 input and $25 output, so OpenAI's top model is considerably cheaper. One tier down they converge: Claude Sonnet 5 is $2 input and $10 output, identical to GPT-4.1's $2 and $8 and close to GPT-4o's $2.50 and $10. At the small end OpenAI is cheaper, with GPT-5-nano at $0.05 input and $0.40 output against Claude Haiku 4.5 at $1 and $5. Context windows favour Anthropic: Claude Opus 5 and Sonnet 5 both offer a million tokens, against GPT-5's 272,000, though GPT-4.1 also reaches a million. Cached input pricing matters more than most comparisons acknowledge, and both discount heavily: GPT-5 drops to $0.125 and Claude Sonnet 5 to $0.20 per million, so a workload with a large stable prompt costs a fraction of the headline. Output tokens dominate real bills because they are priced four to five times input at both vendors, which means the honest way to compare is to estimate your own input-to-output ratio rather than read the input price. Pikkly lists 94 OpenAI and 28 Anthropic models with per-token figures for each.

LLM APIs compared across OpenAI, Anthropic
MetricOpenAIAnthropic
Cheapest model, blended per 1M$0.138Cheapergpt-5-nano$0.500claude-3-haiku-20240307
Largest context windowtokens, higher is better1,050,000Cheaperdaybreak-blue-latest1,000,000claude-4-sonnet-20250514

Neither provider runs an affiliate programme; Pikkly earns nothing from this page.

Elsewhere