AI-003
AI Gateway, Token Metering and Unit-Cost Intelligence
Meter usage at the gateway, apply policy-aware routing and allocate AI run cost to approved owners.
- Challenge
- AI spend is hard to attribute, forecast and optimise when model usage bypasses a governed gateway.
- Approach
- Meter every request, enforce policy and tagging, allocate cost to owners and use variance signals to drive optimisation and budget action.
- Primary KPI
- AI consumption attributed to use case, owner and cost centre.
- Impact
- Predictable AI opex, credible showback and clearer unit-cost decisions.
Executive Summary
AI consumption becomes difficult to govern the moment it is treated as a provider invoice rather than as an operating signal. Bills aggregate across models, keys and environments, while the real business questions are much more specific: which use case generated the spend, which owner approved it, whether the workload is inside budget, and whether the current model and prompt design are economically justified.
That is why the gateway matters. It is not just a proxy in front of model calls. It is the control point where requests are authenticated, tagged to an approved use case, checked against policy, routed to the right model tier, metered for token and latency behaviour and written into an allocation model that finance can actually review. Without that layer, showback becomes guesswork and optimisation discussions stay anecdotal.
The strongest internal version of this playbook needs to explain the mechanics in detail. Technology teams want named components and data flows. Finance wants to understand how metering reconciles to invoices and what logic drives cost allocation. Sponsors want to know when variance triggers action and when a workload should be optimised, constrained or retired.
This page therefore goes deeper on unit-cost intelligence than a standard overview. It describes how gateway tagging, model routing, budget envelopes, variance rules and optimisation levers interact so the organisation can treat AI like a governed operating cost rather than an unpredictable experiment line.
For internal audiences, the important distinction is that token economics is not a narrow platform concern. It is the meeting point between application design, model policy, sponsor ownership and finance governance. If any one of those parties sees only its own slice of the picture, the organisation can still end up with technically correct telemetry and commercially poor outcomes. That is why the operating model below keeps the gateway, allocation logic, budget review and optimisation loop in one story rather than describing them as separate disciplines.
Business Challenge
Provider invoices usually aggregate usage at account or key level, which makes it impossible to see who drove cost, whether spend matches approvals or which workloads are worth optimising.
Without gateway tagging, policy checks and model-routing visibility, teams discover overruns after the invoice rather than during the operating cycle.
Enterprise Scenario
A central AI platform team exposes approved model access through a gateway to multiple business units, product teams and internal assistants, with finance expecting consumption to map cleanly to owners and cost centres.
The work is triggered when monthly spend grows faster than forecast, when showback disputes emerge because usage is not tagged consistently, or when executives ask for unit-cost visibility before approving wider rollout.
The operating environment is mixed and fast-moving: development and production workloads coexist, model choices change quickly, provider pricing can move, and both platform and finance teams need a common evidence base for intervention.
Specific Risks
| Domain | Risk | Impact if unaddressed |
|---|---|---|
| Financial | Consumption not attributed to approved owners | AI opex grows without sponsor accountability. |
| Operational | Model routing lacks cost signal | Expensive models are used by default for routine tasks. |
| Control | Policy checks not enforced at the gateway | Restricted use cases or environments bypass controls. |
| Reporting | Usage data does not reconcile to invoices | Finance disputes allocation and showback loses credibility. |
Workflow
The gateway meters every request, applies policy rules, enforces mandatory use-case tagging, routes workloads to the permitted model tier and records token, latency and cost data against the approved owner. Finance and workload owners review variance, while platform teams use the same telemetry to trigger optimisation, routing changes or guardrail action.
The workflow intentionally runs from application request through budget action rather than stopping at consumption capture. Metering alone does not control cost; it becomes useful only when the data is allocated, forecast, challenged and linked to optimisation or portfolio decisions.
Wide diagram — scroll horizontally, or use the arrow keys once it has focus. A text description is available to screen readers.
Representative operating workflow for this scenario. Sequence, thresholds and review depth should scale with transaction volume, data sensitivity and control risk.
Systems and Data
Named components typically include an API gateway or proxy, identity provider, policy engine, request-tagging standard, model-routing service, usage telemetry pipeline, billing export ingestion, cost-allocation model, showback dashboard, budget-alert engine and optimisation backlog. In larger environments there is often a separate feature-flag or workload-registry layer too, because finance needs a stable list of approved workloads while platform teams need a controlled way to turn routing, throttling or model-tier changes on and off without losing attribution continuity.
Each application request enters through the gateway with a workload identifier, environment and owner context. Authentication confirms the caller, policy rules check whether the use case and model choice are approved, and routing selects the model tier. Tokens, latency, retries and error states are captured at call level and streamed into a telemetry store. Billing exports and infrastructure cost are reconciled into an allocation layer, which then produces showback, budget variance, forecast and unit-cost reporting for each approved workload. In practice, finance usually needs one more step: a controlled reconciliation between gateway telemetry and provider invoice line items, with documented treatment for shared platform costs such as vector storage, embedding pipelines or gateway infrastructure. Without that reconciliation discipline, the showback model may be operationally useful but still lose trust at month end.
Systems
- AI gateway or proxy
- Identity and auth services
- Application telemetry
- Billing and usage exports
- FinOps or showback reporting
Data used
- Use-case ID
- Business owner and cost centre
- Model and endpoint
- Token and latency metrics
- Budget envelopes and thresholds
Human Controls
Illustrative decision logic usually combines hard controls and review thresholds. Requests missing mandatory tags are blocked. Restricted environments cannot call premium tiers without exception approval. A use case exceeding burn-rate threshold triggers sponsor review. Low-complexity workloads with high unit cost enter optimisation backlog for prompt trimming, cache review or model downgrading. Persistent variance after optimisation triggers a portfolio decision on whether the workload should scale, be constrained or retire. Teams often add further rules around development usage, such as daily spend caps or enforced lower-cost default models, because uncontrolled experimentation is one of the fastest ways for attribution to remain correct while economics still deteriorate.
- Mandatory tagging is enforced before a request reaches a model.
- Gateway policy checks validate environment, model eligibility and approved use-case status.
- Alerts trigger before budget thresholds are breached, with named recipients for each workload.
- Optimisation actions such as prompt trimming or model downgrades are reviewed by workload owners.
- Finance and platform teams reconcile metered usage to provider billing each cycle.
Governance and Operating Cadence
Practical governance triggers include unresolved invoice-reconciliation variance, a workload operating outside its approved budget envelope, repeated gateway-policy blocks, development environments generating disproportionate spend, or material shifts in cost per workflow that indicate routing, prompt or usage behaviour has changed. The best review forums also look for silent governance failures such as workloads with perfect attribution but no active sponsor engagement, because a fully metered service can still be uneconomic if nobody is acting on the telemetry.
Ownership
Platform engineering owns metering and gateway controls, while finance or FinOps owns allocation logic and showback.
Decision rights
AI can route within approved policy; humans approve budget changes, model-tier exceptions and production rollouts.
Cadence
Daily anomaly review and monthly showback keep unit-cost intelligence current.
Escalation
Unapproved workloads, unresolved invoice variances and material cost spikes are escalated to platform and finance leadership.
Success Metrics
AI consumption attributed to the correct use case, owner and cost centre
Measures whether the organisation has the foundational control needed for showback, forecasting and optimisation.
Supporting KPIs
These are illustrative operating targets, not market benchmarks. Baselines should be established from the first metering cycles, and tolerance should reflect workload criticality, provider volatility and how much experimentation the organisation intends to fund.
Business Impact
- More predictable AI run cost
- Reduced token waste and avoidable model spend
- Better routing and optimisation decisions
- Showback readiness for business units
- Clearer accountability for AI opex
Outcomes are not guaranteed and depend on source quality, control discipline and operating context.
Related Playbooks
Playbooks that are commonly delivered alongside, before or after this one.
This playbook describes a typical implementation approach and a representative operating model. It is illustrative guidance, not a statement of results. Any figures, targets or ranges shown are illustrative and are intended to support planning discussions rather than to predict or promise an outcome. Outcomes are not guaranteed and depend on the estate, contracts, data quality and organisational context of each engagement.
No client names, client data, engagement detail or confidential delivery material is disclosed anywhere in this library. Technology named in these pages appears only as an illustrative example of a capability category and does not imply a partnership, certification or recommendation.
Book a Value Discovery
A free 30-minute session to pressure-test where the value actually sits in your software, SaaS and AI estate — and what it would take to get to it.