How We Govern 7 Billion LLM Tokens a Day With Our Own AI Gateway

author photo
Filipe Torqueto
Author
,
December 2, 2026
•
12
min reading time

The AI bill arrives, and Finance asks the same question every time: “Okay, but who spent what?”

If nobody can answer that, you don’t have a cost problem. You have a governance problem.

Here’s where we are today at Sensedia: 7 billion tokens a day, with peaks of 10 billion. Around 330 active users using large AI models in their daily work. And the number of LLM API keys sitting on their laptops? Zero.

This isn’t a vision of the future. It’s our own operation. Let me tell you how we got here.

It started with a cost question, and a visibility one

Coding assistants are powerful, but they’re priced per user, in U.S. dollars (a real currency exposure for a company based in Brazil), with token limits and pricing that’s hard to predict. Multiply that by hundreds of developers and the budget gets out of hand fast.

There’s another side to it. In any company, someone is already using AI through accounts IT can’t see. We knew prohibition doesn’t work. Banning a tool doesn’t stop people from using it. It just pushes that usage out of your line of sight, along with your corporate data. Call it shadow AI: the usage you pay for, in risk if not in dollars, but can’t see.

Welcome to PoC Purgatory

The most common response to AI pressure is to launch a pilot. Most of them die before reaching production. Not because the model failed. Because the plumbing failed: integrations built team by team, unpredictable token costs, and nobody owning the problem. I call it PoC Purgatory.

Some say that with AI, the API program matters less. It’s the exact opposite. The bottleneck for enterprise AI isn’t the model. It’s the context you feed it, and the architecture that delivers that context is your API management program.

Governance as infrastructure, not a document

So we made a decision: treat AI governance as infrastructure. We put an AI gateway between the whole organization and the LLM providers, acting as a mediation layer. The architecture separates a control plane, where policies, scopes and connections are defined, from a data plane, where the traffic actually runs and telemetry is generated.

On the client side, we adopted OpenCode, an open-source coding assistant, and started with open-weight models running on machines we configure and operate in our own infrastructure, so no prompt or line of code leaves our environment. Every request flows through the gateway.

‍

How our Sensedia AI Gateway works

‍‍

Three pillars, one control point

1. Control. All LLM consumption flows through a single point. We see total token consumption, consumption per user and the daily average per user in real time, on one dashboard. The gateway also abstracts each provider’s API standard, so switching models is transparent to whoever consumes them. That’s what a model-agnostic, multi-model gateway buys you: freedom of choice without rewiring every client.

2. Security. No provider API keys on machines or in prompts. The real credentials stay with the gateway, and consumers use virtual keys it manages. Our engineering team also modified OpenCode to authenticate through our corporate Single Sign-On. The result: corporate data no longer travels through personal accounts we can’t see.

3. Performance. If a provider becomes unstable or goes down, the gateway applies LLM routing with automatic failover to the next model in the policy. Developers keep working.

The stress test we didn’t plan for

We started at around 350 million tokens a day. The first open-weight models handled simple programming tasks well, but performance dropped on complex code and large codebases.

The turning point came when we moved to larger open-weight models with much stronger reasoning and agentic coding scores. They were far better at complex tasks, at drafting plans and at diving into extensive codebases like our own API Management platform. Usage took off. Consumption scaled to 4 billion tokens a day and kept climbing to today’s 7 billion, with peaks of 10 billion, all audited and governed by the AI gateway.

Then a provider degraded in the middle of a sprint. The gateway detected it and rerouted traffic to the next model in the policy. Think of it like an electrical grid: you shouldn’t notice the switch. In practice, nobody on the team did. When governance works, it’s invisible.

The part I like best

Adoption is spilling beyond engineering. OpenCode is now expanding to non-technical teams, starting with Marketing. They get access to the same advanced models, inside the same governed layer, without the company paying for individual subscription licenses.

And it’s going further. With MCP support, the assistant already connects to Atlassian (Jira and Confluence) to refine tickets and build remediation plans, and to Google Workspace (Gmail, Calendar, Drive, Docs, Sheets and Slides) to work with the email, schedules, documents and data people use every day. Next, we’re expanding MCP integrations to tools like HubSpot, extending what AI agents can do outside the tech teams.

That’s the point: AI governance isn’t a brake on adoption. It’s what makes adoption possible. Control and speed aren’t a trade-off when governance is built into the infrastructure.

If you’re starting your own journey

  1. Start small. Pick one high-value use case, like we did.
  2. Govern from day one. Put every request behind a single control point before usage scales, not after the bill arrives.
  3. Learn from your failures. Our first models hit a ceiling. That was data, not defeat.
  4. Evolve from visibility to FinOps. Once you can see consumption, move to rate limits, budgets by use case and cost allocation by business area. (AI FinOps is an architecture problem before it’s a spreadsheet problem.)

The secret doesn’t lie in the model you choose. It lies in the architecture of your API program.

Want the full story? Read the customer story.

‍

Begin your API journey with Sensedia

Hop on our kombi bus and let us guide you on an exciting journey to unleash the full power of APIs and modern integrations.

Let's talk

Embrace an architecture that is agile, scalable, and integrated

Accelerate the delivery of your digital initiatives through less complex and more efficient APIs, microservices, and Integrations that drive your business forward.

Cinemark logo