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
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
How We Calculated
Projections
Cost Comparison
| Model | Input Cost | Output Cost | Total / 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.
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.
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.
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.
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.