Skip to content
Webliska TechnologiesFlaxxa is a registered product of Webliska Technologies, Faridabad, HaryanaGSTIN: 06ATYPG3011E1ZX
Flaxxa AI is now in open beta.
Flaxxa
Start Free
← All posts
Operator notes· 2 min read

Cost attribution by feature — the finance conversation changes

How a per-request AI cost ledger turned a quarterly accounting headache into a daily product decision.

Before Flaxxa AI, finance asked me one question every quarter: which feature spent the $14K? I never had a good answer. The OpenAI invoice was a single line; the Helicone dashboard rolled up at the workspace level; our internal Datadog tags were ~70% accurate at best.

The setup

We were running 11 product features that each made AI calls — a support copilot, a doc-summary tool, a code-completion assistant, three different analyzer flows, and a few internal admin helpers. Each squad had its own SDK wrapper, its own cache strategy (or lack thereof), its own retry logic.

The finance team gave us a quarterly AI budget. The product teams asked us how to spend it. We had no way to answer that the way they wanted to be answered.

The change

We routed every AI call through Flaxxa's gateway. Each request carries a tag dictionary — feature, tenant, user — and the per-request ledger captures cost, tokens, cache state, latency, and the routed provider against those tags.

Migration was a few hundred lines of SDK swap. The ledger started filling immediately.

What changed in the finance conversation

The first month, we discovered:

  • Our doc-summary tool was 41% of total spend. Nobody had told us that.
  • Our support copilot was 28%. Expected — but the cache hit rate was 11%, far below the 35-40% we'd assumed.
  • The code-completion tool was 4%. We'd been treating it like the highest-priority feature on cost grounds; it wasn't.

The doc-summary discovery alone changed how we prioritised work. We added a cache layer to that one feature, set the threshold to 24-hour TTL, and watched cost drop 53% in the next billing cycle.

What I tell every PM friend now

Per-feature cost attribution isn't a vanity metric — it's the difference between optimising the wrong feature and optimising the right one. Until you have it, every cost decision is a guess weighted by whoever shouted last.

The 14K question now has an answer. Finance and product talk about AI in the same units. That alone has been worth the migration twice over.

Built on Flaxxa

Run your business on one platform.

Free plan. No credit card.

Start Free