How does pricing for Azure Assistants API code-interpreter work?

Karishma Nanda 180 Reputation points
2024-05-09T15:01:17.9366667+00:00

Hi I am using gpt-35-turbo-0613 model for Assistants api (same thread) as code-interpreter I have 83 input token and 198 output token and my calculated price is £0.0304445(which appears high) including code-interpreter source the problem is I quite does not understand the way code interpreted price is calculated is it hourly based. My use case only need to hit the api once for few minutes do I need to calculate price based on minutes of use or the minimum threshold is 60 minutes or I need to pay £0.03 no matter I use it for 60 minutes or 5 minutes ? what should be my estimated cost for above mentioned tokens, model and 5 min time/session on same thread.

User's image

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

1 answer

Sort by: Most helpful
  1. romungi-MSFT 42,986 Reputation points Microsoft Employee
    2024-05-14T11:10:12.3266667+00:00

    @Karishma Nanda Any input/output tokens will be charged additionally apart from inference cost for assistant.

    User's image

    Ref: https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/code-interpreter?tabs=python

    For files, Assistants use the same API for file upload as fine-tuning. So, the limits for files are applicable. I don't think there is a charge to store the files, similar to fine tuning files. I hope this helps!!

    User's image

    1 person found this answer helpful.
    0 comments No comments