Paul · zelo · 22 · ex-42 school
Your AI bill doubled. Here's why — and how to stop it.
An OpenAI or Anthropic bill doubling month over month is rarely a usage problem: it's an architecture problem. No cache, wrong model routing, bloated prompts, redundant calls. I run 6 products with LLMs in production. The 5 levers below cut my API costs by 40–70% without touching quality. They apply in 2–4 weeks on any stack.
Three reasons your bill keeps climbing
Most teams discover these problems on next month's invoice.
-
No cache on similar requests
If two users ask similar questions hours apart, you pay for two inferences. Without semantic caching (Redis + embeddings), every request hits the API even if the answer is 95% identical. On high-volume products, 30 to 60% of calls are cacheable.
-
The same model for every task
GPT-4o or Claude Sonnet cost 10–20× more than Haiku or GPT-4o-mini. Many teams use their most powerful model for everything — including simple classifications, reformulations and content filters that don't need deep reasoning. Task-complexity routing cuts the bill by 30–50% with no perceivable quality loss.
-
Prompts bloated with unnecessary context
Every token sent costs money. A 4,000-token prompt where 1,200 would do is 3× more expensive on every call. Prompts naturally grow over time: accumulated instructions, untruncated conversation history, redundant examples. A prompt audit reduces context size by 20–40% without changing output quality.
5 levers to cut the bill in half
These five mechanisms apply in order — from fastest to highest impact.
-
Semantic cache (immediate effect)
Vectorise each request before sending it to the API. Compare against the Redis cache: if cosine similarity exceeds 0.92, return the cached response. Result: 30–60% fewer API calls on products with high volumes of similar queries (support, FAQ, reformulation). Setup: 1–2 days on a Node or Python stack.
-
Model routing by task complexity
Classify each task before the LLM call: complex reasoning → Sonnet/GPT-4o; classification, reformulation, short summary → Haiku/GPT-4o-mini. A simple router (keywords + prompt length) is enough to start. Typical impact: 30–50% reduction in total bill, zero degradation on complex tasks.
-
Prompt compression and cleanup
Audit every production prompt: remove duplicates, truncate conversation history to 3–5 turns, replace long examples with short representative ones. Set a token budget per task type. Result: 20–40% fewer tokens per call, with no change in output quality.
-
Batching and async queues
Non-urgent tasks (summaries, indexing, data enrichment) don't need real-time responses. Push them into an async queue and batch them (10–100 requests per batch) to use batch APIs (50% cheaper at both Anthropic and OpenAI) and smooth out load spikes. Ideal for document processing workflows.
-
Token budgets and real-time alerts
Set a token budget per user, per session and per feature. Trigger an alert if a feature exceeds 3× its baseline over a rolling 1-hour window. Stop call loops (a bug can trigger hundreds of calls in minutes). This safety net prevents surprise invoices and forces teams to measure their cost per feature.
6 products with LLMs in production — real numbers
Not a blog post: API costs measured on commercial products in production for 14 months.
- 6 active products with integrated LLM (Qplanify, Quia, Unsaid, Chatmately, SearchAI Domain, Cookamo).
- Claude API, OpenAI, embeddings, RAG, autonomous agents: not in a sandbox.
- Semantic cache active on 3 products: 35–55% reduction in API calls in the first two months.
- First recurring MRR from an LLM product: €46/month, API cost < €4 — 10:1 ratio.
What I can do for your team
Two engagements depending on your urgency.
-
2 days
AI cost audit
Analysis of your current LLM stack: API calls, model distribution, prompt sizes, existing cache (or lack thereof). Deliverable: cost dashboard per feature + 10 recommendations ranked by impact and effort. Most teams leave with enough to cut their bill by 30–50% within 2 weeks. Entry at €2,000.
-
Short engagement · 2–4 weeks
LLM optimisation architecture
Setting up semantic caching, model routing, prompt compression, batching, and the budget and alert system. Team onboarding. 30-day async support. For teams who want to cut their bill sustainably without refactoring their codebase.
-
Ongoing · from €2,000/month
Monthly retainer
Continuous cost metric monitoring, proactive alerts, iterative prompt and routing optimisation as new features ship. For teams whose products evolve regularly and want to keep cost per call under control.
Learn more: LLM in production → · RAG enterprise chatbot → · AI consulting pricing →
FAQ
-
What's the fastest lever to reduce an OpenAI or Anthropic bill?
Semantic caching. On a product with recurring questions (support, FAQ, reformulation), 30–60% of calls are cacheable. Setup takes 1–2 days on a Node or Python stack with Redis. The effect shows up on next month's invoice.
-
Can you cut AI costs without degrading quality?
Yes, in 80% of cases. Model routing by task complexity — using Haiku or GPT-4o-mini for simple tasks, Sonnet or GPT-4o for reasoning — cuts the bill by 30–50% with no perceivable difference to users. Degradation only happens if you use a small model on tasks that require extended reasoning.
-
How long before the bill actually drops?
Semantic cache: visible effect in 3–7 days. Model routing: 1–2 weeks to test and validate quality. Prompt compression: 2–4 weeks to audit and update all production prompts. A 40–70% reduction is typically visible within 30 days.
-
My team already uses OpenAI or Anthropic's native caching — is that enough?
No. Native caching (prompt caching at Anthropic, prefix caching at OpenAI) only covers identical prompt prefixes — it doesn't handle similarly-phrased questions. Semantic caching does: it compares meaning and returns a cached response even if the wording differs. Both are complementary.
-
Is batching compatible with a real-time product?
Batching doesn't apply to real-time responses (chat, in-progress completion). It applies to background tasks: summaries, indexing, data enrichment, report generation. These tasks often account for 20–40% of the total bill and batch seamlessly with no impact on user experience.
-
How much does an AI cost audit cost?
The 2-day audit is €2,000–5,000. It covers your full stack, identifies cost leaks and delivers a prioritised action plan. Most teams recover the audit cost in under 2 months from their API bill savings. Full pricing is on the dedicated page.
Cut your AI bill — without sacrificing quality
Cost audit, cache and routing setup, or monthly retainer. Describe your situation in a few lines.