Tracking Requests by Users and Accounts
📋 Overview
Pay-i allows you to associate requests to individual Users or groups of users (called Accounts), for better tracking purposes. Multiple users can have the same identifier if they are part of different accounts, otherwise they are treated as the same user. Users and Accounts are created on the fly as requests refer to them.
Why Track Users?
Tracking which users are making GenAI calls provides several important benefits:
- Cost allocation: Understand which users or customers are driving your AI costs
- Usage patterns: Analyze how different users interact with your AI features
- Per-user limits: Apply budget constraints or rate limits for specific users
- Troubleshooting: Quickly identify issues related to specific users
- Compliance and Chargeback: Meet regulatory or audit requirements for user-level tracking and accountability
Learn more about Users and Accounts at Day 2: Tracking Users with track_context()
Updated 6 days ago
