Back to the blog

What an AI application costs and how to lower the bill

Published on · 1 min read

  • AI costs
  • architecture
  • applied AI

An AI prototype looks cheap because few people use it. The day hundreds do, every call to a language model adds up, and the cost per user can decide whether the product is viable. We run our own AI products, so we see it on the invoice every month.

The available guides are mostly from vendors and technical blogs, and savings percentages vary a lot (from 20-40% up to over 60% depending on the case), so take them as orders of magnitude.

The levers that work

  • Prompt caching. If every request starts with the same long instructions, providers let you reuse that prefix at a fraction of the price (one guide mentions about a tenth). It pays off little when each request is different or very short.
  • Route to smaller models. Many requests are simple. A classifier, or even simple rules, can send the easy ones to a cheap model and keep the large model for the hard ones. Validate it against a test set, or quality degrades without anyone noticing.
  • Batch processing. Whatever doesn’t need an immediate answer (nightly summaries, bulk classification) can cost half on batch APIs.
  • Output limits and shorter prompts. Asking for concise answers and trimming unnecessary instructions cuts spend without touching the architecture.

What to measure before optimizing

  1. Cost per completed task, not per call: one task may need several.
  2. Quality before and after each change. Saving 70% by making the product worse is not saving.
  3. Latency. Sometimes the smaller model is also the faster one, and that improves the experience.

Architecture matters as much as price per token: what gets computed, what gets stored and what is never asked again. If your AI product already has users and the bill worries you, we can review it together.