Thank you so much for such an articulate answer !! Really appreciated !
However , your code also returned the following :
PS C:\Users\User\Downloads\images> python .\forum.py
INFO:httpx:HTTP Request: GET https:// api. openai. com/v1/organization/costs?start_time=1761955200&end_time=1763294882&limit=15&bucket_width=1d&group_by=line_item “HTTP/1.1 200 OK”
| UTC Date | Line Item | Amount (USD) |
|---|---|---|
Although this script was run with my admin key which i had to create newly . (it was telling me I had insufficient privileges)
For my image gen , I was using a project api key [sk-proj…] .
Please notice that in my usage dashboard , there are absolutely no bars / graphs indicating an API hit . But the limit on the right already suggested I have used up 22$ worth credit …
Even though I have generated over 50+ images at this point , my initial top up credit seems to be unaffected . Settings →Billing, still shows 10$ Credit Balance (Pay as you go), with my auto recharge option off , so that I don’t accidentally get charged more .
I am quite confused at this point , and I humbly apologize for being really ill knowledged about these stuff, as its my first time wandering into API generation territory and my head is full of idiotic questions, so I might be misinterpreting a lot of things ! TIA
