Your AI feature is a cost line, not a feature flag
Every AI request has a price. How AI features quietly change SaaS gross margin, why the monthly invoice is too late, and what to measure daily instead.
October 3, 2026 · 1 min read
A classic SaaS feature costs almost nothing once it ships. An AI feature costs money every time someone uses it. That one difference changes how you should think about margin.
The invoice is a lagging indicator
Most founders learn what their AI feature costs when the provider's invoice arrives — weeks after the prompt change, model upgrade or viral week that caused it. By then the margin hit is history.
What changes margin in an AI product
- A longer system prompt is paid on every request.
- A bigger model can multiply cost per request several times over.
- Power users on flat plans can cost far more than they pay.
- Agent loops and retries turn one user action into many API calls.
Measure it like revenue
You already look at revenue daily. Do the same with AI cost — by model and project, next to revenue — and read the result as gross margin. When margin slips, ask what changed: revenue mix, a provider, or a model.
A simple routine
- Track AI cost per $1 of revenue weekly.
- Set a margin floor alert a few points below today's margin.
- Before shipping a prompt or model change, estimate its cost with the LLM cost per user calculator.
- After shipping, check the next day's margin.
MarginMeter does steps 1, 2 and 4 automatically from your OpenAI, Anthropic and Stripe data.
Start free →Related
- MRR is not revenue — and why that matters for your marginMRR and revenue answer different questions. Why mixing them inflates gross margin, and how to use each one correctly in a SaaS dashboard.
- Stripe fees are part of your cost of goods soldPayment fees are often a SaaS company's third-largest cost after hosting and AI. How to account for Stripe fees in gross margin and estimate them per plan.
- Cloud credits are hiding your real gross marginStartup cloud credits make infrastructure look free until they expire. Why to exclude credits from COGS and plan for the margin you'll have without them.
See your real margin in five minutes.
Connect Stripe and your cost providers with read-only access. Free for two connections — no card required.