Tracking token usage for service calls on the server side

Jai-6363 245 Reputation points
2023-10-30T12:58:26.98+00:00

Is there a way to monitor the usage of tokens for each call into our service on the server side? We need to accurately track token usage for billing purposes, but the client-side usage doesn't provide a complete picture. we wants to be able to query the service or Azure cost management to see the actual usage with an API call. Are there any possible solutions?

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Ramr-msft 17,831 Reputation points
    2023-10-30T13:09:55.3333333+00:00

    Thanks for the question, The following table summarizes the current subset of metrics available in Azure OpenAI.

    User's image

    https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/monitoring#azure-openai-metrics

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.