Getting AI under control

Controlling AI token spend: budgets, chargeback and caching

The AI bill arrives as one number from each provider, and nobody can say which team, product or agent ran it up. Finance asks for a forecast, engineering says it depends on customers, and the only control anyone has is turning a key off. Meanwhile the same questions are put to the same models thousands of times a day, and every one is paid for in full.

Nobody is being careless. The spend is simply invisible at the point it is created, so nobody can manage it.

How do you control AI token spend across teams?

You control AI token spend by putting every model call through one gateway that counts tokens, knows who made the call and applies a limit before the request reaches the provider. Limits on requests per second do not work for AI, because one request can cost a fraction of a penny or several pounds depending on the prompt and the model. The limit has to be on tokens or on cost.

The same gateway records the tokens and cost of every call against the team, application or agent that made it, which gives finance a chargeback figure it can trust and gives every team a reason to care. Add a semantic cache that answers repeated questions without calling the model, and routing that sends routine work to cheaper models, and AI spend becomes something you set rather than something you discover on the invoice.

How Kong AI Gateway controls token spendThree teams each with a monthly token budget send model calls to Kong AI Gateway, which counts tokens, applies limits, checks the semantic cache and records cost. Each call ends as a cache hit with no model cost, a call routed to the right model within budget, or a refusal when over budget. Everything feeds a monthly chargeback by team.Claims teammonthly budgetMarketingmonthly budgetEngineeringmonthly budgetKONG AI GATEWAYCount tokens on every callLimits per team, model or userSemantic cache checked firstCost recorded against the callerCache hitanswered withno model costWithin budgetsent to theright modelOver budgetrefused untilthe next windowMonthly chargeback by teamTokens and cost per team, from one record
Illustrative. Every call is counted and charged to the team that made it, and the cheapest call is the one the cache answers.

How Kong solves it

Kong AI Gateway: count, limit, cache and charge back

In a Kong survey of 550 respondents in 2025, 72% expected their spending on large language models to rise, and 37% were already spending more than $250,000 a year. Kong AI Gateway is built to put that spend under control.

Token and cost limits

AI Rate Limiting Advanced limits on prompt tokens, completion tokens, total tokens or cost rather than requests, with different limits per consumer, consumer group, model or provider. A team gets its allowance, a pilot gets a smaller one, and an expensive model carries a tighter cap than a cheap one.

Budgets and forecasts

AI Cost Management in Konnect tracks spend against budgets set for teams, projects, applications, agents or cost centres, compares budget with actual, forecasts where spend is heading and alerts the owner as it approaches the limit.

Cost recorded on every call

Kong works out the cost of each call from its token counts and a pricing catalogue covering text, audio, image and video models, and you can override the rates with your own negotiated prices. Konnect reports tokens, cost and latency by provider and model.

Semantic caching

AI Semantic Cache stores answers indexed by meaning, so a question that has already been answered, even worded differently, is served from the cache without calling the model at all.

Routing to the right model

AI Proxy Advanced balances across models by lowest usage, lowest latency, semantic match or priority, so routine requests go to a cheaper model and the expensive ones are kept for work that needs them.

One record for finance

Because every call passes the same gateway, its figures become the single record of AI spend by team, model and provider, in place of a monthly reconciliation of several provider invoices.

Sources: Kong, enterprise AI spending survey, June 2025; Kong, AI Rate Limiting Advanced plugin; Kong, AI Cost Management; Kong, AI Gateway 2.0 release; Kong, AI Semantic Cache plugin; Kong, AI Proxy Advanced plugin.

What C4C does

Spend you can see, set and charge back

Official Kong partner in the UK

We start where finance starts: what AI costs today, who is creating the cost, and what each team should be allowed. We agree the budget structure and chargeback model with finance and the platform team, then configure Kong AI Gateway to enforce it, with token limits, budgets, caching scoped so one user never sees another’s answer, and routing rules that put each request on the right model.

Our founders spent decades on the vendor side pricing and selling enterprise platforms, so we look at AI spend the way a supplier does: by unit, by tier and by who consumes it. As an official Kong partner in the UK we supply the Kong subscription, implement it and support it, so the numbers and the platform sit with one team.

Talk to us

Get AI spend under control

  1. Tell us which teams and models are in use and roughly what AI costs you each month.
  2. We come back with a budget and chargeback structure, the limits to apply first, and where caching and routing will save most.
  3. We implement it on Kong AI Gateway with your platform team and hand over the policies as code.

We reply within one working day. Prefer email? Write to us at hello@c4cgroup.co.uk.

Prefer email? Write to us at hello@c4cgroup.co.uk.

Questions

Controlling AI token spend: frequently asked questions

Why do request based rate limits not control AI cost?

Because the cost of an AI request depends on how many tokens it uses, not on the fact that it was made. A long prompt to a large model can cost hundreds of times more than a short one to a small model. Kong’s AI Rate Limiting Advanced limits on prompt tokens, completion tokens, total tokens or cost, which is what actually tracks the bill.

Can Kong set different AI budgets for different teams?

Yes. Limits can be set per consumer, consumer group, model or provider, and AI Cost Management in Konnect tracks spend against budgets for teams, projects, applications, agents and cost centres, with forecasts and alerts to the budget owner.

How does semantic caching save money?

A semantic cache matches new prompts against previous ones by meaning rather than exact wording. When a similar question has already been answered, Kong returns the stored answer without calling the model, so the tokens are not paid for twice. We scope the cache so answers are only shared where that is appropriate.

Can Kong use our negotiated AI prices rather than list prices?

Yes. Kong’s pricing catalogue holds rates for text, audio, image and video models, and you can set your own rates per model so the recorded cost reflects what you actually pay.

Can C4C set up AI chargeback for us?

Yes. We agree the chargeback model with finance and the platform team and implement it on Kong AI Gateway, and as an official Kong partner in the UK we can supply the Kong subscription too.

Related Kong use cases

Further reading