AI API Cost Calculator

Compare GPT-4o, Claude & Gemini pricing for your SaaS, chatbot, or AI agent. Updated June 2026.

Your Usage

Monthly Active Users

1001K10K100K1M

How often do users open your app?

How long is each session?

What does your AI do?

* Prices are estimates only. Actual costs may vary depending on provider pricing changes and usage patterns.

Monthly Usage

Avg Messages / User40
Monthly Requests40,000
Input Tokens20.0M
Output Tokens12.0M

How We Calculated

Sessions / month10x (Few / Week)
Messages / session4 (Short Chat)
Avg msg / user40 messages
Use case💬 Simple Q&A
Input tokens / msg~500 tokens
Output tokens / msg~300 tokens

Projections

Cheapest / month$10.20
Cheapest / year$122.40
Most expensive / year$2,880.00
Cost per user / month$0.010

Cost Comparison

ModelInput CostOutput CostTotal / Month
openaiGPT-4o Mini✓ Cheapest
Best value for high-volume
$3.00$7.20$10.20
googleGemini 3.1 Flash
Best value for high-volume
$6.00$30.00$36.00
anthropicClaude Haiku 4.5
Best value for high-volume
$20.00$60.00$80.00
openaiGPT-4o
$50.00$120.00$170.00
googleGemini 3.1 Pro
$40.00$144.00$184.00
anthropicClaude Sonnet 4.6
$60.00$180.00$240.00

Prices as of June 2026 · Always verify at OpenAI, Anthropic, Google

How the AI Cost Calculator Works

No spreadsheets. No guesswork. Answer 4 simple questions and get an accurate monthly cost estimate for your AI-powered app.

01

Set Your User Base

Enter your expected monthly active users — drag the slider from 100 to 1 million. This is the foundation of your cost estimate.

02

Define Usage Behavior

Choose how often users open your app (daily, weekly, rarely) and how long each session lasts. The calculator converts this into monthly message volume automatically.

03

Select Your AI Use Case

Pick the closest match to your product — Simple Q&A, RAG Search, Summarization, Content Generation, or AI Agent. Each use case maps to realistic token counts based on real-world benchmarks.

04

Compare Costs Across Models

See a side-by-side breakdown of monthly costs for GPT-4o, GPT-4o Mini, Claude Sonnet 4.6, Claude Haiku 4.5, Gemini 3.1 Pro, and Gemini 3.1 Flash — sorted from cheapest to most expensive.

Frequently Asked Questions

Everything you need to know about AI API pricing and this calculator.