588 B
588 B
Track Specification: Cost & Token Analytics Panel
Overview
Real-time cost tracking panel for API usage by model and tier.
Current State Audit
Already Implemented
- cost_tracker.py with MODEL_PRICING
- estimate_cost() function
- Token tracking in ai_client.py
Gaps to Fill
- No GUI panel for cost display
- No session totals
Goals
- Cost per model display
- Session totals
- Breakdown by tier
Functional Requirements
- Real-time cost updates
- Per-model breakdown
- Tier breakdown
Non-Functional Requirements
- <10ms update latency
- Clear visual formatting