Thanks for posting your question in the Microsoft Q&A forum.
To achieve user-level data for API usage in Azure OpenAI Service, you have a few options:
- Implement custom telemetry in your application code to log user-specific API calls, use Application Insights to collect and analyze this data, allowing you to track usage per user
- Configure Azure Monitor to collect detailed logs of API requests, use Log Analytics to query and analyze these logs, filtering by user identifiers
- If you're using Azure API Management as a gateway for your Azure OpenAI Service, you can set up user-specific tracking and quotas, this allows for more granular control and monitoring of API usage per user, though it may incur additional costs
- Implement a logging solution in your application that captures user identifiers along with API calls, store this data in a database or log analytics workspace for later analysis
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful