Giter VIP home page Giter VIP logo

openai_key_checker's Introduction

OPENAI Key Checker

This project provides a simple web interface to check whether your OpenAI API key supports GPT-4 or other models like GPT-3.5-Turbo. It supports both single key checking and batch checking from a text file.

Features

  • Check if your OpenAI API Key supports GPT-4 and other models.
  • Batch checking by uploading a text file containing multiple keys (this task is peformed by ChatGPT so you need to provide a working key if you need this feature).
  • Simple and intuitive web interface.

Project Setup

The project is set up in Node.js with Express.js for the back-end and vanilla JavaScript for the front-end.

Prerequisites

Ensure you have the following installed on your system:

  1. Node.js (version 14 or higher)
  2. npm (version 6 or higher)

Installation

To set up the project locally, follow the steps below:

  1. Clone the repository:
git clone https://github.com/aikemist/openai-key-checker.git
  1. Navigate into the project directory:
cd openai-key-checker
  1. Install the project dependencies:
npm install

Configuration

Create a .env file in the project root directory and add your OpenAI API Key (only needed by batch mode):

OPENAI_API_KEY=your_openai_api_key

Running the Application

To start the application:

npm start

This will start the server on port 3000 or the port specified in the PORT environment variable. Navigate to http://localhost:3000 to access the application.

Usage

  • Single Key Check: Enter the API key in the input box and click "Check".
  • Batch Key Check: Click "Batch", then select a text file containing one or more API keys.

Note

  • The server needs to be restarted after updating the .env file.
  • The application uses OpenAI's models endpoint to check the available models for a key, and it also uses OpenAI's Chat API to preprocess the batch key text. Make sure the OpenAI API Key you use for server setup has the necessary permissions.

openai_key_checker's People

Contributors

aikemist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.