banner
endercat

endercat

某个白嫖怪的分享博客 现已迁移到 https://endercat.eu.org 请前往该URL查看最新文章
bilibili
github
telegram

Detect OpenAi quota and models using Python script

OpenAI is a well-known company in the field of artificial intelligence, and its API can be used in multiple areas such as natural language processing, image processing, and speech recognition.
There are limits to using 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.

Image


Instructions:

  1. Go to the project OpenAI-Checker
  2. Clone or download this repository to your local machine
  3. Install the required dependencies pip install requests
  4. Add your OpenAI API key(s) to a file named apikey.txt, with one key per line
  5. Run python main.py

Notes:
Ensure that api.openai.com can be accessed properly and support the use of terminal proxies.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.