AI subscription vs API calculator

← All tools · Inference cost calculator (product-scale estimates)

Paying for ChatGPT, Codex, Claude or Claude Code? This calculator estimates what the same usage would cost on the API, cached input included, and shows the break-even point where the plan stops being the cheaper option. Read the guide for a real month of Codex usage priced at API rates.

Your subscription

Your usage (all editable)

Start from:

Each user + assistant turn counts as one message.

Everything sent on each call: system prompt, tools, files and the conversation so far. A coding agent often sends 100K+ tokens for a one-line request.

Input the provider has seen recently is billed at the cache-read rate, 5% of the input price on GPT-6.1 Sol and Claude Sonnet 5.5. In a long coding session it's usually above 95%.

messages/day · messages/mo · input tokens · output tokens

vs equivalent API

API equivalent

/mo

Subscription

/mo

Break-even: — messages/day where API cost equals the subscription price (holding token sizes and active days fixed).

Every subscription at your usage

API-equivalent monthly cost using each plan's default model. Click a row to select it. Plan prices verified November 10, 2026, API rates November 10, 2026.

PlanAPI modelSub $/moAPI $/moVerdict

Caveats

  • A plan gives you an allowance, not unlimited use. Heavy use hits the 5-hour or weekly limit, and the API would bill that usage instead. This tool compares token-equivalent spend only.
  • API prices are the standard tier. Batch and Flex are half price, Fast mode costs more, and Claude cache writes (1.25x input) are billed here as plain input.
  • Codex and Claude Code let you pick the model. Change the API model above to match the one you use most.
  • All figures are estimates for planning — not billing quotes.

About this tool

Pick a consumer AI subscription and describe how you use it: conversations per day, messages per thread, average token sizes, and how many days per month you actually chat. The calculator multiplies that into monthly message and token counts, then prices those tokens at the API model's published per-million rates (November 10, 2026), with the cached share at the cache-read rate and the long-context tier when a request goes over it.

The break-even line shows how many messages per day would make API spend equal the plan price, useful if you're deciding whether to keep a plan or switch to your own API key. Building a product with thousands of users? Use the inference cost calculator instead.

Privacy: everything runs in your browser. No usage data is sent to a server. Shareable URLs encode your inputs in the query string only.

Read more

Free books, courses, and software

Get my programming books, course editions, and complete software.

Get the download library →