The short answer

Unit economics ask a simple question: when we serve one more customer (or one more task), do we make money? Traditional software has famously high gross margins because serving another user costs almost nothing. AI products are different. Every request can consume model compute, so the cost of goods sold (COGS) rises with usage, and a popular feature can quietly lose money. Survey data from ICONIQ's January 2026 State of AI report, covering roughly 300 software executives building AI products, put average AI-product gross margins at around 41 percent in 2024, about 45 percent in 2025, and a projected 52 percent in 2026, with inference accounting for about 23 percent of revenue at the scaling stage. Mature SaaS commonly runs 70 to 90 percent.

The good news is that inference costs have been falling steeply, and margins can be managed. The practical discipline is to measure cost per task from your first prototype, design pricing so that heavy usage pays for itself, choose the right pricing model (subscription, usage, outcome, or a hybrid), and track gross margin by customer and by feature.

This is part nine of the course on lean startup thinking in the AI era. It builds on business models and moats, and links to pricing page optimization for presentation.

This article is for general education, not financial or investment advice. Numbers are illustrative unless attributed, and AI pricing changes quickly, so verify current figures.

Key takeaways

  • AI products have meaningful variable costs. Measure cost per task from day one.

  • Typical AI gross margins are lower than classic SaaS, though improving as inference gets cheaper.

  • In traditional SaaS, heavy usage is a win. In AI, heavy usage on a flat price can be a loss.

  • Choose pricing that aligns price with value and with cost: subscriptions with usage limits, usage-based, outcome-based, or hybrids.

  • Model costs at 10x and 100x current usage before you scale.

  • Optimize cost with model routing, caching, prompt efficiency, and the right-sized model, but don't sacrifice quality that customers pay for.

Why AI changes the economics

In traditional SaaS, the cost of serving an additional user is tiny: some hosting, support, and storage. That's why gross margins of 70 to 90 percent are common, and why companies can grow aggressively and still become profitable.

AI changes three things.

1. Variable costs per use. Each call to a model consumes compute. Costs depend on model size, input and output length, and how many calls a task requires. Agentic workflows, which make many calls to complete a task, multiply this.

2. Usage is unpredictable. A few power users, or one viral use case, can drive costs far beyond average assumptions.

3. Added costs beyond the model. Retrieval infrastructure, evaluation, human review, data labeling, and safety tooling all add expense.

At the same time, costs are falling. Providers have cut prices substantially, and smaller or specialized models can match larger ones on narrow tasks. Industry commentary suggests inference costs for a given capability level have dropped by large multiples over a few years. This means margins can improve, but also that pricing competition is intense, and that your advantage can't rest on cost alone.

The core calculations

You don't need a finance degree. A few formulas cover most needs.

Cost per task

Cost per task = (input tokens × input price) + (output tokens × output price) + other per-task costs (retrieval, tools, human review time).

Illustrative example. Suppose a task sends 3,000 input tokens and gets 800 output tokens. Using hypothetical prices of $3 per million input tokens and $15 per million output tokens:

  • Input: 3,000 × $3 / 1,000,000 = $0.009

  • Output: 800 × $15 / 1,000,000 = $0.012

  • Model cost per task: $0.021

Add $0.004 for retrieval and tooling, and $0.02 in average human review time. Cost per task is about $0.045. (Real prices vary by provider and model and change often.)

If an average customer runs 400 tasks a month, the cost to serve is about $18 a month. A $15 flat plan would lose money on that customer. A $49 plan would earn a healthy margin.

Gross margin

Gross margin = (revenue − cost of goods sold) ÷ revenue.

For AI products, COGS includes inference, hosting, third-party AI services, data and evaluation costs attributable to serving customers, human review, and customer support directly tied to delivery.

Example: a customer pays $49, and costs $18 to serve, plus $4 for hosting and support. Gross margin = ($49 − $22) ÷ $49 ≈ 55 percent.

Contribution margin per customer

Contribution margin = revenue per customer − all variable costs of serving them. It tells you whether each additional customer adds to or subtracts from profit before fixed costs.

Customer acquisition cost (CAC)

CAC = total sales and marketing spend ÷ new customers acquired, over a period.

CAC payback period

CAC payback (months) = CAC ÷ (monthly revenue per customer × gross margin).

If CAC is $300 and a customer pays $49 a month at 55 percent gross margin, monthly gross profit is about $27, and payback is about 11 months. With the lower margins typical of AI products, payback periods stretch compared to classic SaaS, which means you can afford less acquisition spend, or need higher prices, better retention, or lower cost to serve.

Lifetime value (LTV)

A simple version: LTV = monthly gross profit per customer ÷ monthly churn rate.

If monthly gross profit is $27 and monthly churn is 5 percent, LTV ≈ $540, and LTV:CAC = 540 ÷ 300 = 1.8. A common rule of thumb is to aim for 3 or higher, though context matters.

An AI-adjusted view is to subtract variable inference costs before applying retention, cohort by cohort, because usage patterns and costs differ across customers and over time.

Why churn matters more here

Many AI products see higher early churn (the "tourist" effect we discussed in product-market fit). Low margins plus high churn make unit economics fragile. Improving retention can be the single most valuable lever.

Where the costs hide

Track these beyond headline API charges.

Cost Why it surprises
Long inputs Large documents and chat histories multiply tokens
Retries and failures Re-running failed tasks doubles costs
Agent loops Multi-step agents may make many calls per task
Power users A small share can drive most of the usage
Free tiers and trials Usage without revenue
Evaluation and testing Running your evaluation set on each change costs money
Human review People are expensive and often underestimated
Support AI products can generate unusual support burdens
Data and storage Embeddings and logs add up
Compliance and security Audits, tooling, and legal work
Provider minimums and commitments Enterprise agreements may require spend commitments

Create a simple cost dashboard: cost per task, cost per customer per month, top 10 customers by cost, and the share of customers with negative contribution margin.

Optimizing cost without hurting quality

Cost optimization is a technical and product discipline.

Right-size the model. Use smaller, cheaper models for simple tasks (classification, extraction, routing) and reserve larger models for hard reasoning. A "router" that picks the model per task can cut costs significantly.

Reduce tokens. Trim prompts, remove unnecessary context, summarize history instead of resending it, and ask for concise outputs where appropriate.

Cache. Reuse results for repeated or similar requests, and use provider features that cache repeated prompt prefixes where available.

Batch non-urgent work, where providers offer discounted batch processing.

Retrieve selectively. Send only relevant passages, not entire documents.

Set limits. Cap tokens per request, limit retries, and put ceilings on agent steps.

Fine-tune or specialize for high-volume narrow tasks when it reduces cost or improves quality, accounting for the effort and maintenance.

Design the UX to reduce waste. Ask users to confirm before expensive operations, and avoid regenerating by default.

Measure quality alongside cost. A cheaper model that causes more errors and review time can cost more overall. Use your evaluation set to compare options.

Plan for falling prices, but don't depend on them. If your model assumes costs fall 50 percent next year, make sure the business survives if they don't.

Pricing models for AI products

ICONIQ's January 2026 survey reported that about 58 percent of companies still used subscription or platform pricing, 35 percent used consumption-based pricing (up from 19 percent earlier), and 18 percent used outcome-based pricing (up from 2 percent), with 37 percent planning to change their AI pricing within a year. The market is experimenting. Here are the main models.

1. Subscription (flat fee per user or per account)

How it works: A fixed monthly or annual price, often tiered by features or seats.

Pros: Predictable revenue for you, predictable bills for customers, easy to understand.

Cons: Heavy users can make you unprofitable, and seat-based pricing may not match value when AI reduces the number of people needed.

Works best: When usage per customer is fairly uniform and bounded, or when you add usage limits.

2. Usage-based (consumption)

How it works: Customers pay per unit: tokens, documents, minutes, tasks, API calls, or credits.

Pros: Costs and revenue scale together, protecting margin. Fair for variable use.

Cons: Bills are unpredictable, which customers dislike. It can discourage usage and encourage cost-cutting. Tokens aren't meaningful to most buyers.

Tips: Use units customers understand (documents processed, conversations, reports), give clear dashboards and alerts, and offer committed-use discounts for predictability.

3. Credit-based

How it works: Customers buy credits that tasks consume at different rates.

Pros: Simplifies pricing across features with different costs, and prepayment improves cash flow.

Cons: Credit systems can be confusing and feel like hidden pricing. Expiry rules can annoy customers.

4. Hybrid (subscription plus usage)

How it works: A base fee includes an allowance, with usage charged beyond it.

Pros: Predictable baseline and protection from heavy use. The ICONIQ report noted that a light subscription for platform access plus usage for volume is an emerging practice while outcomes are uncertain.

Cons: More complex to explain.

5. Outcome-based

How it works: Customers pay when the AI delivers a defined result: a resolved support ticket, a qualified lead, a recovered payment, a completed claim.

Pros: Strongly aligned with value, easy for buyers to justify, and can command premium prices when the outcome is valuable.

Cons: Requires clear, measurable, attributable outcomes. You bear the risk of failures (cost without revenue). Disputes about what counts. Can become expensive for customers at high volume, leading to renegotiation.

Works best: When outcomes are discrete, verifiable, and tied to a known dollar value. Examples cited in the market include per-resolution pricing in customer support.

6. Value-based pricing

How it works: Price anchored to the economic value created (a share of savings or revenue gained), whatever the cost to serve.

Pros: Potentially the highest margins and strongest positioning.

Cons: Requires convincing quantification of value, and customers may push back.

Choosing a model

Situation Consider
Early MVP, learning what customers value Simple subscription with usage caps, or a paid pilot
Usage varies widely across customers Usage-based or hybrid
Clear, countable results with known value Outcome-based or hybrid with an outcome component
Enterprise buyers needing budget predictability Committed-use contracts or annual platform fee plus usage
Low cost per task, high-volume consumer use Subscription with fair-use limits
Heavy, expensive agentic workflows Usage or outcome-based, with strong cost controls

The ICONIQ report's practical suggestion, to start with a light subscription for access plus usage for volume while outcomes remain uncertain, is a sensible default for early-stage products. Then evolve based on data.

Pricing tactics and cautions

Price on value first, then check cost. Start from what the outcome is worth to the customer, then confirm your margin works.

Test willingness to pay early. Ask real customers to pay in pilots. Don't wait until you've scaled. See MVP types.

Don't underprice to win "AI tourists." Cheap plans can attract high-churn users who cost money. Some analyses suggest churn is higher on lower-priced AI products.

Use usage limits and fair-use policies transparently.

Be careful with unlimited plans. "Unlimited" AI usage can be financially dangerous unless limits are practical and enforced.

Show usage and cost visibility to customers, to reduce bill shock and build trust.

Segment plans by customer type and needs.

Review prices regularly, because costs, competitors, and customer value change.

Communicate changes honestly. Sudden pricing changes can anger customers, so grandfather, notify, and explain.

Avoid dark patterns such as hidden fees or confusing credit systems. See pricing page optimization for presentation principles.

Modeling scenarios

Before you scale, run a simple spreadsheet model with three scenarios.

Scenario Assumptions Check
Base Current usage, current prices Is gross margin acceptable?
Growth 10x users, usage per user up 50% Do costs scale linearly? Do limits protect you?
Stress A viral use case drives 5x usage from 10% of users, and provider prices don't fall Does any customer segment lose money? Can you adjust quickly?

Add sensitivity to: model price changes, churn, CAC, and review costs. If a small shift breaks the model, adjust pricing or architecture before scaling.

Illustrative example

(Hypothetical.) A startup sells an AI contract-review tool to small law firms at $99 per user per month, unlimited reviews.

Month 3 data:

  • Average user runs 60 reviews a month at $0.30 each, so $18 in model and retrieval cost.

  • But the top 10 percent of users run 700 reviews each, costing about $210 a month, more than twice the price.

  • Human spot-checking and support add $12 per user on average.

  • Blended gross margin looks like 55 percent, but 10 percent of customers have negative contribution margin.

Fixes:

  1. Introduce a hybrid plan: $99 includes 150 reviews, then $0.50 per additional review.

  2. Route simple clause checks to a smaller model, cutting average cost per review by about 40 percent in testing, with quality verified on the evaluation set.

  3. Cache standard clause analyses.

  4. Offer annual contracts with committed volume discounts.

Result: margin improves, heavy users pay for what they use, and the average customer sees little change. The founders also learn that heavy users are their best-fit customers, which informs their target segment.

A unit economics dashboard

Track monthly:

  • Revenue per customer

  • Cost per task (model, retrieval, tools)

  • Cost per customer (and the distribution)

  • Gross margin (blended and by segment)

  • Share of customers with negative contribution margin

  • CAC and CAC payback

  • Gross and net revenue retention

  • Cost of human review per task

  • Free-tier cost as a share of revenue

Common mistakes

Ignoring cost per task until scale. Margins surprise you.

Flat pricing for variable costs. Power users erode profit.

Counting on falling prices to fix the business. Plan for the world where they don't fall as fast.

Pricing by tokens to non-technical buyers. Use units they understand.

Unlimited plans without guardrails.

Free tiers with no conversion plan.

Underestimating human review. It's often a major cost.

Optimizing cost at the expense of quality and trust.

Not segmenting. Averages hide unprofitable customers.

Copying competitors' prices. Their costs and value differ.

Frequently asked questions

What are typical gross margins for AI startups?

Survey data from ICONIQ's January 2026 report put average AI-product gross margins at about 41 percent in 2024, 45 percent in 2025, and a projected 52 percent in 2026, compared with 70 to 90 percent for mature SaaS. Margins vary widely, and they're improving as inference costs fall.

What is inference cost?

Inference cost is the expense of running a trained model to produce outputs, typically charged per token or per request. It's a variable cost that grows with usage and is a major part of cost of goods sold for AI products.

Should I use usage-based or subscription pricing for my AI product?

It depends on how variable usage is. Subscription is simple but risks losing money on heavy users. Usage-based protects margin but makes bills unpredictable. Many companies use hybrids: a base subscription with an allowance and usage beyond it.

What is outcome-based pricing?

Customers pay when the AI delivers a defined result, such as a resolved ticket or qualified lead. It aligns price with value, but requires clear, measurable outcomes and exposes you to the cost of unsuccessful attempts.

How do I reduce AI costs?

Use the smallest model that meets quality needs, route tasks by difficulty, trim tokens, cache repeated results, batch non-urgent work, limit retries and agent steps, and measure quality so savings don't cost you customers.

How do I know if my AI product's unit economics work?

Measure cost per task and per customer, compute gross margin and contribution margin by segment, check CAC payback and LTV:CAC, and model growth and stress scenarios. If heavy users lose money or payback is too long, adjust pricing, costs, or targeting.

Where to go next

Even a profitable product needs customers. The next article, Go-to-Market in the AI Era, covers distribution, positioning, product-led growth, and how AI is changing search, content, and sales.

Course contents

  1. The Lean Startup in the AI Era

  2. Customer Discovery and Problem Validation

  3. MVP Types and How to Choose

  4. Building an MVP with AI

  5. Validated Learning: Experiments, Metrics, and Pivots

  6. Product-Market Fit in the AI Era

  7. Business Models and the Lean Canvas for AI Products

  8. Moats in the AI Era

  9. Unit Economics and Pricing of AI Products (you are here)

  10. Go-to-Market in the AI Era

  11. Building an AI-Native Team

  12. Risk, Trust, Compliance, and a 90-Day Plan