aiapicostcalcUnit economicsPricesCompareGuidesChanges

AI SaaS unit economics calculator

Users × calls × tokens → monthly bill, cost per user and the lowest price that keeps your margin.

1
2
3
Cost per call$0.009
Per 1,000 calls$9.00
Calls per month150,000
Model bill per month$1,350
Cost per user per month$1.35
Minimum price per user (80% margin)$6.75

$2 in · $10 out per 1M

All models, this workload

ModelPer callPer 1K callsMin price / user
Gemini 2.5 Flash-Lite$0.0004$0.4000$0.3000
GPT-6 Luna$0.00045$0.4500$0.3375
Claude Haiku 5.5$0.00045$0.4500$0.3375
GPT-4o mini$0.0006$0.6000$0.4500
GPT-5.6 Luna$0.001$1.00$0.7500
GPT-5.4 nano$0.00103$1.03$0.7688
Gemini 3.1 Flash-Lite$0.00125$1.25$0.9375
GPT-5 mini$0.0015$1.50$1.13
Gemini 3.5 Flash-Lite$0.00185$1.85$1.39
Gemini 2.5 Flash$0.00185$1.85$1.39
Grok Build 0.1$0.003$3.00$2.25
Gemini 3.8 Flash$0.00337$3.38$2.53
Gemini 3.6 Flash$0.00337$3.38$2.53
GPT-5.4 mini$0.00375$3.75$2.81
Grok 4.3$0.00375$3.75$2.81
o4-mini$0.0044$4.40$3.30
Claude Haiku 4.5$0.0045$4.50$3.38
Grok 4.7$0.007$7.00$5.25
Gemini 2.5 Pro$0.0075$7.50$5.63
GPT-4.1$0.008$8.00$6.00
GPT-6.1 Sol$0.009$9.00$6.75
GPT-6 Sol$0.009$9.00$6.75
Claude Sonnet 5.5$0.009$9.00$6.75
Claude Sonnet 5$0.009$9.00$6.75
Gemini 4 Argon$0.009$9.00$6.75
GPT-5.6 Terra$0.0100$10.00$7.50
Gemini 3.1 Pro Preview$0.0100$10.00$7.50
GPT-5.4$0.0125$12.50$9.38
Claude Sonnet 4.6$0.0135$13.50$10.13
GPT-5.6 Sol$0.0180$18.00$13.50
Claude Opus 5.5$0.0180$18.00$13.50
Claude Opus 5$0.0225$22.50$16.88
GPT-5.5$0.0250$25.00$18.75
GPT-6 Astra$0.0450$45.00$33.75
Claude Fable 5.1$0.0450$45.00$33.75

How to get good inputs

Log 50–100 real requests. Average the input tokens (system prompt + history + user message) and the output tokens. If a fixed prefix repeats, enter its share as cached %. Many SaaS companies target 70–80% gross margin; the minimum price is cost per user ÷ (1 − margin).

Questions

How is the AI API cost calculated?

(uncached input tokens × input price + cached input tokens × cached price + output tokens × output price) ÷ 1,000,000, using each provider's standard per-1M-token price in USD.

Where do the prices come from?

Only from official provider pricing pages (OpenAI, Anthropic, Google AI, xAI). Each model lists its source link and the date we checked it. If we cannot verify a price, the model is marked unverified and left out of totals.

What should my AI SaaS charge per user?

Minimum price = model cost per user per month ÷ (1 − target gross margin). With $0.50 cost per user and an 80% margin target you need at least $2.50 per user per month.

Are reasoning tokens billed?

Yes, reasoning or thinking tokens are billed as output tokens, so set output tokens above the visible answer length for reasoning models.

Are batch discounts included?

No, results use standard pricing. Batch APIs from OpenAI, Anthropic and Google are roughly 50% cheaper.

Do all models count tokens the same?

No. Tokenizers differ; Anthropic notes Claude 4.7+ uses a tokenizer that can produce about 30% more tokens for the same text.

Prices last checked 2026-10-26 against official sources · how we verify

Price-change alerts

One short email when a provider changes a price or a promo ends. No spam, unsubscribe any time.