Azure OpenAI API call tags/labels or differentiator

Anonymous
2024-11-06T06:20:32.67+00:00

I am using an Azure OpenAI subscription with a resource group. I have multiple projects running under the same resource group for short periods. Instead for building multiple resource groups for cost analysis, looking for a way to send a tag/label per api call so during cost analysis can filter them easily.

What are the options available?

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,081 questions
{count} vote

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 35,971 Reputation points Moderator
    2024-11-08T14:51:46.15+00:00

    Nilotpol Patgiri You can consider the following approaches.

    Approach1: Get the Cost by Resource  --> And apply the filter based on the Usage, Product and Resource as shown below:

    User's image

    Approach2: Leverage the Azure Open AI Metrics to check the usage and you can calculate the cost and pricing using pricing calculator:

    User's image

    Then apply the filter for the Requests metrics and the API Name and Operation Name:

    User's image

    Do let me know if you have any further queries.

    0 comments No comments

Your answer

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