Go Back

openai_cost_calculator

orkunkinay.github.io

openai_cost_calculator is a Python library that helps users estimate the exact USD cost of their OpenAI and Azure OpenAI API calls. It calculates costs based on token counts returned by the APIs, supporting both Chat Completions and Responses APIs, and provides a simple function to get per-query cost breakdowns.

Features
0/13
See all

No common features found

Rationale

The candidate, 'openai_cost_calculator', is a Python library designed to estimate the cost of OpenAI and Azure OpenAI API calls based on token usage. It provides a utility for developers to track their spending on AI model interactions. This tool does not offer any of the core AI capabilities or platform features described in the prompt, such as conversational AI, API access to AI models, safety frameworks, fine-tuning, or enterprise solutions. It is purely a cost calculation utility for existing OpenAI API usage, not an AI platform itself.

already.dev