Definition

Token Cost Attribution

Allocating the cost of LLM API tokens to specific customers based on their actual usage.

Formula: Token Cost = Tokens Used x Cost per Token

Worked example

Customer uses 1M input tokens at $3/1M and 500K output tokens at $15/1M = $3 + $7.50 = $10.50 total token cost.