Blocks/analytics

Token Usage

Display AI token usage statistics including input/output tokens and cost tracking.

Favorite model claude-3.5-sonnet20 Jan 25 Jan 2025
Total Tokens
1.7M
Input Tokens
950K
Output Tokens
708K
Total Cost
$49.30
Active Days
6
Biggest Day
$12.50
24 Jan 2025
TokensCost
ModelTokensCost
claude-3.5-sonnet850K$25.50
gpt-4o420K$12.30
claude-3-haiku180K$4.70

Installation

npx shadcn@latest add "https://aniketpawar.com/r/token-usage.json"

Dependencies

@number-flow/react@visx/curve@visx/event@visx/grid@visx/responsive@visx/scale@visx/shaped3-arraydate-fnsmotion