Keep the gateway you run. Give it a budget that knows the real number.
Every gateway can cap tokens and show a cost, priced from its own list and only for the traffic it sees. None of them matches the invoice, and none notices the same call in its own log, your SDK and your cloud bill. TensorCost sits behind the gateway as the ledger and the budget check.
How it works with your gateway
Two calls. One before forwarding, one after.
- check_circleAsk before forwarding — the gateway asks whether this caller may make this call. TensorCost answers allow, refuse or reroute, from spend matched to the bill.
- check_circleReport after — the gateway sends what it forwarded. TensorCost prices it from the tokens, cache tokens included, and keeps the gateway’s own figure visible beside it.
- check_circleCounted once — the gateway’s record of a call the bill already covers is matched to it and never adds a second copy.
- check_circleYour callers, mapped — LiteLLM teams and keys, APIM subscriptions, Apigee apps and Kong consumers map to TensorCost teams and developers. Unmapped callers are allowed and listed, one click from a mapping.
- check_circleFail open by default — if TensorCost can’t answer in time, the gateway forwards the call. Fail closed is a per-workspace setting.
- check_circleLimits that hold without us — for Apigee, Azure APIM and LiteLLM, the budget is also written into the gateway’s own quota, so it keeps enforcing if TensorCost is down.
What works with what
Reroute means the gateway can switch the model on a route you’ve set to act.
LiteLLM
A guardrail hook and a logger. Admit, report, budget push-down and reroute.
Azure API Management
Policy templates for admit and logging. The token quota is set from your TensorCost budget. Reroute supported.
Apigee
Policy templates for admit and logging. The LLM token quota reads your TensorCost budget. Reroute supported.
Kong
Kong’s OpenTelemetry output read as a first-class source, matched against the rest of the ledger.
Workato
A connector: check the budget before an LLM step, record spend, read team spend, and a “budget threshold crossed” trigger.
Power Platform
A custom connector for Power Automate and Copilot Studio with the same actions and trigger. Premium licences required.
Snowflake and Databricks
AI usage on Snowflake Cortex and Databricks AI Gateway read into the same ledger.
MCP
A budget-headroom tool, so an agent can ask whether it can afford a step before taking it.
Vantage and CloudZero
An allocation export, so the counted AI numbers land in the FinOps tool you already use.
Your gateway and TensorCost
Many teams run both. This is how the work splits.