OpenAI API Key Usage and Expiration Tracker
This script defines an asynchronous function called 'viewGrants' that sends a POST request to 'https://svip1-api.cveoy.top/v3/grants' with a JSON payload containing an API key. It then parses the response and displays the number of times the API key has been used today and the expiration date of the key. The function also changes the color of a menu to red if the key is close to expiring. The API being used appears to be related to OpenAI.
原文地址: https://www.cveoy.top/t/topic/ks83 著作权归作者所有。请勿转载和采集!