# Unlocking Real-Time Cost and Token Observability Across 50+ Models at Paychex
Scaling AI governance and cost transparency across 50+ models with Kong AI Gateway


~100 consumers
on the internal platform
50+ models
behind one gateway
1 dashboard
replaced 3 provider consoles


Scaling AI governance and cost transparency across 50+ models with Kong AI Gateway
- Business Services
- North America
- Innovate Faster
- Reduce Cost and Improve Efficiency
- Governance
## Powering payroll and HR with a unified AI platform
Paychex sits at the center of how many businesses pay and manage their people. According to the company, about 840,000 businesses rely on it for payroll, HR, benefits, and insurance, and AI is now built into its HR and payroll workflows.
Inside Paychex, the teams building with AI don't all want the same thing. Different groups have different use cases, and they want different models for different jobs. Serving all of them falls to one shared internal platform, which Paychex calls "model as a service."
Likhita Pampana, an AI platform engineer at Paychex, helps run it. At API + AI Summit 2026, she walked the room through how the platform works, starting with its front door. The front door here is Kong AI Gateway. Every request from a Paychex team is authenticated and routed through the gateway to one of more than 50 models, including GPT, Claude, and Gemini, running on Azure and GCP, with OpenRouter next. Close to 100 internal consumers are onboarded, and Pampana put agents at about 60 to 70 percent of the traffic, with the rest coming from people using chatbots and UI tools.
She opened her talk by asking how many people in the room use AI every day, then answered her own question: of course, everyone. "Imagine the scale of AI usage these days. Every org is adopting them, and then everyone is moving towards that space," Pampana said.
The platform was doing its job. What it couldn't tell anyone was how much each team was using, and what that use cost.
## The platform worked, but nobody could see what it cost
Once the teams started consuming the platform, Pampana's team ran into questions it couldn't answer.
"How do I know which team is actually using how much, or what is the token usage? How much is it costing for the platform to run all of that?" Pampana said.
Paychex's usual monitoring didn't help. It covered availability, request count, throughput, response time, and error rate, the signals any observability tool gives you. It missed the two that matter most for LLMs: tokens and cost. Request counts say little about usage, because summarizing a 100-page document and rephrasing an email are each one request, with very different token counts.
Cost was harder still. Azure and GCP publish input and output prices per million tokens, but they don't expose cost as a metric on each request.
"There's no metric that they are actually exposing with every request when you send it to the API, and Kong does that," Pampana said.
That detail would turn out to matter. First, the gap had to become impossible to ignore, and it did when Pampana's manager asked for 30 days of token usage across models. With about 50 models and close to 100 consumers, the answer meant opening three provider consoles, pulling token counts for each model, laying them out in a spreadsheet, and calculating cost by hand.
"I was going through a very tedious process where I had to open three different provider consoles," Pampana said.
The report to leadership repeats every month, so the exercise did too. By then the team knew what it needed:
**• One view** for leadership, engineers, and finance
**• Tokens and cost by consumer and model**, without a spreadsheet
**• Accountability for each consumer**, including a basis for chargeback
**• No manual calculation** each month
*How do I know which team is actually using how much, or what is the token usage? How much is it costing for the platform to run all of that?*
## Putting the data to work with Kong
The data Pampana needed was already flowing through the gateway. Kong AI Gateway authenticates and routes each request, so every request is recorded there. Prometheus scrapes those metrics, and Grafana visualizes them. Paychex didn't build a new tracking system. It put the data Kong already had in front of people.
**Start with the metrics Kong already emits**
Kong exposes metrics such as request total, LLM tokens total, LLM cost total, and LLM provider latency. Each one carries a consumer label. Because every request passes through the gateway, each metric also carries a provider label and a model label. That means any metric can be sliced by who used it and which model answered.
**Then make cost a metric**
With tokens labeled by consumer and model, cost was the piece still missing. Paychex defines input and output cost per million tokens in Kong's model templates, using each provider's official pricing. Kong calculates the total and returns it as a metric.
*"It's directly a metric that's being pulled, and there's no manual calculation that I'm doing there behind the PromQL." ****Likhita Pampana****, AI Platform Engineer, Paychex*
**Put it all in one dashboard**
With tokens and cost available as metrics, the team built a Grafana dashboard using PromQL queries. It has consumer and environment drop-downs. It shows request, success, and error rates, error codes, input and output tokens by model, response times for streaming and non-streaming calls, and cost by model and by consumer. It refreshes about every 30 seconds, and the time range is flexible, from the last five minutes to the last 30 days. Grafana was an organizational choice, since it is Paychex's enterprise monitoring standard.
**Use what it shows to set limits**
The dashboard did more than report. It showed how each consumer behaved once onboarded, so the team could set rate limits from real usage. The limits are token-based, and onboarding and limit changes go through self-service Cortex workflows that update Kong's templates and deploy.
"Based on it, we can set some limits for them on the expected usage so that they stay accountable for those token limits," Pampana said.
**Fix streaming at the gateway**
One snag appeared along the way. Kong sometimes miscounted tokens on streaming responses, which would have skewed the numbers. Paychex turned on stream_usage: true for every request through a pre-function in Kong, so consumers don't have to pass it themselves. Pampana said recent Kong releases have fixed many of the streaming bugs.
*"It's all within Kong. So it's one gateway. One view."*
## Translating visibility into actionable AI performance, accountability, and growth
With the dashboard live, leadership, engineers, and finance work from the same view. The monthly spreadsheet exercise is gone, and one screen now answers who used what, which model served it, and what it cost.
The first payoff was speed.
**Traffic spikes were caught early.** The team can see a spike as it happens, with alerts planned on top.
"We were able to detect traffic spikes before they became incidents," Pampana said.
Speed also exposed problems nobody had known about.
**A hidden rate-limit problem was found.** One consumer had been hitting its limits, and the team didn't know until the dashboard went up.
"We didn't know that we were hitting rate limits for one of the [consumers] until we stood up the dashboard, and we just expected that the model was slow and the upstream was the problem," Pampana said.
Once rate-limit errors showed up, the team could see the limits didn't match that consumer's usage.
**Slow-streaming complaints checked against data.** Consumers had complained about streaming responses on GPT-5.
"I've got a million complaints from a lot of our consumers saying, 'You have enabled streaming for us on GPT-5, and it's just so slow, and I don't get a response,'" Pampana said.
The dashboard compares average response time for streaming and non-streaming calls by model. In the test data shown, streaming averaged about 1.37 seconds, and non-streaming was quicker.
**Errors trending down, with a caveat.** Pampana saw errors drop after the dashboard launched, and was careful about the credit.
"I wouldn't say the dashboard helps us to directly reduce the errors, but it's giving that visibility to help us take actions on what's going wrong and then fixing them."
**A basis for chargeback.** The cost view ranks consumers by spend, which gives finance a starting point for chargeback and for setting expectations.
**A note on the numbers**
The figures shown at Summit were simulated data from test environments, not production. The solution is also still in beta, and costs come from list prices entered by hand. They don't match Paychex's contract prices.
"These numbers can act as operational visibility. I wouldn't account these as direct chargeback for financial; it definitely needs some reconciling on numbers and actually looking at the usage," Pampana said.
## Lessons learned and the road ahead
Looking back, four lessons stand out.
- - **Start with what the gateway already emits.** Every request is already recorded there, so the data was ready to use.
- - **Put the price in the gateway.** Defining cost in Kong's model templates makes cost a metric, not a monthly calculation.
- - **Set limits from observed usage.** Per-consumer views show when a limit is too low, and who is using what.
- - **Turn on stream_usage by default.** It keeps token counts correct on streaming responses without asking each consumer.
**What's next**
The dashboard is a first version, and Paychex has more planned. It plans to add alerting on top, and to move to Kong AI Gateway 2.0, which would let the team turn on prompt caching and track cache read and write costs separately. A feature request is open with Kong so prices can update dynamically instead of by hand. The team is also considering labels for departments and for agent versus human traffic.
*"*It's where innovation begins. Having visibility is really helpful for any kind of group, say engineers, business, leadership, finance," Pampana said. "Observability isn't about collecting every metric. It's about exposing the ones that actually help engineers to decide."
Observability isn't about collecting every metric. It's about exposing the ones that actually help engineers to decide.




