ChatGPT vs Claude API cost (2026): per-token pricing compared

Short answer: Neither is universally cheaper — it depends on the tier. At the flagship level, OpenAI's GPT-5.5 and Claude Opus 4.8 match on input ($5/M) but Claude Opus is cheaper on output ($25 vs $30). At the workhorse tier, GPT-5.4 ($2.50/$15) slightly undercuts Claude Sonnet 4.6 ($3/$15) on input. At the budget tier, OpenAI's mini and nano models undercut Claude Haiku 4.5. Both offer a 50% Batch discount and ~0.1x cached input.

If you're picking an API provider on cost, the "ChatGPT vs Claude" question is really a per-tier question: each provider has a flagship, a workhorse, and one or more budget models, and the winner flips depending on which row you're buying. Below is the current per-million-token pricing for both, pulled from OpenAI's and Anthropic's official pricing pages (June 2026), followed by which one is cheaper for each common workload.

API pricing: OpenAI vs Anthropic (per 1M tokens)

Prices are standard, pay-as-you-go, in USD per million tokens. "Cached input" is the discounted rate when a request reuses previously processed context.

Tier OpenAI (ChatGPT / GPT-5) Input Output Anthropic (Claude) Input Output
FlagshipGPT-5.5$5.00$30.00Claude Opus 4.8$5.00$25.00
WorkhorseGPT-5.4$2.50$15.00Claude Sonnet 4.6$3.00$15.00
BudgetGPT-5.4-mini$0.75$4.50Claude Haiku 4.5$1.00$5.00
Ultra-budgetGPT-5.4-nano$0.20$1.25(no nano tier)
ChatGPT modelchat-latest$5.00$30.00Claude Sonnet 4.6$3.00$15.00

Bold = cheaper of the two in that row. Both providers price a 1M-token context window at the standard rate on their long-context flagship models. Source: OpenAI and Anthropic official pricing pages, June 2026.

Which is cheaper for your workload

"I need the best reasoning quality, cost is secondary"

Flagship tier: Claude Opus 4.8 and GPT-5.5 tie on input ($5/M) but Opus is cheaper on output ($25 vs $30/M). For output-heavy generation (long drafts, large code files), Claude Opus is the cheaper flagship; for input-heavy work (stuffing big context, short answers), they're effectively level.

"Production workhorse — high volume, good-enough quality"

This is where most real spend lives. GPT-5.4 ($2.50/$15) slightly undercuts Claude Sonnet 4.6 ($3/$15) on input with identical output pricing. On a typical mixed workload they land within ~10% of each other, so pick on quality fit and latency rather than price — the gap is small enough to be noise next to how well each model does your specific task.

"High-volume classification, extraction, routing"

Budget tier: OpenAI wins outright. GPT-5.4-mini ($0.75/$4.50) and GPT-5.4-nano ($0.20/$1.25) are cheaper than Claude Haiku 4.5 ($1/$5), and nano has no direct Claude equivalent. For millions of cheap calls (tagging, moderation, simple structured output), OpenAI's budget models are the lower-cost option.

"Reusing a big system prompt or document across many calls"

Both providers offer prompt caching that drops repeated-context reads to roughly 0.1x the input price (e.g. Claude Opus cache reads at $0.50/M vs $5 standard; GPT-5.5 cached input at $0.50/M vs $5). If your prompts share a large fixed prefix, caching matters more than the headline per-token gap — and both implement it similarly.

"Non-time-sensitive batch jobs"

Both offer a 50% Batch API discount on input and output. That halves every number in the table above for asynchronous workloads, and it stacks with prompt caching on both platforms.

Costs that aren't per-token

The bottom line

If you're optimizing purely for API cost: go OpenAI at the budget and ultra-budget tiers (mini/nano undercut Haiku), call it a near-tie at the workhorse tier (GPT-5.4 vs Sonnet 4.6), and lean Claude Opus at the flagship tier if your workload is output-heavy. But the per-token gaps inside a tier are small — for most teams the bigger lever is choosing the right tier for each task and using batch + caching, not switching vendors over a 10–20% line-item difference.

Full reviews