The AI Cost Structure Most Enterprises Miss
When a business unit budget for AI, they typically plan for licensing fees or API costs. These are visible, quoted, and easy to include in a spreadsheet. The costs that sink AI ROI are not these. They are the secondary and tertiary costs that appear only after deployment: integration engineering, data preparation, change management, ongoing monitoring, model retraining, and the opportunity cost of the talent that could have been building something else.
Chen, Zaharia, and Zou demonstrated in their 2023 FrugalGPT paper (arXiv:2310.11409) that inference cost alone for large language model applications can vary by more than 98% depending on how requests are routed across model tiers. Most enterprises do not know they have a routing problem because they are using a single model for all tasks regardless of complexity.
The Five AI Cost Categories
| Category | What it includes | Commonly underestimated? |
|---|---|---|
| 1. Compute and inference | API token costs, GPU infrastructure, model hosting, prompt engineering overhead, context window management | Yes: usage grows faster than expected; token costs compound with context length |
| 2. Data and integration | Data pipeline engineering, ETL, embedding generation, vector database hosting, data cleaning, labeling for fine-tuning | Yes: often 2-3x the initial estimate once data quality issues surface |
| 3. Talent and operations | ML engineers, prompt engineers, AI product managers, data scientists, ongoing maintenance hours | Yes: talent cost is underestimated because headcount is often borrowed from other teams |
| 4. Governance and compliance | Legal review, AI policy development, audit tooling, bias testing, documentation, regulatory filings | Yes: almost always missed entirely in the initial business case |
| 5. Change management | Training programs, communication, incentive redesign, workflow redesign, productivity loss during transition | Yes: consistently the largest surprise cost in post-mortems |
How Inference Costs Work
Most commercial AI APIs charge per token, where a token is roughly three-quarters of a word. Every request has an input token count (the prompt) and an output token count (the response). Multiply daily requests by average tokens per request, and you have a daily token budget that translates directly into cost.
The factor most organizations underestimate is the context window. If your AI application maintains conversation history or retrieves documents into the context, every message includes not just the current turn but all preceding turns and retrieved content. A ten-turn conversation with document retrieval can use fifty times more tokens than the user's visible message would suggest. At scale, this explodes costs.
Step 1: Estimate daily active users (DAU) and average interactions per user per day. Step 2: Estimate average tokens per interaction, including system prompt, conversation context, retrieved documents, and response. Step 3: Multiply DAU × interactions × tokens × cost per 1,000 tokens × 30. Step 4: Apply a 2× buffer for context window growth as conversations deepen. Step 5: Add a 20% contingency for unexpected usage spikes. This estimate is your monthly inference cost floor, not ceiling.
The FrugalGPT Framework: Three Optimization Strategies
Chen, Zaharia, and Zou (arXiv:2310.11409) identified three strategies that large-scale LLM users deploy to reduce cost while maintaining output quality. The key insight is that not all queries require the same model capability. Routing simple queries to cheaper models and complex queries to expensive ones captures most of the quality benefit at a fraction of the cost.
Send each query first to the cheapest capable model. If the response meets a quality threshold (scored by a lightweight classifier), return it. If not, escalate to a more capable model. The FrugalGPT paper demonstrated that a well-designed cascade can reduce cost by up to 98% compared to always using the most capable model, with minimal accuracy loss. This is the highest-leverage optimization available to most enterprises.
Shorter prompts cost less. Optimize system prompts to be as concise as possible while preserving performance. Cache responses for identical or near-identical queries: if 30% of your queries are semantically equivalent, serving cached responses for that 30% directly reduces cost by 30%. Semantic caching (using embeddings to find near-duplicate queries) extends this beyond exact matches.
For narrow, high-volume tasks, a fine-tuned smaller model can match a large frontier model at a fraction of the inference cost. The trade-off is the upfront fine-tuning cost and the ongoing maintenance cost when the task definition changes. This strategy makes economic sense when: (1) the task is narrow and well-defined, (2) query volume is high enough that inference savings exceed fine-tuning cost within 6 months, and (3) the task is unlikely to change substantially over that period.
ROI Beyond Cost Savings
The first instinct in an AI ROI calculation is to count what you save: fewer hours, less rework, reduced headcount growth. These are valid, but they undercount the return. AI creates value in four categories, and only one of them is cost reduction.
Cost reduction: Fewer hours on manual tasks, lower error rates reducing rework, reduced need to hire for volume-driven roles.
Speed: Faster time to decision, faster time to market, faster customer response. Speed value is often larger than cost value but harder to quantify directly.
Quality improvement: Reduced error rates in compliance-critical processes, more consistent customer experience, better decision inputs from AI-assisted analysis.
Revenue creation: New product capabilities enabled by AI, improved conversion through personalization, expanded market reach through cost reduction in previously uneconomical segments.
Pull your current AI spend for the last 90 days. Divide it into the five cost categories. If more than 60% is in compute and inference, you likely have a model routing or context management opportunity. If governance and compliance is zero, you have a risk exposure that does not yet appear in your cost model.