Free tool / Updated 2026-07-06

Claude API Cost vs OpenAI Cost Comparator

Estimate monthly API spend for Claude and OpenAI models from input tokens, output tokens, request volume, cache reuse, and long-context assumptions.

Citable baseline

Cost facts

Dated facts with primary-source links where the underlying source is available.

$2/$10 Claude Sonnet 5 introductory input/output price per million tokens through August 31, 2026. Primary source: Anthropic Claude Platform Docs
$5/$30 GPT-5.6 Sol preview input/output price per million tokens. Primary source: OpenAI Help Center
90% OpenAI cached-input discount for GPT-5.6 and later models, per preview help page. Primary source: OpenAI Help Center

Interactive calculator

Estimate monthly text-token spend

The calculator models input, cached input, output, and request volume. It does not include tool-call fees, enterprise discounts, priority processing, or data-residency uplifts unless noted.

Providers
- lowest monthly estimate
- highest monthly estimate
- cached tokens / month
Model Cost / request Monthly estimate Rates used Notes Sources

What the estimate means

The cheapest token rate is not always the cheapest workflow. Coding agents often retry, call tools, read large files, and produce long patches. Use this calculator as a rate-card model, then compare cost per accepted result in your own task suite.

The cache slider is intentionally explicit. If a workload repeatedly sends stable repository summaries, policy text, or document packets, cache hits can dominate input cost. If each request is unique, set cache reuse to zero.

FAQ

Does this calculator include every possible fee?

No. It estimates text-token API spend. Tool calls, priority processing, data-residency uplifts, batch discounts, and provider-specific enterprise terms can change the bill.

Why include cache reuse?

Agent and document workloads often resend stable context. Cache hits can materially change input cost, so the calculator lets you model a reusable-context share.