You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently everything is undocumented and their is no official way (although apparently one is coming). The only working way I found is to run a get request to https://api.openai.com/v1/usage?date=YYYY-MM-DD every day. This will then return token usage which you can map to the public pricing at https://openai.com/pricing and then calculate cost in $ then convert to £.
This is very jank so ive decided to temp remove this feature until there is a more official method.
PS the original method that joey used now needs a browser session id as auth which caused the implementation to break.
Activity
Mole1424 commentedon Oct 13, 2023
So had a look into this:
currently everything is undocumented and their is no official way (although apparently one is coming). The only working way I found is to run a get request to
https://api.openai.com/v1/usage?date=YYYY-MM-DDevery day. This will then return token usage which you can map to the public pricing at https://openai.com/pricing and then calculate cost in $ then convert to £.This is very jank so ive decided to temp remove this feature until there is a more official method.
PS the original method that joey used now needs a browser session id as auth which caused the implementation to break.