Research report

Per-token economics: what an AI feature actually costs in production

Eight AI feature classes, eight production-grade models, per-user cost scenarios, and the pricing-tier math that decides whether the feature can pay for itself.

Illustration of documents moving through an AI processing workflow
By Ritesh AgarwalReviewed Sep 21, 202621 min read

About these figures

The project observations below describe selected engagements and the reporting period stated in the methodology. They are not a representative industry survey or a forecast for your project. Client-level source records are not published with this article.

TL;DR

  • Median CPMU varies 14x by feature class. A chatbot runs $0.45 per monthly active user. An agent / tool-use feature runs $6.40. Picking the wrong feature class for a $9 starter tier kills the product before it scales.
  • The cheap model wins more often than the expensive one.Claude Haiku 4.5 and Gemini 2.5 Flash deliver 80%+ of frontier-model quality at 5-10% of the cost. For most SaaS feature classes, the higher-end model is paying for capability the workload doesn't exercise.
  • Prompt caching is the cheapest performance lever. Average cache hit rate of 28% on RAG features cuts CPMU by ~22%. Most teams ship without it because the integration is two days of work nobody scheduled.

AI features that look great in demo can quietly destroy the unit economics of a SaaS product. The interesting question is not whether GPT-5 or Claude 4.5 is "better". It's whether the feature can be sold at $29/mo and still leave gross margin on the table.

This analysis compares AI SaaS deployments across eight feature classes, chatbots, RAG / doc Q&A, code generation, copy generation, OCR/PDF extraction, agentic tool-use, image generation, and voice / transcription. For each deployment we logged median tokens in / out per call, calls per monthly active user, prompt cache hit rate, and the actual provider invoice cost attributable to the feature.

Three original metrics anchor the analysis: the Cost-Per-Monthly-User (CPMU), the Gross Margin at Cost (GMC) ratio across pricing tiers, and the Break-Even Usage Ratio (BUR), which answers the practical question of how many users a tier needs to support before the feature stops being a money-loser.

Methodology

The deployments described here are not a random market sample. The article draws on products we built, advised on or had telemetry access to, including B2B SaaS, consumer products and internal tools. The figures are specific to these workloads and should not be treated as a market average. Recalculate costs with your own usage and current provider prices before choosing a model or setting your subscription price.

Token-cost figures use vendor public pricing, verified against the live OpenAI pricing page, Anthropic pricing, and Google AI pricing as of mid-April 2026. Where products used routing across multiple models, we attribute cost by call share. Cache savings are computed using the actual cache-write and cache-read rates published by each vendor.

Finding 1: The 14x cost spread between feature classes is the headline number

Chart 1: Median cost per MAU by AI feature class

Costs by feature class. The p90 values describe the higher-usage end of the reported distribution.

Feature classMedian CPMUp90 CPMU
Agent / tool-use$6.40$28.00
Code generation$3.80$14.00
Image generation$2.20$8.50
Doc Q&A (RAG)$1.20$4.50
Voice / transcription$1.10$4.20
Data extraction (OCR/PDF)$0.85$3.10
Email / copy generation$0.65$2.40
Chatbot / support$0.45$1.80

Sources: Vendor public pricing pages (May 2026); anonymised production AI SaaS telemetry; OpenRouter and llmstats.com benchmarks. Figures rounded.

The most consequential decision a founder makes is which feature class to build, not which model to call. This is a different framing from the "which model wins" question covered in our companion AI prototype codebase audit, but they connect: the prototypes that survive production are usually the ones that picked a defensible feature class first, then made the model decision second. Median CPMU ranges from $0.45 (chatbot / support) to $6.40 (agent / tool-use). The range is not subtle, agentic features cost roughly 14x more per user than basic chat. That difference compounds with scale.

Two factors drive most of the spread: input token volume (RAG, OCR, voice) and output token volume (code generation, agents). A code-gen feature averages 1,200 output tokens per call at $0.05 per thousand. Sixty calls per MAU per month means $3.60 in output cost alone, before any input. A chatbot averages 240 output tokens x 18 calls x $0.015 = $0.06 per MAU on a frontier model. The difference is the shape of the workload, not the model price.

Finding 2: Choose models against the workload

Chart 2: Model price vs quality

X = blended price (USD per 1M tokens). Y = internal quality score on a fixed eval set (0-100).

ModelVendorBlended price (USD per 1M tokens)Quality scoreLatency p50 (ms)
GPT-5OpenAI$31.25951800
Claude Sonnet 4.5Anthropic$9.00941200
Claude Haiku 4.5Anthropic$3.0084650
GPT-5 miniOpenAI$0.7580900
Gemini 2.5 ProGoogle$5.63921400
Gemini 2.5 FlashGoogle$0.3578500
Llama 3.3 70B (self)Self-host$0.1876900
Mistral Large 2Mistral$4.00821100

Sources: Vendor public pricing pages (May 2026); anonymised production AI SaaS telemetry; OpenRouter and llmstats.com benchmarks. Figures rounded.

The table compares the reported costs and scores for this evaluation. A higher score on this fixed set does not establish a model's quality across all tasks. Before choosing a model, test the same workload and input/output mix against current vendor prices, with separate checks for latency, failure rates and the cost of retries.

For bounded tasks such as extraction, classification and routine summarisation, a lower-cost model may meet the required standard. More complex tasks may need a different model or human review. Routing should follow those evaluations: measure which calls can use the cheaper option and define when to escalate, rather than assuming a fixed split.

Finding 3: Prompt caching is the cheapest CPMU lever you have

Across the RAG features in the sample, cache hit rates averaged 28%. On average, that translates to a 22% CPMU reduction, roughly $0.27 saved per MAU on a $1.20 baseline. Some teams reached 50%+ cache hits with deliberate engineering (long stable system prompts, identical tool descriptions, user-context segmentation). Most teams shipped cache-off because nobody had two days free in the sprint to wire it up.

The math is one-sided: cache write costs are nominal; cache reads are 90%+ cheaper than fresh prompt processing on the major providers. For features above $1 CPMU, prompt caching is the single highest-leverage optimisation. Lower than that, it's nice-to-have.

How we score per-MAU economics

1. Cost per Monthly User (CPMU)

CPMU = Total feature spend / Monthly active users

The single most useful number for unit-economic decisions. Compute it per feature class, aggregate CPMU across an entire product hides which feature is bleeding.

2. Gross Margin at Cost (GMC)

GMC = (Tier price - CPMU) / Tier price

Per-tier gross margin contribution from the AI feature alone, ignoring other infra. Useful as a fast sanity check, if a tier shows GMC below 50%, the AI feature is not carrying its weight against the rest of COGS the tier has to absorb.

3. Break-Even Usage Ratio (BUR)

BUR = Tier COGS budget / Feature CPMU

The number of users at the tier price the feature will support before it eats the COGS line. BUR < 1 means even one user costs more than the tier's COGS allows. Useful when stack-ranking which feature classes can fit which pricing tiers.

Chart 3: COGS budget vs feature CPMU

Per pricing tier, the $ available for AI cost (gross margin target) vs median cost of running each feature class.

Pricing tierCOGS budgetChatbotDoc Q&ACode genAgent
$9 starter$2.70$0.45$1.20$3.80$6.40
$29 pro$7.25$0.45$1.20$3.80$6.40
$99 team$19.80$0.45$1.20$3.80$6.40
$299 biz$44.85$0.45$1.20$3.80$6.40

Sources: Vendor public pricing pages (May 2026); anonymised production AI SaaS telemetry; OpenRouter and llmstats.com benchmarks. Figures rounded.

Reading the chart: the dark line is the COGS budget for each SaaS pricing tier (assuming standard gross-margin targets). The bars are median feature CPMU. Where the line is below the bar, the feature does not fit the tier, those features need either a higher tier, usage-based pricing, or a quota that caps cost.

Patterns we keep seeing in token-cost data

  1. Free-tier AI features at scale will lose money regardless of how cheap the model gets. The model price has dropped 30x in 18 months and a free tier is still a money-loser at meaningful MAU. If a free tier is the acquisition channel, set hard usage caps.
  2. Output tokens are the cost line that actually hurts. Output is 4-5x the per-token price of input on every major provider. A feature that shortens its average output by 30% saves more cost than a model downgrade at the same quality target.
  3. Self-hosted Llama is rarely cheaper than the hosted alternatives until you cross ~50M tokens per day. Below that, the GPU and ops cost exceeds the API cost. Above that, the math flips fast, and an extraction-heavy product can hit it sooner than expected.
  4. Latency cost is real. Faster models produced 8-12% higher conversion and engagement metrics in A/B tests across the sample. Cheaper models that are also faster (Haiku, Flash) win on two axes simultaneously.
  5. The biggest CPMU reduction in the dataset was achieved by changing UI, not models. A doc-Q&A product that asked "is this what you meant?" before the full LLM call cut median CPMU by 41% on the same model and workload. The cheapest token is the one you don't send.

Recommendations

For founders pricing an AI SaaS

Compute CPMU before you set tier prices, not after. The exercise is half a day of work and prevents the most expensive mistake in this category, launching a $9 starter with a $4 CPMU agent feature inside it. Use the BUR table above as a sanity check.

Building this kind of unit-economic discipline in is exactly what our AI SaaS product development engagement is built around, multi-tenant architecture, billing infrastructure, model routing, prompt caching, and the dashboards founders actually need to watch CPMU drift.

For founders adding an AI feature to existing SaaS

Treat the model layer as an internal API. Wrap it once, route across providers, log token-level cost per call, implement prompt caching from day one. The team that does this in week one saves three weeks of refactor work in month six. Our API & integration practice has shipped this pattern across most of our recent AI engagements.

Limitations

The article focuses mainly on B2B SaaS. Consumer AI products with very high call-per-user counts (chat companions, creative tools) have a different cost shape and don't fit cleanly on the tier chart above.

Vendor pricing changes every few months. The relative rank of cheap-vs-expensive models has held for the last 18 months, but absolute numbers should be re-checked at the time of any decision.

The dataset, summarised

FeatureMedian CPMUp90 CPMUIn tokensOut tokensCalls/moCache hit
Chatbot / support$0.45$1.801,2002401832%
Doc Q&A (RAG)$1.20$4.506,0004001228%
Code generation$3.80$14.004,0001,2006018%
Email / copy generation$0.65$2.408006002212%
Data extraction (OCR/PDF)$0.85$3.103,500300108%
Agent / tool-use$6.40$28.008,0001,8003522%
Image generation$2.20$8.504000140%
Voice / transcription$1.10$4.209,00060084%

The decision that moves CPMU more than the model choice

The number that matters is CPMU by feature class, not the model price card. Two products that pay GPT-5 the same per-token rate will have wildly different unit economics depending on which feature they built and how the workload shapes up. Pricing your SaaS without knowing CPMU is pricing a restaurant menu without knowing food cost.

If you want a CPMU model run against your own product telemetry, send us a sample, we'll fit it to the framework above and send back a worked spreadsheet.

The cost and architecture studies that pair with token economics for AI SaaS planning:

The two engagements where this lens is part of the work, plus the calculator that quotes a budget against your scope:

Frequently asked questions

Which AI model class wins on cost-vs-quality for typical SaaS features?
There is no universal winner. Evaluate each candidate on the same production tasks, input/output mix, latency target and acceptable error rate. Use a lower-cost model where it meets those requirements, with escalation for cases that need more capable models or human review.
What is the typical Cost Per MAU on an AI feature in a SaaS plan?
The cost table in this article ranges from $0.18 for lightweight doc-Q&A features to $4.30 for heavy code-gen. The crossover point where AI cost eats SaaS margin sits between $1.20 and $1.80 CPMU on a typical starter-tier subscription.
How do I get my AI feature's CPMU down without changing the model?
Change the UI before the model. A doc-Q&A product in our sample cut CPMU 41% by adding a pre-search step that turned questions into structured filters, fewer model calls per session, same answer quality. UI-side caching of recent queries is the second-biggest lever.

Our clients

UK · Europe · Worldwide

Selected case studies

What we built, how it works and the results for our clients.

Creoate product interface01
B2B commerce

Eight years behind a wholesale marketplace

Next.js storefront, Python ingestion pipelines, DynamoDB data layer and AWS infrastructure.

8+ yearsdevelopment and support
Ontick product interface02
Event technology

Ticketing owned by the event team

Multi-organiser commerce, Stripe instalments and two native apps in one connected platform.

£2M+ticket sales processed
Easyship product interface03
Global logistics

Helping shippers compare their options

Rate, tax and duty calculators, server-rendered courier pages and a custom MongoDB CMS.

550+couriers in the calculator
TEFL.ie product interface04
Education & training

Connecting course sales to the classroom

WordPress and WooCommerce, a Moodle LMS, Stripe deposits and Zoho CRM, tied together with Zapier automation.

Since 2017development and support
All White Laser product interface05
Medical aesthetics

From equipment finance to clinic support

A lead-to-billing system on GoCardless Direct Debit, provider certification, and a React Native app for machine owners.

9 yrsdevelopment and support
Decofetch product interface06
Luxury commerce

A custom home for designer furniture

Server-rendered Next.js commerce over a Laravel API, bespoke operations tooling and re-architected AWS infrastructure.

0→livemarketplace development
BA Engine Room product interface07
AI operations

Connecting discovery, contracts and delivery

Discovery briefs, e-signed contracts, Stripe deposits, delivery milestones and time tracking in one operational system.

0→1custom platform development
PlusHeat product interface08
Home services

Helping customers choose their boiler cover

Custom plan configuration, postcode-qualified lead journeys, CRM synchronisation and campaign landing pages.

5 yrswebsite development and support
Léonia product interface09
Beauty commerce

Shopify shaped around a beauty brand

Custom theme, customer accounts, loyalty rewards, referrals and gift-with-purchase offers.

5 yrsShopify development and support
Shutters 365 product interface10
Home improvement

From window measurements to a priced order

A seven-step product builder with live previews, sample orders and supplier tools.

7-stepproduct configurator
Bloc Ads Manager product interface11
Advertising

From targeted ads to venue check-ins

Campaign creation, audience targeting, in-app ads and reporting linked to venue check-ins.

check-inscampaign attribution
Bloc product interface12
Social events

Four years across the app and operations

Mobile app, backend, advertising tools, a digital marketplace and website.

4+ yrssupport across five codebases
Zonely product interface13
Social mobile

Two apps, one real-time conversation marketplace

Customer and buddy apps with per-minute billing, wallets, moderation and admin tools.

2 appsfor iOS and Android
Player Profile Hub product interface14
Grassroots football

Helping grassroots players get discovered

Verified profiles, video highlights, coach discovery and safeguarding on web and mobile.

0→1custom platform development
DeepSpatial product interface15
Geospatial AI

Connecting clients, investors and emerging talent

Corporate and investor pages, the Xploor talent platform and ongoing releases on AWS Amplify.

2 yrsdevelopment and support
Yippee Malta product interface16
Travel

A booking journey the tour team owns

A multilingual website connected to the booking API, with deposits, coupons and affiliate tracking.

6languages across the booking journey
Professional Energy product interface17
Energy brokerage

Tenders, contracts and accounts brought together

Supplier tenders, contract management, brokerage accounting and client records.

100+suppliers per tender

Tell us what you are trying to build.

A thirty-minute call with the engineer who would run it.

Discuss your project