ChatGPT balance query interface

Interface address: http://freeapi.club:9001/openai/apikeyBilling/2/sk-xxxx

Request type: get

Parameter description: 2 is the usage of the last few days. The results will show the number of tokens used by various models in the last 2 days

sk-xxxx is your apikey

The browser can directly access it, and the result is just formatted as json.

{"usage":{"total_usage":0.0,"object":"list","daily_costs":[{"line_items":[{"cost":0.0,"name":"Instruct models"},{"cost":0.0,"name":"Chat models"},{"cost":0.0,"name":"GPT-4"},{"cost":0.0,"name":"Fine-tuned models"},{"cost":0.0,"name":"Embedding models"},{"cost":0.0,"name":"Image models"},{"cost":0.0,"name":"Audio models"}],"timestamp":1683072000.0},{"line_items":[{"cost":0.0,"name":"Instruct models"},{"cost":0.0,"name":"Chat models"},{"cost":0.0,"name":"GPT-4"},{"cost":0.0,"name":"Fine-tuned models"},{"cost":0.0,"name":"Embedding models"},{"cost":0.0,"name":"Image models"},{"cost":0.0,"name":"Audio models"}],"timestamp":1683158400.0},{"line_items":[{"cost":0.0,"name":"Instruct models"},{"cost":0.0,"name":"Chat models"},{"cost":0.0,"name":"GPT-4"},{"cost":0.0,"name":"Fine-tuned models"},{"cost":0.0,"name":"Embedding models"},{"cost":0.0,"name":"Image models"},{"cost":0.0,"name":"Audio models"}],"timestamp":1683244800.0}]},"subscription":{"hard_limit_usd":18.0,"has_payment_method":false,"system_hard_limit":300000,"system_hard_limit_usd":18.0,"canceled":false,"soft_limit":240000,"soft_limit_usd":14.4,"account_name":"duan cuan","access_until":1685577600,"plan":{"id":"free","title":"Explore"},"object":"billing_subscription","hard_limit":300000}}

 

Guess you like

Origin blog.csdn.net/liuhenghui5201/article/details/130515675