Interactive tool · AiTopMix

AI API Cost Calculator: what Claude, GPT and Gemini calls really cost

Interactive · November 2026 · Prices verified from official vendor docs, 23 November 2026

Pick a model, enter your tokens, and see the estimated cost before you send anything. Prices are the vendors’ published per-million-token rates, verified against their official pricing pages on 23 November 2026. Nothing here calls an API and nothing is uploaded — every calculation runs in your browser.

This calculator covers per-token API pricing. For monthly subscriptions instead, add up your stack with the subscription stack calculator.

Your prompt. For Haiku 5.5 the tier is set by this size.

What the model writes back, including thinking tokens.

Cached input is billed at the cache-read rate. Cache-write costs are not included.

Total cost scales linearly with requests.

Applies to Claude and Gemini batch pricing. Not applied to OpenAI here: no batch discount is stated for these models on the page we verified.

Input cost$0.00
Output cost$0.00
Estimated cost per request$0.00
Total for 1 request(s)$0.00
Cost per 1,000 requests$0.00

Verified price table

Per 1 million tokens, USD, as published by each vendor and verified on 23 November 2026. Only the models in the calculator are listed; each vendor’s page lists more.

ModelInput / 1MOutput / 1MCached input / 1MBatch
Claude Fable 5.2$8.00$40.00$0.2050% off
Claude Opus 5.5$4.00$20.00$0.2050% off
Claude Sonnet 5.5$2.00$10.00$0.1050% off
Claude Haiku 5.5$0.10 (prompts ≤ 100K) / $0.50 (over 100K)$0.50 (prompts ≤ 100K) / $2.50 (over 100K)$0.01 / $0.0550% off
gpt-6.2-astra$8.00$40.00$0.40Not stated
gpt-6.2-sol$2.00$10.00$0.10Not stated
gpt-6-astra$10.00$50.00$1.00Not stated
gpt-6.1-sol$2.00$10.00$0.10Not stated
chat-latest$5.00$30.00$0.50Not stated
Gemini 4 Carbon$2.00 through 30 November 2026; $4.00 from 1 December 2026$10.00 through 30 November 2026; $20.00 from 1 December 2026$0.10 / $0.2050% off
Gemini 4 Argon$2.00 through 30 November 2026; $4.00 from 1 December 2026$10.00 through 30 November 2026; $20.00 from 1 December 2026$0.10 / $0.2050% off

Gemini Priority pricing ($3.60/$18.00 through 30 November 2026, $7.20/$36.00 from 1 December 2026) and Claude Fast-mode pricing are published by the vendors but are not calculator modes here. Claude cache-write rates, OpenAI cache-write rates and Gemini grounding ($14 per 1,000 requests after 5,000 free a month) are likewise excluded from the estimate.

Limitations — read before you budget

Estimates only. Your real bill depends on your actual token counts — and on Claude 4.7 and later models, a newer tokenizer produces roughly 30% more tokens for the same text.

What is not included: cache-write costs, Fast-mode / Priority premiums, data-residency uplifts (Claude US-only inference is 1.1×; OpenAI regional processing is +10% for newer models), tool and grounding charges, taxes, and any volume or private-offer discounts.

Prices change. Gemini 4 prices rise on 1 December 2026 (shown above). Re-check the vendor’s pricing page before committing to a budget — the vendor’s site is always the final word.

Model set. This calculator covers 4 Claude, 5 OpenAI and 2 Gemini models — the ones we could verify cleanly from the official docs on 23 November 2026. It does not cover restricted, promotional or retired models.

Prices on this page were verified against the vendors’ official pricing pages (Anthropic Claude Platform docs, OpenAI API pricing, Google Gemini Developer API pricing) on 23 November 2026. If a vendor has changed a price since, the vendor’s site is the final word.