AI PM 10X / BUILDING & SHIPPING
AI Cost Management
How to keep the unit economics of an AI feature sane. You pay per token, so cost is something a PM can shape with prompts, caching, and the right model.
Overview
AI cost management is the practice of keeping the per-request cost of an AI feature low enough that it can scale. Every call to a model is billed by the token, separately for what you send and what you get back. A longer prompt, a fatter retrieved context, and a more verbose answer each add to the bill on every single request, so cost grows with usage in a way that a flat SaaS feature never does.
For product managers, this is a lever you can pull without waiting on anyone. Caching repeated context, capping output length, and routing easy requests to a cheaper model often cut spend by half or more with no visible change to the user. The goal is a cost per task low enough, and falling fast enough, that the feature earns its place.
Start here — a 35-minute learning path
Three resources in sequence that cover where the money goes, the biggest lever, and the macro trend
IBM Technology · A plain-English explainer of where the money goes. Watch this first so the rest of the levers make sense.
Anthropic · The single highest-leverage cost lever for most apps. Cached input tokens are billed at a fraction of the normal rate.
a16z · The macro picture. Inference prices have fallen sharply, which reframes what is worth optimising now versus what time will fix.
Why It Matters for PMs
Cost scales with length
You pay per input and output token. A longer system prompt, a fatter retrieved context, or a chattier answer all cost more on every single call. Length is the bill.
Unit economics over volume
A growing monthly invoice is fine if cost per request is falling. The number that decides whether a feature can scale is cost per task, measured against the value it creates.
Most spend is avoidable
Caching repeated context, capping output length, and routing easy requests to a cheaper model often cut the bill by half or more without users noticing any drop in quality.
Key Concepts
Three ideas that explain most of the AI bill, and most of what you can do about it
Token economics
Foundation · Per tokenModels read and write in tokenstokensA token is a chunk of text the model processes, roughly four characters or three-quarters of a word in English. A 500-word answer is around 650 tokens. Providers bill per token, separately for what you send and what you get back.OpenAI on tokens, and you pay for both directions. Output tokens usually cost several times more than input tokensinput tokensThe tokens you send: system prompt, conversation history, retrieved documents, and the user's message. Everything in the context window is billed on every call, so a bloated prompt is a recurring tax.Anthropic on context windows. So a verbose system prompt, a long retrieved context, and a rambling answer are three separate ways the same feature gets expensive.
Caching
Reuse · Highest leverageWhen the same content is sent on call after call, you should not pay full price for it twice. With prompt cachingprompt cachingThe provider stores the processed form of a repeated prefix (a long system prompt, a document, a few-shot block) and reuses it on later calls. Cached input tokens are billed at a large discount versus uncached ones.Anthropic prompt caching the model reuses a processed prefix at a steep discount. With a semantic cachesemantic cacheA layer that checks whether a new request is close in meaning to one already answered, using embeddings rather than exact text match. If it is similar enough, you return the stored answer and skip the model call entirely.GPTCache (semantic cache) you skip the call altogether when a near-identical question has already been answered.
Right-sizing
Match model to taskNot every request needs your most capable model. With model routingmodel routingA rule or classifier that sends each request to the cheapest model that can handle it. Simple classification or formatting goes to a small model, hard reasoning goes to a large one, so you stop paying premium rates for trivial work.Helicone on routing you send easy requests to a small, cheap model and reserve the expensive one for the hard ones. DistillationDistillationTraining a small, cheap model to imitate a large one on a specific task. The student model approaches the teacher's quality on that narrow job at a fraction of the cost per call.OpenAI on distillation goes further, teaching a small model to do one job almost as well as a large one.
Cost levers to know
Hover over any technique for a plain-English explanation and a link to go deeper.
Send and generate less
Pay once, reuse often
Match the model to the job
Know the bill before it lands
In Practice
Four ways cost management changes how PMs build and ship AI features
Decide what is worth optimising now
Inference prices have fallen sharply year on year, so some of your cost problem will solve itself just by waiting for the next model release. The PM job is to separate the spend that hurts the unit economics today from the spend that time will erode anyway. Optimise the first hard, and leave the second alone.
Cut the bill before you cut the feature
When an AI feature looks too expensive to scale, the instinct is to gut it. Reach for the cheap levers first. Cache the repeated context, cap the output length, and route the easy requests to a smaller model. These often halve the cost with no visible change to the user, which buys the feature room to prove its value.
Track cost per completed task
A finance team watching a rising total bill will ask you to cut usage. That is the wrong frame. Instrument cost per completed task and watch it against the value each task creates. A growing invoice with a falling cost per task is a feature that is scaling well.
Pick latency and accuracy with eyes open
Most cost levers trade against something else. A cheaper model can mean lower accuracy, and a batch job means a slower turnaround. Frame each choice as an explicit trade-off for the use case at hand. A nightly report can wait and run on the batch API, while a live chat reply cannot.
Curated Resources
Foundation
Prompt caching – Anthropic Docs
12 min readDocs · Anthropic
The clearest reference for the single biggest cost lever in most AI products. Covers how prompt caching works, what it costs, and when it pays off.
Batch API – OpenAI Platform Docs
12 min readDocs · OpenAI
The default move for any job that does not need an instant answer. Covers how to submit non-urgent requests as a batch for roughly half the per-token price.
LLMflation: LLM inference cost is going down fast
10 min readArticle · a16z
The macro trend in plain terms. Inference prices have dropped sharply, which reframes which cost problems are worth solving now and which time will fix on its own.
Numbers Every LLM Developer Should Know
15 min readArticle · Anyscale
The back-of-the-envelope figures for reasoning about token cost, prompt size, and the price gap between model tiers. The reference that makes cost estimates fast.
Go Deep
LLM Patterns: caching, routing, and fallbacks
40 min readArticle · Eugene Yan
A rigorous practitioner survey of the patterns that keep LLM apps cheap and reliable, including caching, model cascades, and guardrails. Denser than the docs and worth it.
LLM Inference Performance Engineering: Best Practices
25 min readArticle · Databricks
How batching, output length, and serving choices drive the real cost and latency of inference. The engineering view a PM should understand before negotiating trade-offs.
Monitor and Optimize LLM Costs
15 min readArticle · Helicone
A practical walkthrough of tracking spend, then cutting it with routing, caching, and prompt trimming. Useful for setting up the cost instrumentation a PM needs.
On-Policy Distillation of Language Models
35 min readPaper · Agarwal et al., Google DeepMind
The research behind teaching a small model to match a large one on a task. The basis for distillation as a way to push per-call cost down without losing much quality.
GPTCache: a semantic cache for LLMs
15 min readDocs · Zilliz
The open-source project that popularised semantic caching. Read it to understand how returning a stored answer for a near-duplicate question removes the model call entirely.
Videos

IBM Technology
Why Are LLMs Expensive to Deploy?
A clear breakdown of where the money goes when you run a large model in production, from compute to tokens. The best first watch before learning the levers.

PropTech Founder
How I Cut Token Costs by 90%
A founder walks through the concrete moves that cut their token bill by an order of magnitude. Practical and specific rather than theoretical.

Unfold Data Science
The Hidden Token Explosion Killing Your AI Budget
A short, sharp look at how token usage balloons in production and what to watch so the budget does not blow up unnoticed.

AI to Architecture
How Prompt Caching Saves 90% on LLM Costs
A focused explainer on prompt caching, the highest-leverage cost lever for apps with stable context. Shows where the discount comes from and when it applies.

Bill Prin - AI Engineering
The Hidden Cost of Claude Code: Optimization and Token Monitoring
A grounded look at monitoring and controlling token usage on a real coding-agent workload, with the kind of instrumentation a PM should ask for.

Monetizely
Understanding the Complexities of AI Token Pricing
A pricing-focused take on how token costs flow through to product economics, useful for connecting model spend to what you charge users.
Key Takeaway
You pay per token, so length is cost and cost is a product decision. Cache what repeats, cap what you generate, and route easy work to a cheaper model, and you can scale an AI feature on its unit economics rather than its invoice.