Command line tool to provide per key $ usage of OpenAI API keys on daily and monthly level.
Note
Open AI's dashboard will have this feature directly in some time. In that case, we will archive this repository and use the dashboard itself.
Caution
Pricing for tokens is coming from
gpt-cost-estimator
with updates (see cli.py
in our repository) with minor addition done on 5th June 2024.
The pricing information might need to be refreshed so be careful while
interpreting anything.
Install the package using:
pip install https://github.com/skit-ai/openai-billing-analysis/releases/download/0.1.2/openai_billing_analysis-0.1.2-py3-none-any.whl
For using, download JSON billing data from the activity tab of the usage dashboard and run the following:
openai_billing_analysis activity-2024-02-01-2024-03-01.json --date=2024-02-13