TensorCost TensorCost
Gateways

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.

swap_horiz

LiteLLM

A guardrail hook and a logger. Admit, report, budget push-down and reroute.

cloud_queue

Azure API Management

Policy templates for admit and logging. The token quota is set from your TensorCost budget. Reroute supported.

cloud_queue

Apigee

Policy templates for admit and logging. The LLM token quota reads your TensorCost budget. Reroute supported.

hub

Kong

Kong’s OpenTelemetry output read as a first-class source, matched against the rest of the ledger.

account_tree

Workato

A connector: check the budget before an LLM step, record spend, read team spend, and a “budget threshold crossed” trigger.

bolt

Power Platform

A custom connector for Power Automate and Copilot Studio with the same actions and trigger. Premium licences required.

storage

Snowflake and Databricks

AI usage on Snowflake Cortex and Databricks AI Gateway read into the same ledger.

smart_toy

MCP

A budget-headroom tool, so an agent can ask whether it can afford a step before taking it.

ios_share

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.

Your gateway
TensorCost
Your gatewayRoutes the call, handles keys, retries and fallbacks.
TensorCostAnswers whether this caller may spend this, from a number matched to the bill.
Your gatewayPrices tokens from its own list, for the traffic it sees.
TensorCostPrices from tokens and cache tokens, and matches the result to the invoice. Your gateway’s figure stays visible next to ours.
Your gatewayCaps tokens per key or team.
TensorCostHolds one budget across the gateway, the SDK, the proxy and the cloud bill, and writes it into the gateway’s quota where it can.

Questions people ask

Tell us which gateway you run.

We’ll show you what the admit check looks like in front of your own traffic, starting in shadow.