At 40 requests/user/day (totaling 12,000,000 queries/mo), running AI coding assistant on Gemma 4 31B Instruct costs $54,000.00 / month ($5.40 / user / mo).
Total expected API invoice for 10,000 Active Users generating 12,000,000 queries.
Direct inference cost per MAU to model your SaaS pricing tiers and gross margins.
Savings generated by exploiting 60% cache hits on prompt context.
| Model | Provider | Monthly Spend (10,000 Active Users) | Cost / User / Mo | Annual Spend | Context Limit |
|---|---|---|---|---|---|
| Gemma 4 31B Instruct (Current) | $54,000.00 | $5.40 | $648,000.00 | 128,000 | |
| GPT-5.6 Terra | openai | $420,480.00 | $42.048 | $5,045,760.00 | 1,050,000 |
| GPT-5.4 Workhorse | openai | $525,600.00 | $52.56 | $6,307,200.00 | 256,000 |
| o3-mini | openai | $216,480.00 | $21.648 | $2,597,760.00 | 200,000 |
| o4-mini | openai | $192,720.00 | $19.272 | $2,312,640.00 | 256,000 |
| o1-mini | openai | $216,480.00 | $21.648 | $2,597,760.00 | 128,000 |
At 40 queries per user/day with Gemma 4 31B Instruct, the estimated cost is $5.40 per monthly active user (MAU). Total monthly bill for 10,000 Active Users is $54,000.00.
Assuming a 60% cache hit rate on repeated system and context tokens, prompt caching saves $0.00 per month ($0.00/year) on Gemma 4 31B Instruct.
With a direct COGS of $5.40 per user/month on Gemma 4 31B Instruct, charging at least $27.00 per user/month ensures an 80%+ software gross margin.