Calculating costs for Azure OpenAI and Speech services

Uzair Mazhar 0 Reputation points
2024-08-22T09:40:33.62+00:00

I am using OpenAI and Speech service for one of my solutions. I am facing issue in cost calculation for these two services. I am using gpt-4-turbo model.

Open AI Rate as per documentation is $0.01 per 1000 tokens for input tokens and $0.03 per 1000 tokens for output tokens and Speech service Rate is $1 per hour for speech to text and $16 per million characters for Text to speech.

In my use-case:

For OpenAI I used "totalInputTokens": 124011, "totalOutputTokens": 17366. Cost according to the rate should be $1.76109 but from the CostAnalysis I am getting $4.2.

Similarly for speech service as per my usage the cost should be $0.6533 but on the CostAnalysis I am getting $0.94.

Is there any way to calculate the cost of OpenAI and Speech service more accurately?

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,674 questions
Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,503 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,916 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,781 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 32,946 Reputation points
    2024-08-22T10:46:01.28+00:00

    Uzair Mazhar Greetings & Welcome to Microsoft Q&A forum!

    I understand that you are calculating prices based on the input tokens and output tokens used.

    Check if you have included any additional infrastructure costs that might accrue while using Azure OpenAI Service?

    Azure OpenAI Service runs on Azure infrastructure that accrues costs when you deploy new resources. There could be other infrastructure costs that might accrue. The following sections describe how you're charged for Azure OpenAI Service.

    I would suggest you, please check Plan to manage costs for Azure OpenAI Service and Understand Cost Management data for more details.

    Also, see Azure AI Speech pricing calculator and Azure OpenAI Service pricing for calculating the prices.

    If that doesn't help, you can always reach out to support by creating a free billing support ticket. for more clarity on your billing spends. See Create a support ticket for details.

    Do let me know if you have any further queries.


    If the response helped, please do click Accept Answer and Yes for was this answer helpful.

    Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.

    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.