Why Your AI Spend Is About to Get Worse (and How to Model It)

Why Your AI Spend Is About to Get Worse (and How to Model It)

Ankur Garg5 min read

Your CFO approved $50K for an AI pilot. Six months later, you're spending $3K a month on API calls, your internal LLM is costing $8K monthly to run, and nobody can tell you why. This is not a failure of your AI strategy. It's a failure to model costs before you scale.

Most mid-market companies treat AI spend like cloud spend in 2015: fluid, hard to predict, and somehow always higher than expected. Except cloud had bill shock once and fixed it with tagging and RI math. AI cost dynamics are messier, less transparent, and hardwired into your product.

If you're building anything with LLMs, agents, or embeddings, you need a cost model now. Not later.

Why AI Costs Hide Themselves

Traditional software scales predictably. You license 100 seats, you pay for 100 seats. Your data warehouse grows, you pay for more storage. Costs ladder.

AI costs are inverted. They're per-transaction, per-inference, per-token. A customer who shouldn't cost anything can blow your budget by asking a question in a chat. An internal agent query you built "just to test" now runs 10,000 times a week because the business depends on it.

Here's what catches most teams off guard: a feature that costs $0.001 per use seems free until you deploy it to 1,000 users and it gets used 50 times a day. That feature is now $50,000 a year. But you didn't budget for it as a feature. You buried it in "platform costs."

The second hidden driver: token density is not consistent. A simple lookup might cost 500 tokens. A complex reasoning query might cost 5,000. An agent that loops on itself can balloon to 50,000 tokens before it stops. Your model runs hotter than you planned.

Third: model prices are dropping, but your usage is rising faster. You might save 20% on inference costs because models got cheaper. But if demand grew 60%, you're still paying more. And the cheaper models often need more tokens to get the same accuracy, which erases the savings.

The Three Cost Layers You Must Track

Start by separating AI costs into three buckets. Most teams mix them, which is why they can't forecast.

Layer 1: API Call Costs (Per Transaction)
This is what you see in your OpenAI, Anthropic, or Cohere bills. You're paying for input and output tokens. Track:

  • Average tokens per request (input + output)
  • Request volume per day (by use case: customer queries, internal search, agent loops)
  • Model choice (GPT-4 costs 3x GPT-3.5; larger models cost more)
  • Batch processing vs. real-time (batch is cheaper if your SLA allows it)

Example math: If an average customer query uses 2,000 input tokens and 300 output tokens, and you charge $0.03 per 1K input tokens and $0.06 per 1K output tokens, that's one query costs roughly $0.082. At 10,000 queries a month, that's $820 in API costs alone.

Layer 2: Infrastructure Costs (The Bill Nobody Talks About)
If you're self-hosting a model, fine-tuning, or running a retrieval-augmented generation (RAG) pipeline, you're paying for compute that has nothing to do with the API vendor's pricing.

  • Vector database storage (Pinecone, Weaviate, or self-hosted): scales with data size and dimension count
  • LLM hosting if you self-serve (GPUs are expensive; an A100 costs $3-5 per hour)
  • Orchestration and monitoring tools (LangChain, LlamaIndex, observability platforms)
  • Data pipeline costs to keep embeddings and fine-tuning data fresh

A mid-market company running a private LLaMA model on two A100 GPUs is spending roughly $5-7K monthly on compute alone, before engineering time.

Layer 3: Time and Data Costs (The Invisible Tax)
Someone has to build the prompt, tune the parameters, manage the data pipeline, monitor quality, and retrain when accuracy drifts. These are not AI costs; they're engineering costs. But they're so intertwined with AI projects that they need a separate line.

  • Data annotation or labeling to validate model quality
  • Retraining and fine-tuning labor (data scientist time)
  • Prompt engineering (yes, this is real work now)
  • Monitoring and guardrails (making sure the model doesn't hallucinate)

Budget 10-15% of your AI infrastructure cost for this layer if you're running anything more complex than a chatbot API wrapper.

How to Build Your Cost Model in Practice

Start here and iterate weekly for the first month:

Week 1: Establish Baseline
Instrument your AI calls with logging. Capture: timestamp, model used, tokens (input + output), cost, latency, user or session ID, use case (customer-facing vs. internal). Use a simple spreadsheet or CSV first. Do not wait for perfect telemetry.

If you're using an API, pull your invoice and reverse-engineer the token usage. If it's opaque, move to a vendor that publishes it.

Week 2: Map Volumes and Velocity
Segment usage by use case. How many chatbot queries per day? How many internal search lookups? How many agent loops? Are they growing daily? Weekly?

Find your growth rate. If it's 10% week-over-week, your AI costs will quadruple in 6 months. That's not a problem to solve later. It's a problem to solve now.

Week 3: Model the Cliff
Project forward 6, 12, and 24 months. What happens if usage stays flat? What if it grows at 5%, 10%, 20% monthly? At what usage level does your current approach break (e.g., API costs exceed your budget, or latency becomes unacceptable)?

That breakpoint is your decision point. It tells you when to switch models, move to self-hosting, or implement caching and batching.

Week 4: Build Your Decision Tree
Create rules: If cost exceeds $X, we move to a cheaper model. If latency exceeds Y ms, we batch. If usage hits Z QPS, we self-host. These should be written down and tied to real decisions, not abstract principles.

Where Most Teams Get Stuck

You'll hit these obstacles:

Opacity from vendors. Not all API providers break down token usage clearly. Cohere and Hugging Face are better than some. If a vendor won't show you per-call costs, avoid them.

Variability in token counts. The same query doesn't always use the same tokens. LLMs have stochastic behavior. Budget for the 95th percentile, not the median.

Cross-subsidization pressure. Once you deploy AI features, product wants them everywhere. Marketing wants them in emails. Sales wants them in CRM. Soon the feature that was "just for customer service" is running on thousands of domains. Model your growth realistically or say no early.

The upgrade trap. A new, better model launches. Everyone wants to switch. The new model is 20% cheaper but your team uses it for new features too, so spend grows 30%. Price benchmarking doesn't work if usage keeps expanding.

The Real Payoff: From Blind to Intentional

A solid cost model doesn't cut your AI spend. It makes you intentional about it.

It tells you which features to kill. It shows you that the internal agent that seemed free actually costs $40K a year. It lets you trade off accuracy vs. cost: a smaller model might be good enough for 60% of queries and saves 40% on API spend.

Most importantly, it moves you from flying blind to flying on instruments. You know your breakpoints. You know when to switch. You can make trades instead of surprises.

Your AI pilot will become expensive. The question is whether you'll see it coming.

Share
Ankur Garg

Author

Written by Ankur Garg. Ex-Great Learning and Capital One, with an IIM-Ahmedabad MBA and an IIT-Madras engineering degree. Has built AI products, sold them into enterprises, scaled EdTech from zero, and led P&L, regulatory and BFSI transformation. Advises mid-market and consumer-tech teams on AI strategy, process redesign, and the adoption work that makes AI actually pay off.

Ankur Garg on LinkedIn ↗

Want this for your team?

Book a free 30-minute AI opportunity assessment. You'll leave with at least one concrete idea.

Book a call

Discussion

Comments are coming soon.