Skip to content

agucchristopher/openai-nodejs-api

Repository files navigation

OpenAI Node.js Api

A simple nodejs backend server using openai Chat-GPT and Dall-E api

Installation ⚙⚙

1. Clone the github repository:

git clone https://github.com/agucchristopher/openai-nodejs-api.git/

2. Set up your environment variables:


1. Create a .env file with the .env.example format.

2. Visit https://openai.com register and go the profile section and choose manage Apis, click generate api then go to the .env file you created and paste it where the OPENAI_API_KEY is
Example: OPENAI_API_KEY=The Key You Generated

3. Install The Dependecies


Open your terminal and run npm install

Releases

No releases published

Packages

No packages published