This Node.js file is designed to revoke multiple OpenAI API keys. It allows users to input a list of API keys and automatically revokes them using OpenAI's API. The file utilizes the Axios library to send HTTP requests to the OpenAI API and parses the response to determine if the revocation was successful.
- Clone this gist and install required packages with:
git clone https://gist.github.com/PawanOsman/25c88e5831680dc34275d8a9a350e1c0
cd 25c88e5831680dc34275d8a9a350e1c0
npm install
- Put your keys into
keys
array inindex.js
file. - Run the script with:
npm start