Free AI SaaS planning tool

AI API Cost Calculator for OpenAI, Claude & Gemini

If 1,000 users use your AI feature, what will the monthly API bill and profit margin look like? Model real users, requests, tokens, pricing and overhead before you ship.

  • No signup
  • Runs in your browser
  • Official pricing sources
  • Custom rate override

Usage and unit economics

Turn token pricing into a product decision.

Start with an editable example, select a model, then add your actual product usage and non-AI costs. The result is a planning estimate, not a billing guarantee.

Product assumptions

Every value stays in this browser.

Rates verified November 10, 2026.
Standard token rates, per 1 million tokens.
Official pricing

Monthly usage

Revenue and other costs

Monthly product estimate

Calculated from your workload and selected token rates.

Monthly requests—Users × requests per user
AI API cost—Tokens plus entered extras
Total monthly cost—API + variable + fixed cost
Monthly revenue—Users × subscription price
Gross profit—Revenue minus total cost
Gross margin—Gross profit ÷ revenue
Total cost / user—Including fixed overhead
API cost / request—Selected model workload
Break-even price / user—At the entered usage level

Add a subscription price to see margin.

Uncached input— tokens · —
Cached input— tokens · —
Output— tokens · —
Extra metered cost—
Break-even paying users—

Same workload, this provider

Token API cost only; output quality, latency, context rules and provider features are not ranked.

ModelMonthly API costPer request

Formulas and limits

Useful planning, without fake precision.

The calculator separates uncached input, cached input and output tokens, then combines them with your pricing and overhead. It does not pretend a cheaper model is automatically the best model.

Provider pricing, caching rules, long-context tiers and promotional rates change. Verify the linked official page before committing a budget. Taxes, payment fees, hosting, support and model-specific tools are excluded unless you enter them.
How is monthly AI API cost calculated?

users × requests × tokens ÷ 1,000,000 × model rate. Uncached input, cached input and output are priced separately. The optional extra cost per request covers items such as search or paid provider tools.

Are these OpenAI, Claude and Gemini prices live?

No. Presets were verified on November 10, 2026 using the official OpenAI, Anthropic and Google pricing pages. Use custom rates if a provider changes them.

What does profit margin include?

Revenue minus token cost, optional extra metered cost, other variable cost per user and fixed monthly cost. It is a gross planning margin, not audited profit or accounting advice.

Why can cached input cost less?

Providers can charge a lower read rate when repeated prompt content qualifies for caching. Eligibility and write/storage charges differ by provider, so enter a realistic cache percentage or leave it at zero.

Does the calculator store my numbers?

No. It is client-side only. Your usage, pricing and margin assumptions stay in the browser.

Start a project

Start Your SaaS or AI Project

Have a product, integration or difficult technical problem? Send the details and I’ll reply directly.

Project details

Tell me what you’re building.