Provider and model
Each event identifies the model that handled the call, so cost changes do not disappear inside one blended total.
AI cost attribution
Add the server SDK around the model calls your product already makes. It records provider-reported usage and the dimensions you choose, then prices each event against a versioned server catalog.
What is recorded
Each event identifies the model that handled the call, so cost changes do not disappear inside one blended total.
Cached usage stays separate because providers may price it differently from uncached input.
Failed or retried application calls remain visible when the provider returns usage, so reliability cost is not hidden.
Send opaque account, user, feature, and version identifiers that match the way your product is operated.
How it works
Pricing boundaries
Grow or Die keeps standard input, output, cache reads, cache writes, service tiers, and supported tool fees separate. If an observed category has no trusted price, the call stays unpriced instead of becoming free.
The event records its service tier. Standard, batch, priority, flex, and custom execution are never assumed to share a rate; an unsupported tier blocks the cost result.
Cached input, five-minute cache writes, and one-hour cache writes remain separate meters. A provider-specific price is required for every non-zero meter.
A supported web-search or other provider tool meter is added as its own line item. An unknown billable tool makes total cost unknown rather than hiding the fee inside token cost.
Missing final usage, an unknown model, or a pricing category without evidence returns no cost. Calls and tokens remain visible, but profit calculations fail closed.
Worked boundary
If a call reports 1,000 uncached input tokens, 2,000 cache-read tokens, 500 cache-write tokens, and one web-search invocation, Grow or Die prices each meter independently. If the cache-write or tool price is unavailable for that exact provider and mode, the result is unknown—not $0 and not a partial total presented as complete.
Private by design
Grow or Die needs usage counts and your opaque business dimensions, not conversation content. Cost is calculated on the server so price changes do not require every customer to upgrade an SDK.
Set up my product