OpenAI is a well-known company in the field of artificial intelligence. Its API can be used in various fields such as natural language processing, image processing, and speech recognition.
There are limitations on the usage of the OpenAI API.
To facilitate users in checking the usage of their API Key, I have developed a Python script called "OpenAI-Checker".
This script can query the remaining quota, used quota, and whether access to OpenAI's latest model GPT-4 is available. Additionally, this script can batch test multiple keys without the need to log in to the official website, making it convenient for users with multiple API Keys.
Instructions:
- Go to the project OpenAI-Checker.
- Clone or download this repository to your local machine.
- Install the required dependencies using
pip install requests
. - Add your OpenAI API keys to a file named
apikey.txt
, with one key per line. - Run
python main.py
to execute the script.
Notes:
Ensure that you have proper access to api.openai.com
and support the use of terminal proxies.