Your AI Bill is Too High. Here are 5 Fixes.

Your AI Bill is Too High. Here are 5 Fixes.

Dominic Tancredi
Dominic Tancredi

Co-founder, CEO & CTO

Most organizations overspend on AI. The bill climbs, leadership asks questions, and the team scrambles to justify the line item. But the fix is rarely "use less AI." It is almost always "use AI smarter."

Here are five things your engineering and product teams can do right now to reduce AI spend by 30-70%, without sacrificing output quality.

1. Right-Size the Model to the Task

The most expensive model is not always the right one. Classification, extraction, summarization, and structured formatting rarely need frontier-class reasoning. A smaller, cheaper model handles these reliably.

The move: build a simple routing layer. Hard tasks (complex generation, multi-step reasoning, ambiguous context) go to the big model. Everything else goes to the lightweight one. Teams that do this consistently see 40-70% cost reductions on inference with negligible quality loss on the routed tasks.

If you are sending every API call to the same model, you are leaving money on the table.

2. Cache Aggressively

High-volume AI pipelines almost always contain redundancy. The same prompts, the same document types, the same user queries, over and over. Anthropic's API supports prompt caching natively. Even a basic hash-based cache on deterministic outputs (like extracting fields from a known template) eliminates redundant calls entirely.

Organizations running production pipelines often find 20-50% of calls are near-duplicates. Caching those is free savings.

3. Optimize Prompts and Context Windows

Longer prompts cost more. Every token you send and receive is metered. That means bloated system prompts, unnecessary few-shot examples, and full conversation transcripts stuffed into context are all running up the bill.

Practical steps: summarize conversation history instead of passing raw transcripts. Pre-filter documents before injecting them into context. Trim few-shot examples to the minimum needed. Set max_tokens to a reasonable ceiling instead of leaving it wide open.

This is high-ROI work.

4. Batch Everything That Does Not Need Real-Time

A tech lead's first question about any AI call should be: "Does the user actually need this response right now?" If the answer is no, batch it.

Overnight report processing, lead scoring, content tagging, email draft generation, metadata backfills. None of these need synchronous inference. Anthropic's Batch API runs at half the cost of standard calls. Most cloud LLM providers offer similar discounts for async workloads.

The mental model: real-time is a premium feature, not the default. Default to async. Escalate to synchronous only when latency matters to the end user. That single habit can shave 30-50% off a large portion of your inference bill.

5. Self-Host Open Models for High-Volume Commodity Tasks

Once your call volume crosses a certain threshold, the math changes. Running an open-weight model (Llama, Mistral, Qwen) on dedicated GPU instances can be dramatically cheaper per-token than API pricing. You are trading variable per-call cost for fixed compute cost, and at scale, fixed wins.

Tools to Explore

The self-hosting ecosystem has matured fast. Here are the tools worth evaluating:

  • vLLM: The current standard for high-throughput model serving. Supports continuous batching, PagedAttention for efficient memory use, and OpenAI-compatible API endpoints. If you are only going to try one tool, start here.

  • Ollama: The fastest path from zero to running a model locally. Great for prototyping and developer experimentation. Less suited for production-grade serving at scale, but perfect for proving the concept before investing in infrastructure.

  • Mistral AI (La Plateforme and open-weight models): Mistral deserves its own callout. Their open-weight models span a useful range: Mistral Small for lightweight tasks where speed and cost matter most, Mistral Medium for general-purpose work, and Mixtral (mixture-of-experts architecture) for high-quality reasoning at a fraction of the compute cost of a dense model its size. You can self-host any of these through vLLM or Ollama. Mistral also offers La Plateforme, their hosted API, which prices competitively against the major providers and can serve as a middle ground between full self-hosting and paying frontier API rates. Le Chat, their consumer-facing assistant, is worth testing internally to evaluate model quality before committing to an integration.

  • LocalAI: An OpenAI API-compatible runtime that supports multiple model backends. Useful if you want a drop-in replacement for your existing API calls without rewriting client code.

For model selection, start with quantized versions of Llama 3, Mistral Small, Mixtral, or Qwen 2.5. GGUF and AWQ quantized variants give you 80-90% of full model quality at a fraction of the memory footprint, meaning you can run capable models on smaller (cheaper) GPU instances.

A Starting Guide

If you have never self-hosted before, here is a practical path:

Step 1: Pick one high-volume, low-complexity task. Look for the API call you make most often where the output is predictable. Classification, entity extraction, and structured formatting are ideal starting points.

Step 2: Benchmark locally with Ollama. Pull a quantized model, run your test prompts through it, and compare output quality against your current API results. This takes an afternoon, costs nothing, and tells you immediately whether the quality tradeoff is acceptable.

Step 3: Stand up vLLM on a single GPU instance. AWS, GCP, and Azure all offer on-demand GPU instances. A single A10G or L4 instance running a 7-8B parameter quantized model handles surprisingly high throughput for commodity tasks. Run your workload against it for a week and compare the cost to your API bill for the same volume.

Step 4: Add load balancing and monitoring. Once you have validated the economics, move to a proper deployment. Use Kubernetes with GPU node pools, or a managed service like RunPod or Modal if you want to skip the infrastructure work. Add basic observability: latency, throughput, error rates, and output quality sampling.

Step 5: Keep the hybrid architecture. Self-hosting is not all-or-nothing. The best setups run commodity tasks on self-hosted models and route complex work to frontier APIs. That split gives you cost control on the volume work and quality assurance on the hard problems.

The catch with all of this: operational overhead is real. Someone has to manage model serving, scaling, monitoring, and updates. So the honest guidance is this: self-host the high-volume commodity tasks, keep the frontier API for the hard stuff, and do not self-host anything until you have exhausted tips 1 through 4. Hosting your own model to run bloated prompts on tasks that should be batched is burning money in a different way.

The Common Thread: Spend tokens only where they earn their keep.


Is your SDLC setup to scale up?

Check out our quick AI assessment tool to see where your team lands in the AI maturity scale.

-

About the author

Dominic Tancredi
Dominic Tancredi

Co-founder, CEO & CTO

Dominic Tancredi co-founded Dom & Tom in 2009 and leads engineering, AI product development, and technical strategy. He writes on building, modernizing, and operating web, mobile, and AI-powered products.

Ready to build something amazing?

Let's discuss your project and explore how we can help bring your vision to life.