All insights

AI in production

AI development cost: what production AI costs in SaaS

The model price is a dial. Tokens per successful action is the bill.

Co-founder and CEO, Datics AIUpdated 7 min read

In brief

The AI development cost that decides your margins in a live SaaS product is the running cost, not the build. It has four lines: model inference, retrieval and storage, data movement, and the engineering that keeps answers correct. At model prices published in November 2026, one retrieval-heavy user action costs from under a tenth of a cent to several cents, so tokens per action times actions per month sets the bill.

On this page
  1. 01Where AI development cost goes in a live SaaS product
  2. 02What the models cost per token
  3. 03A worked example: cost per action and per month
  4. 04The lines teams forget: retrieval, guardrails and data movement
  5. 05Engineering cost: evaluation, monitoring and model churn
  6. 06How to model the number before you build
  7. 07What we see in production
  8. Frequently asked questions

01Where AI development cost goes in a live SaaS product

Most budgets for AI features are built around the model price list. That is the wrong starting point. In a product that already has paying customers, the cost of an AI capability shows up in four places, and only one of them is the model.

Four stacked layers of production AI cost: inference, retrieval and storage, data movement, engineering
Three lines arrive on the cloud bill; engineering arrives as team time.
Cost lineWhat drives itBiggest lever
InferenceInput and output tokens, model tier, number of calls per actionContext discipline, caching and model routing
Retrieval and storageIndex size, retrieval calls per action, guardrail checksChunking, filters and fewer calls per action
Data movementEgress to the internet, traffic between regions and cloudsRun inference next to the data it reads
EngineeringEvaluation, monitoring, prompt changes, model upgradesA regression set that reruns on every release

The first three lines are metered and arrive on a cloud bill. The fourth arrives as team time, and it is the one most plans leave out. A feature that is cheap to call and expensive to keep correct is not a cheap feature.

02What the models cost per token

Model prices are published per million tokens, separately for input (what you send) and output (what the model writes). These are the list prices we read on the vendors' official pricing pages on November 4, 2026, for standard on-demand use.

  • Anthropic: Claude Opus 5.5 at $4 input and $20 output; Claude Sonnet 5.5 at $2 and $10; Claude Haiku 5.5 at $0.10 and $0.50 for prompts up to 100,000 tokens.
  • OpenAI: GPT-6 Astra at $10 input and $50 output; GPT-5.4 mini at $0.75 and $4.50; GPT-5.4 nano at $0.20 and $1.25.
  • Google: Gemini 3.1 Pro Preview at $2 input and $12 output for prompts up to 200,000 tokens. Gemini 3.8 Flash is $0.75 and $3.75 through December 31, 2026, rising to $1.50 and $7.50 from January 1, 2027. Gemini 3.5 Flash-Lite is $0.30 and $2.50.

Three modifiers matter as much as the headline price. Batch processing is half price on all three vendors for work that does not need an answer in real time. Cached input is billed at a fraction of the normal input price. Anthropic charges 10 percent of the input price for a cache hit on most models and 5 percent on Opus 5.5 and Sonnet 5.5. And location has a price: Anthropic applies a 1.1x multiplier when you require inference to stay in the United States.

The spread between tiers is the real story. The most expensive model on this list costs one hundred times more per input token than the cheapest. Which tier each task needs is an engineering decision you can test, not a preference.

03A worked example: cost per action and per month

Here is the arithmetic for a typical retrieval-heavy feature, such as an assistant that answers a user's question from their account data and your help content. The prices are the published ones above; the traffic is an assumption you should replace with your own.

Five steps from tokens per action to monthly AI inference cost, with retries and caching
Replace the assumed traffic with your own numbers.
  1. 01

    Count tokens per action. Assume 6,000 input tokens (instructions, retrieved records, the question) and 500 output tokens.

  2. 02

    Price one action. On Claude Haiku 5.5 that is about $0.00085. On Gemini 3.8 Flash, about $0.0064. On Claude Sonnet 5.5, $0.017. On Claude Opus 5.5, $0.034. On GPT-6 Astra, $0.085.

  3. 03

    Multiply by real volume. Assume 10,000 active users who each run 20 actions a month: 200,000 actions.

  4. 04

    Read the monthly inference line. About $170 on Claude Haiku 5.5, $1,275 on Gemini 3.8 Flash at its 2026 price, $3,400 on Claude Sonnet 5.5, $6,800 on Claude Opus 5.5 and $17,000 on GPT-6 Astra.

  5. 05

    Add retries and multi-step work. If one action in five needs a second call, multiply by 1.2. An agent that takes four model calls to finish a task multiplies the whole line by four.

  6. 06

    Apply caching. If 5,000 of the 6,000 input tokens are the same instructions and reference text on every call, cache hits on Claude Sonnet 5.5 bring the action to about $0.0075. The month comes to abou

The same feature can cost $170 or $17,000 a month on inference alone, before a single line of product code changes. That range is why we never quote AI running cost from the price list. We quote it from the tokens a real action uses.

04The lines teams forget: retrieval, guardrails and data movement

Retrieval has its own meter. On Amazon Bedrock, managed Knowledge Bases list index storage at $5.00 per GB of raw data per month and standard retrieval at $1.00 per 1,000 Retrieve calls. AWS's own example of 50 GB with 100,000 retrievals a month comes to $350. Self-managed vector stores move that cost into database and compute lines instead, but they do not remove it.

Safety checks are metered too. Bedrock Guardrails list content filters at $0.15 per 1,000 text units, where a text unit is up to 1,000 characters. Checking every input and every output doubles the number of units you pay for, which is often right for customer-facing features and rarely needed for internal ones.

Data movement is the easiest line to miss because it rarely appears on the AI invoice at all. Azure lists internet egress from North America at $0.087 per GB after the first 100 GB a month, and $0.02 per GB between regions inside North America. AWS gives 100 GB of internet egress free each month across services. A model that sits in a different region or cloud from the records it reads pays these rates on every retrieval, every log export and every evaluation run. If you are weighing platforms for this reason, our comparison of Amazon Bedrock, Azure AI and Vertex AI for existing SaaS covers where data gravity should decide the choice.

05Engineering cost: evaluation, monitoring and model churn

The engineering line is the one that keeps growing after launch. Models change on the vendor's schedule, not yours. The Anthropic pricing page lists several older models as retired, and Google's Gemini 3.8 Flash price doubles on January 1, 2027. Every model upgrade, price change or prompt edit is a behavior change in your product, and someone has to prove the feature still works afterward.

That proof is an evaluation set: real cases from your product with the expected answer for each, rerun on every release and every model change. Teams that skip it pay later in support tickets and in engineers checking answers by hand. Teams that build it early can switch to a cheaper model with evidence instead of hope, which is usually the largest cost saving available after launch.

Monitoring belongs in the same line. You need tokens, latency and outcome logged per tenant and per feature, or you cannot tell an expensive feature from an expensive customer.

06How to model the number before you build

The number to model is cost per successful action, not cost per token. A successful action is one complete user outcome: the answer accepted, the record updated, the draft approved. Its cost includes retrieval, retries, guardrails and the failed attempts along the way.

Four steps to model AI cost: cost per successful action, times monthly volume, compared with plan price, then fix the design
Model cost per successful action, not cost per token.

Take that cost, multiply it by realistic monthly volume per account, and compare it with the price of the plan the feature sits in. If the ratio is uncomfortable, fix it in the architecture before launch: smaller context, a cheaper model for the easy steps, caching, batch work moved off the real-time path. Repricing a plan after customers depend on a feature is much harder. We cover the engineering levers in how to reduce AI infrastructure cost in production.

07What we see in production

We measure inference economics as cost per successful task, because that is the number a product leader can compare with a plan price. Cost per token tells you about the vendor. Cost per successful task tells you about your feature.

When we test an AI feature a team has already built, we grade cost per user next to answer quality, grounding, data separation and response time, on 50 of the product's own cases. Those cases then stay with the team to rerun on every release, so a later model change or prompt edit can be checked against the same evidence.

Our build work ends with a cost-to-serve estimate and a packaging recommendation: include the capability in the existing plan, or sell it as a paid AI tier. Making that call before launch is far easier than after.

By default the AI runs in the customer's own cloud, on the model they choose. That keeps inference next to the data it reads and keeps the security review inside boundaries the customer already approved. On an analytics sync we redesigned for a client, the job used to reload its full history on every run, so memory use and run time grew with the data. It now reads only new rows. Fixing what a job reads is often the cheapest saving. The model is the smaller part of the bill. The data access, permissions, tests and releases around it are the larger one.

Frequently asked questions

How much does it cost to build an AI feature into an existing SaaS product?

The build cost depends on what the capability needs to change in your product: data access, permissions, integrations and evaluation. We start with a two-week Planning Sprint at $5,000 that maps where AI fits, what it depends on and a fixed quote for production, and the fee counts toward that production work.

Is a cheaper model always the cheaper option?

No. A cheaper model that fails more often costs more per successful action once retries, escalations and support time are counted. Route each task to the cheapest model that passes your evaluation set for that task, and keep the premium model for the steps where it measurably wins.

Should we run our own open-weight model to save money?

Only if your traffic is high and steady. Self-hosted models need accelerators that cost money while idle, plus engineers to run the serving stack. Model both options against your real traffic curve, including the people cost, before committing. Compare the result with the cost per successful action on a hosted model, counting batch and cached input pricing.

How Datics helps

Datics specializes in Brownfield AI: production AI inside software people already rely on. Once your AI is live, AI Care re-tests it every month on your own cases and keeps it accurate and affordable, for $1,500 a month per capability. Not sure it is ready? The AI Scorecard tests it on 50 of your own cases in two weeks, for $5,000.

›References (6)
  1. Anthropic: Claude API pricing
  2. OpenAI: API pricing
  3. Google: Gemini API pricing
  4. AWS: Amazon Bedrock pricing
  5. Microsoft Azure: Bandwidth pricing
  6. AWS: Amazon EC2 On-Demand pricing, data transfer

Related work

Case studies from our projects on the same subject.

SovrenAI

Legal Tech · TITO, an AI claim verification engine

Every verdict traces to the founder's own rules, with the model only suggesting

A founder's AI-coded prototype could not be measured or audited; now rules anchor every verdict and each answer shows how it was reached.

AI-native productAudit trailProduction AI
Read case study

SovrenAI

Other software · Enterprise Builder, an AI internal app builder

Teams build internal apps on company data, a person confirming each guessed join

An agent writing queries over unknown schemas can join the wrong tables; here every guessed join waits for a person to approve it.

AI-native productAgentic workflowsHuman approval
Read case study

Builder Kin

EdTech · Child-safe AI website builder

Kids build websites with AI, and nothing goes online until a parent approves

Generative AI tools had no safeguards for children. Builder Kin restricts generation in the backend, and a parent approves every publish.

AI-native productHuman approvalEdTech
Read case study

Your customers already expect AI from your product.

Let us make it real inside the product you run today.