ChatGPT 余额查询接口

接口地址: http://freeapi.club:9001/openai/apikeyBilling/2/sk-xxxx

请求类型: get

参数说明:2 为最近几天的使用情况。结果中会有最近2天内各种模型使用的token数量

sk-xxxx 为你的apikey

浏览器可以直接访问,结果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}}

猜你喜欢

转载自blog.csdn.net/liuhenghui5201/article/details/130515675