A year of building AI-first SaaS products — our own and clients' — has produced a specific list of architecture and pricing decisions that compound into the shape of the product. Get them right early and the product scales; get them wrong and every subsequent feature sits on broken foundations.
Here are the lessons, written honestly and without the usual "we have shipped so much" throat-clearing.
AI as a feature vs AI as the product
The first decision determines everything else. An "AI feature inside a SaaS" (a chat sidebar in a product record tool) is a very different build from "AI is the product" (an AI-native research tool). The architecture, the pricing, the moat and the unit economics all differ.
For AI-as-a-feature: the AI capability is one of several features a customer is buying. The pricing is per-seat; the AI usage is a cost of goods the business absorbs. Model choice can emphasise quality over cost; the customer is paying for the whole product and the AI cost is a small share.
For AI-as-the-product: the AI capability is the product. Pricing has to reflect usage (per query, per task, per hour of agent operation) because otherwise power users destroy the margins. Model choice emphasises cost per task and routing to cheaper tiers where quality allows. The moat is data (your fine-tunes, your evaluation set, your feedback loop) more than model choice.
Choose deliberately on day one. Changing your mind in year two means re-architecting pricing, billing, routing and often the product itself.
The pricing trap
The pricing trap: flat monthly subscription for an AI-first product where usage varies dramatically. A power user cost you 40× an average user; a casual user subsidises them for a while, then churns because the price is too high for their usage. You end up with high per-user cost of goods and low customer retention.
The fix: usage-based or hybrid pricing from launch. A base subscription plus overages, or pure usage pricing in buckets, or a credit system where credits are consumed by actions. The specific model matters less than the principle: your pricing should track your cost.
Second common pricing mistake: pricing on model calls rather than on business value. "₹2 per API call" is a developer-pricing frame and most customers do not want to think about it. Price on the outcome — "₹500 per month per workflow", "₹50 per document processed", "₹5 per research report" — and let the economics work backward to model choice.
Model routing as the central abstraction
The single highest-leverage architecture decision we have made in AI-first products: the model router. A thin layer in your application that receives every model call, classifies it by task type, picks the right model tier, and emits the request. Logs cost per task-type, per tenant, per feature. Enables A/B testing of model choices without code changes.
Without a router, every model change is a code change. With a router, you move 70% of traffic to a cheaper tier via config in a morning, or test a new frontier model on 5% of requests, or route a specific tenant to a premium tier because they paid for it. The flexibility is operational, not architectural.
Build the router on day one, not after you have 20 model-call sites scattered through the codebase.
Cost accounting as a first-class concern
Every AI request should be logged with the token count, the model, the cost, the task-type, the tenant and the user. This is not optional; it is the ledger that lets you answer "which features are we losing money on" and "which tenants are consuming too much".
A tenant cost dashboard — visible to your team — that shows token spend by tenant alongside their subscription value. Within three months you will find tenants at 5× cost to revenue and tenants at 1/10. Both require action; neither is actionable without the dashboard.
Per-feature cost reporting, so you can answer "is the AI chat feature actually economic for us". Several of our products have retired specific AI features that looked good in the demo and cost more to run than the whole subscription they lived in.
Eval harness as part of the app
The evaluation harness that measures model quality against a golden set should be part of the product, not a side artefact that lives in the data team's notebook. Run it on every deployment, on every model-version change, on a weekly cron against freshly sampled real inputs.
The harness should fail the deployment if quality drops below a floor. This feels aggressive and is the discipline that prevents weeks of silent degradation when a prompt change broke a specific use case.
A good harness captures regressions at the feature level — "the invoice extraction regressed from 94% to 89% in the last deploy" — and routes alerts to the engineer responsible. Without this, regressions compound until a customer notices.
The one architectural thing to not negotiate on
Build the model router and the evaluation harness before the second model-calling feature ships. Both are two to four weeks of work at launch and would be months of refactoring if you leave them. Both pay back within the first production quarter.
Key takeaways
- Decide early: AI as a feature inside your product, or AI as the product.
- Price for usage from day one on AI-first products; flat pricing breaks the unit economics.
- A model router is the central architectural abstraction; build it before features multiply.
- Cost accounting (per token, per tenant, per feature) is non-optional.
- The evaluation harness belongs in the application, running on every deploy.
Frequently asked
TypeScript Next.js frontend, Node.js backend, PostgreSQL for primary data, pgvector for retrieval (unless scale demands a dedicated vector store), AWS Bedrock or Azure OpenAI for model access with regional pinning for Indian clients. Stripe for subscription, metered usage endpoints for overages.
For well-priced AI SaaS at Indian unit economics, gross margins of 55–75% are achievable within 12 months if the routing and pricing discipline is in place. Below that, the usual cause is flat pricing with power-user cost overrun.
Frontier via API for 95% of products. Fine-tuned open models only when cost at steady-state volume justifies GPU hosting or when data residency makes the API path untenable.
In AI-first products the model is not the moat. The moat is: your proprietary data, your evaluation harness, your fine-tunes on that data, your integration depth with customer workflows, and your UX for review-and-correct. Build these from day one; they are what competitors cannot copy in a quarter.
Open-sourcing the model wrapper and templates is fine and often good marketing. Open-sourcing the evaluation harness and prompt library gives away your moat. Draw the line thoughtfully.