Most UK businesses that ship an AI feature discover the real bill a month later. The build quote was clear, the pilot looked cheap, and then the first full invoice from the model provider arrives at three or four times the forecast. LLM API running costs are not mysterious, but they behave differently from every other line in a software budget: you pay per token, per request, per retry and per byte of context you choose to resend, and small design decisions multiply across thousands of daily calls.
This guide is a practical token budgeting playbook for UK finance directors, operations leads and development teams. You will learn how tokens are priced, which design choices drive spend, how prompt caching, batching and model routing change the numbers, what a sensible monthly budget looks like for common workloads, and how to set the guardrails — budgets, alerts, per-feature tagging — that stop an AI feature becoming the most unpredictable cost on the management accounts.
What are LLM API running costs? Definition and context
When your application calls a large language model through an API — OpenAI, Anthropic, Google, Mistral, or the same models hosted through Azure, AWS Bedrock or Google Vertex AI — the provider charges for the text going in and the text coming out. That text is measured in tokens: fragments of words, roughly four characters of English each, so 1,000 tokens is about 750 words. Input tokens (your instructions, the conversation history, any documents you attach) are priced at one rate; output tokens (what the model writes back) are priced at a higher rate, typically three to five times the input price.
On top of raw tokens, several other things show up on the invoice or in the cloud bill: embedding calls for search and retrieval, image or audio inputs, tool and web-search calls charged per use, vector database storage, logging and observability tools, and the compute that runs your own orchestration code. For most business applications, though, 70–90% of the monthly AI spend is simply tokens multiplied by request volume, which is why token budgeting is where cost control starts.
The important shift for budget holders is that these costs scale with usage and design, not with headcount or licences. A Microsoft 365 Copilot seat costs the same whether a colleague uses it twice a month or two hundred times a day. An API-backed feature you build yourself costs nothing when idle and a great deal when a loop goes wrong at 2am. That variable profile is good news for value — you pay for what you use — but it needs the same discipline you would apply to cloud hosting. If you have already run a SaaS spend audit, treat AI APIs as the newest and most elastic line in that review.
Ask your developers for one number before anything else: the average tokens per request (input and output separately) for each AI feature. Multiply by the per-token price and daily request volume and you have a forecast that is usually within 20% of the real bill — far better than any vendor calculator.
LLM API costs by the numbers — the figures that matter
Before looking at tiers and tactics, it helps to anchor on the handful of ratios that drive almost every AI invoice. The figures below are typical of 2026 pricing across the major providers and of the workloads we see in UK small and mid-sized businesses. Exact prices change several times a year, so always check the provider’s current price list before you sign off a forecast.
Two of those four figures are discounts, and that is the point: the list price of a model is only the starting position. The architecture your team chooses decides whether you pay the full rate or a fraction of it. A document-summarising feature that resends the same 20-page policy manual on every call, in real time, on a top-tier model, can cost twenty times more than the same feature built with caching, batching and a smaller model for the first pass.
Frontier models vs small models — how the choice changes the bill
The single biggest lever on cost is which model handles each request. Providers now publish families: a large frontier model for hard reasoning, a mid-tier model for most everyday work, and a small, fast model for classification, extraction and routing. The price gap between the top and bottom of a family is often 15–60× per token. Many teams default to the most capable model for everything during the pilot and never revisit it.
One frontier model for everything
The common pilot default
Routed model mix
Small model first, escalate when needed
Routing does not have to be clever. A common pattern is: a small model classifies the request and handles the easy 70–80% outright; anything flagged as complex, high-value or low-confidence goes to the larger model. The key is to measure quality on your own data before and after — which is exactly the kind of evaluation set we describe in our wider guidance on testing AI features before they reach customers. Without that test set, teams either stay on the expensive model out of caution or switch to the cheap one and quietly lose accuracy.
Hosting the same model through Azure OpenAI, AWS Bedrock or Google Vertex AI usually costs roughly the same per token as going direct, but can bring UK or EU data residency options, consolidated billing against existing cloud commitments, and enterprise support. For many UK businesses the billing consolidation alone is worth it.
Where the tokens actually go — a typical cost split
When we review AI features in production, the spend rarely sits where people expect. The user’s question is usually tiny. The cost lives in everything the application adds around it: the system prompt with tone and policy instructions, the retrieved documents, the growing conversation history, tool definitions, and verbose answers. The chart below shows the share of total tokens by source across a typical customer-facing assistant before any optimisation.
Note that output is only 16% of tokens but, because output tokens cost several times more, it can be 35–45% of the money. That gives two clear targets. First, shrink and stabilise the input: retrieve fewer, better passages, summarise old conversation turns rather than resending them verbatim, and keep the system prompt fixed so it can be cached. Second, control output length: set a sensible maximum, ask for structured answers rather than essays, and avoid asking the model to “think out loud” in the visible response unless you need it.
If your feature draws on business data, the quality of that data matters for cost as well as accuracy: duplicated, stale or badly structured records mean more context sent for a worse answer. Our guide to data quality for business reporting covers the clean-up work that pays off twice when an AI layer sits on top.
AI cost readiness scoring — where most UK businesses sit today
We use a simple scorecard when we take over or review an AI feature. It looks at the controls that separate a predictable AI budget from a surprising one. Most UK SMEs we assess score well on getting the feature working and poorly on everything that keeps it affordable at volume.
The pattern is consistent: the controls that developers add naturally — output limits, separate test and production keys — are usually there. The controls that require a conversation between finance and engineering — an owner, a budget, a cost-per-outcome measure — are usually missing. Fixing that is a governance job more than a technical one, and it is the same muscle a business builds when it keeps an accurate asset register: you cannot control what you have not listed and assigned to someone.
LLM API cost breakdown — typical monthly budgets by workload
The table below gives indicative monthly running costs for common business AI features at UK SME volumes, assuming a sensible model mix and basic optimisation (caching on, output limits set). They exclude build costs, which we cover separately in our breakdown of AI software development pricing. Treat them as planning ranges, not quotes: your own token counts and the provider’s current price list decide the real figure.
| Workload | Typical volume | Avg tokens per request | Indicative monthly API cost | Main cost driver |
|---|---|---|---|---|
| Internal knowledge assistant (staff Q&A over policies and documents) | 2,000–6,000 questions | 6,000 in / 400 out | £40–£250 | Retrieved context size |
| Inbound email triage and drafting | 5,000–20,000 emails | 2,500 in / 300 out | £30–£300 | Volume and attachment handling |
| Website customer chat assistant | 3,000–15,000 conversations | 12,000 in / 1,200 out (whole conversation) | £150–£1,200 | History resent per turn; bot traffic |
| Document extraction (invoices, forms, contracts) | 2,000–30,000 pages | 3,000 in / 500 out per page | £40–£600 | Image pages and model tier |
| Agentic workflows (multi-step tools, research, back-office tasks) | 500–5,000 runs | 40,000–200,000 across all steps | £300–£4,000+ | Number of steps and loop limits |
Three things stand out. First, most single-purpose features land in the tens or low hundreds of pounds a month — often less than the SaaS tool they replace. Second, customer-facing chat costs more than people expect because the entire conversation is resent on every turn, and public endpoints attract bots. Third, agentic workflows sit in a different band entirely: an agent that plans, calls tools, reads results and tries again can consume fifty times the tokens of a single question, and its cost depends on how many steps it is allowed to take. That is where hard step limits and per-run budgets earn their keep.
Exchange rates matter. Most providers bill in US dollars, so a sterling budget moves with the GBP/USD rate, and some add VAT under reverse charge. Ask finance to budget AI APIs with a 10% currency buffer and to code them to a dedicated nominal ledger line, not general “software”.
Cost predictability gauge — how controllable is your AI spend?
Across the AI features we review, we score cost predictability out of 100 using the scorecard above: visibility, architecture and runaway protection, weighted towards the controls that stop surprise bills. The typical UK SME feature we assess lands just over half-way — working, useful, but one viral week or one buggy loop away from a difficult conversation with the finance director.
Scores below 40 usually mean nobody can say what the feature cost last month without opening the provider dashboard. Scores between 40 and 70 mean the spend is visible but not yet tied to business value or protected against misuse. Above 70, the business can answer three questions at any time: what each AI feature costs per month, what it costs per useful outcome (a resolved ticket, a processed invoice, a qualified lead), and what the worst-case month would look like if traffic doubled. That last question is the one most worth being able to answer.
The token budgeting timeline — a realistic 6-week programme
Getting AI spend under control does not need a big project. For an existing feature, or one about to launch, the following sequence fits comfortably into six weeks alongside normal development work.
The order matters. Guardrails go in before optimisation because a single runaway loop can wipe out months of careful savings, and the evaluation set comes before any model change because cheaper-but-worse is not a saving at all. Teams that jump straight to swapping models tend to swap back within a fortnight.
Cost optimisation benchmarks — what each technique typically saves
Every technique below is well established and supported by the major providers in some form. The ranges are the reduction in total API cost we typically see when the technique is applied to a feature that did not previously use it. Savings do not simply add up — caching and routing overlap, for example — but together they routinely bring a feature’s running cost down by more than half.
Typical reduction in monthly API cost by technique
Prompt caching in plain English
Most requests to a business AI feature start with the same block of text: the system prompt, tone rules, product catalogue, policy extract or tool definitions. Prompt caching lets the provider remember that prefix for a few minutes (or longer, at a price) so subsequent requests that begin with exactly the same text are billed at a heavily discounted input rate. The engineering rule is simple but strict: put everything stable at the start of the request and everything variable — the user’s question, today’s date, retrieved passages — at the end. Inserting a timestamp at the top of the system prompt, a surprisingly common habit, breaks the cache on every call.
Batching in plain English
If a job does not need an answer within seconds — overnight categorisation of support tickets, re-summarising a document library, enriching CRM records — most providers will run it through a batch interface at roughly half price, returning results within hours. Many back-office AI tasks fit this pattern perfectly, and moving them is usually a small code change.
Model routing in plain English
Not every request needs the most capable model. A small model can decide whether an email is a complaint, extract an invoice number or tidy up a sentence perfectly well. Routing sends each request to the cheapest model that reliably handles it, using rules, a quick classifier, or a confidence check that escalates uncertain cases. The evaluation set is what makes this safe.
How UK businesses track AI spend today
When we ask UK SMEs running at least one production AI feature whether they can state its cost per month by feature — not just the total provider invoice — the answer is usually no. Most see one combined bill from one or two providers, sometimes buried inside a wider Azure or AWS invoice, with no split between the website chat, the internal assistant and the developer who left a test script running.
Per-feature tracking is cheap to add. The options, from simplest to most capable, are: a separate API key or project per feature (every major provider supports this and reports usage per key); metadata tags on each request where the provider or cloud platform supports them; or an internal gateway that logs every call with the feature name, user, model, token counts and calculated cost. For a business with two or three AI features, separate keys and projects are usually enough. Once you have five or more, or several teams building, a gateway pays for itself in clarity alone.
The same discipline applies to the measurement side of marketing — if you have worked through offline conversion imports for Google Ads, you will recognise the idea: tie the spend to an outcome the business actually values, not to an intermediate metric.
Mini case study — a Leeds distributor’s email assistant
A 45-person wholesale distributor in Leeds built an AI assistant that read inbound customer emails, identified the order or query type, looked up the account in their ERP and drafted a reply for the sales team to approve. The pilot ran on a single frontier model and cost a few pounds a day. Three months after full rollout, with around 600 emails a day and attachments being processed, the monthly provider bill had reached roughly £1,900 — well above the £400 the board had approved.
The review found four causes. Every request resent a 9,000-token product and pricing guide at the top of the prompt, with the current date inserted first, so caching never applied. Every email — including out-of-office replies and delivery notifications — went to the most capable model. PDF attachments were sent as images even when they contained selectable text. And a retry rule on timeouts had no upper limit, so a provider slowdown one afternoon generated several thousand duplicate calls.
The fixes took about three weeks. The date moved to the end of the prompt and the product guide became a cached prefix. A small model now classifies every email first; automated notifications are discarded, routine order-status queries are answered from the ERP directly, and only genuine customer correspondence reaches the larger model for drafting. Text-based PDFs are converted to text before sending. Retries are capped at two with backoff, and the API key has a monthly hard limit with alerts at 50% and 80%. The monthly bill settled at around £350, with draft quality unchanged on the team’s 200-email evaluation set.
“We had assumed the cost was the price of using AI. It turned out to be the price of the way we had wired it up. Once we could see cost per email by type, the decisions made themselves.” — Operations Director, Leeds wholesale distributor
LLM API cost control checklist — the 12-point essentials
Use this checklist before launching any AI feature, and again at each quarterly review. Each item is small on its own; together they are the difference between a predictable line in the management accounts and a recurring surprise.
- Name an owner for every AI feature and its spend, with a monthly budget agreed with finance.
- Use a separate API key or project per feature and per environment so usage reports split cleanly and a leaked test key cannot touch production.
- Set budget alerts at 50%, 80% and 100% of the monthly figure, and a hard spending cap where the provider supports one.
- Log tokens per request — input, cached input, output — alongside the feature name, model and outcome.
- Put stable content first in every prompt and turn on prompt caching; keep timestamps, user details and variable content at the end.
- Set a maximum output length for each call type and ask for structured answers where the output feeds another system.
- Route by difficulty: start simple tasks on a smaller model and escalate only when a rule or confidence check says so.
- Move non-urgent work to batch processing — overnight classification, enrichment and re-summarising jobs.
- Limit retrieval to the passages that actually answer the question; measure whether retrieving five passages beats retrieving twenty.
- Cap retries and agent steps, and give every agent run a token or cost budget it cannot exceed.
- Protect public endpoints with rate limits per user and IP, bot challenges and authentication where possible.
- Report cost per outcome — per resolved query, processed document or qualified lead — in the monthly management pack.
Keep provider API keys out of source code and shared documents, rotate them when staff leave, and store them in a secrets manager. A leaked key is both a security incident and a billing incident — criminals actively scan public code repositories for AI keys and resell access. NCSC guidance on secrets management applies here exactly as it does to any other credential.
Common LLM API cost mistakes to avoid
The same handful of mistakes account for most of the overspend we see. None of them are exotic, and all of them are easier to prevent at design time than to unpick after launch.
- Forecasting from the pilot. Pilot traffic is polite, short and low volume. Real users paste long documents, ask follow-up questions and arrive in bursts. Forecast from expected production volume with realistic token counts, then add 30%.
- Resending everything, every time. Full conversation histories and whole documents on every turn are the most common source of waste. Summarise, retrieve selectively, and cache the stable parts.
- One model for every task. Using the most capable model for classification or extraction is like sending every parcel by same-day courier.
- Breaking the cache by accident. A timestamp, a random ID or a reordered tool list at the top of the prompt means you pay full price for content that never changes.
- Unlimited retries and agent loops. A retry rule without a ceiling, or an agent without a step limit, turns a provider hiccup or a confusing task into thousands of billable calls.
- Leaving public chat unprotected. Bots and scrapers will happily hold conversations with your website assistant at your expense. Rate limits and bot protection are cost controls, not just security controls.
- No owner, no budget. If AI spend sits on a shared card or inside a wider cloud invoice with nobody accountable, it will grow until someone notices — usually at year end.
- Chasing price cuts without testing. Switching to a newer or cheaper model without re-running your evaluation set can save money and quietly lose accuracy, which costs more in staff time and customer trust.
Provider prices and model line-ups change frequently, and older models are retired on published schedules. Build your application so the model name and limits live in configuration, not scattered through the code, and check deprecation notices each quarter. A forced migration with no evaluation set is how quality and cost both go wrong at once.
At-a-glance summary — LLM API running costs
| Topic | Key fact |
|---|---|
| Billing unit | Tokens — roughly 750 English words per 1,000 tokens |
| Input vs output price | Output tokens typically cost 3–5× input tokens |
| Biggest single lever | Model choice — small vs frontier can differ 15–60× per token |
| Where tokens go | Retrieved context and resent history, not the user’s question |
| Prompt caching | Discounts repeated prefixes heavily; stable content must come first |
| Batch processing | Around half price for jobs that can wait hours |
| Typical single-feature budget | £30–£1,200 per month at UK SME volumes |
| Agentic workflows | Can use 50× the tokens of one question; cap steps and cost per run |
| Currency | Most providers bill in USD; budget a 10% buffer |
| Hosting route | Azure, AWS and Google host major models at similar prices with UK/EU residency options |
| Essential guardrails | Budget alerts, hard caps, rate limits, retry and step limits |
| Tracking | Separate keys per feature, token logging, cost per outcome |
| Before changing models | Re-run a 100–300 item evaluation set from real requests |
| Review cadence | Monthly spend report; quarterly model and price review |
How Cloudswitched helps control AI running costs
Cloudswitched designs and builds AI features for UK businesses with running costs treated as a design requirement from day one, not an afterthought. That means baselining token usage, choosing a model mix against your own evaluation data, setting up caching, batching and routing where they fit, and putting the budgets, alerts and per-feature reporting in place so your finance team can see exactly what each feature costs and what it delivers. For existing features, we can review the architecture and usage data and give you a prioritised list of changes with expected effort.
Get a clear view of your AI running costs
Talk to our AI development team about building new AI features with predictable costs, or reviewing the ones you already run.
Talk to us about AI Software DevelopmentFrequently Asked Questions
How much does it cost to run an LLM API feature each month?
For most single-purpose business features at UK SME volumes — an internal knowledge assistant, email triage, document extraction — LLM API running costs typically fall between £30 and £600 a month once basic optimisation is in place. Customer-facing chat assistants often run higher, from £150 to over £1,000, because whole conversations are resent each turn and public traffic includes bots. Agentic workflows that take many steps can reach several thousand pounds. The reliable way to forecast is to measure average input and output tokens per request in testing, multiply by the provider’s current prices and your expected daily volume, and add a buffer of around 30% for real-world behaviour.
What is a token and how is it priced?
A token is a fragment of text that the model reads or writes — on average about four characters of English, so 1,000 tokens is roughly 750 words. Providers price input tokens (everything you send, including instructions, history and documents) and output tokens (what the model writes back) separately, quoted per million tokens. Output is usually three to five times more expensive than input. Some providers also price cached input tokens at a steep discount and offer a lower rate for batch jobs, so the effective price depends heavily on how the application is built.
What is prompt caching and how much does it save?
Prompt caching lets the provider reuse the processing of a repeated block at the start of your requests — typically the system prompt, policies, product data or tool definitions. Requests that begin with exactly the same prefix are charged a much lower rate for the cached part, with discounts of up to around 90% on those tokens at several providers. Across a whole feature, caching commonly reduces total cost by 20–60%, depending on how much of each request is stable. The design rule is to place all unchanging content first and anything variable, including dates and user details, at the end.
Is it cheaper to use Azure OpenAI or AWS Bedrock than going direct to the provider?
Per-token prices on Azure, AWS Bedrock and Google Vertex AI are usually similar to the provider’s own pricing, so the decision is rarely about the headline rate. The benefits of the cloud route are consolidated billing against an existing cloud agreement, which may count towards committed spend, UK or EU data residency options, enterprise support and integration with your existing identity and network controls. Going direct can give earlier access to new models and features. Many UK businesses already on Microsoft 365 and Azure find Azure OpenAI simplest for governance.
How do we stop an AI feature running up an unexpected bill?
Put guardrails in before optimising. Set budget alerts at 50%, 80% and 100% of the monthly figure, use a hard spending limit where the provider offers one, and use separate API keys per feature and environment. In the application, cap retries, set maximum output lengths, give agents step and cost limits per run, and add per-user rate limiting and bot protection to anything public. Finally, give each feature a named owner who receives the alerts. Most runaway bills come from loops, leaked keys or bot traffic, and each of these controls targets one of them directly.
Should we always use the cheapest model?
No. The cheapest model is the right choice only for tasks it handles reliably, which is usually classification, extraction, routing and short rewriting. Complex reasoning, nuanced drafting and multi-step tasks often need a more capable model, and errors there cost more in staff time than the tokens saved. The sensible approach is model routing: start with a smaller model, escalate when a rule or confidence check says the task is hard, and test the setup against an evaluation set built from your own real requests before and after any change.
How do we budget for AI APIs when usage is unpredictable?
Budget in three layers. First, a base forecast from measured tokens per request and expected volume. Second, a growth allowance — typically 30% for the first six months, while adoption settles. Third, a hard cap that defines the worst case you are willing to accept, enforced by provider limits and application rate limits. Report actual spend per feature monthly and cost per useful outcome, so the conversation with finance is about value delivered rather than a raw invoice. Because most providers bill in US dollars, add a currency buffer of about 10%.
What is batch processing and when should we use it?
Batch processing lets you submit a large set of requests that the provider completes within a window — often up to 24 hours — at roughly half the normal price. It suits any job where nobody is waiting for the answer: overnight ticket categorisation, enriching CRM records, re-summarising a document library, generating product descriptions or running evaluation sets. It is not suitable for live chat or anything a user is waiting on. Moving qualifying jobs to batch is usually a modest code change with a straightforward saving.
Do AI API costs include VAT for UK businesses?
Most major AI providers are based outside the UK and bill VAT-registered UK businesses under the reverse charge mechanism, meaning you account for the VAT yourself on your return rather than paying it on the invoice. If you buy through a UK reseller or a cloud marketplace, VAT may appear on the invoice instead. Check how each provider bills you, make sure your VAT number is registered in the account settings, and have your accountant confirm the treatment. Code the spend to a dedicated nominal line so it is easy to review.
How often should we review our AI model choices and costs?
Review spend monthly as part of normal management reporting, and review model choices and architecture quarterly. Providers release new models and change prices several times a year, and older models are retired on published schedules, so a quarterly check catches both savings opportunities and forced migrations early. Each review should re-run your evaluation set on any candidate model, compare cost per outcome against the current setup, and confirm that alerts, caps and owners are still correct as features and staff change.
Related reading
These recent guides cover adjacent parts of keeping technology spend visible, data reliable and assets under control.
Build AI features your finance team can plan around
Cloudswitched builds and reviews AI software for UK businesses with cost tracking, guardrails and model choices designed in from the start.
Explore AI Software Development








