A simple app to generate image from text using OpenAI API
Clone the project
git clone https://github.com/amuchand47/OpenAIImageGenerator
Go to the project directory
cd OpenAIImageGenerator
Install dependencies
npm install
Create a .env file & Put your own API Key in .env file like this
PORT = 5000
OPENAI_API_KEY = paste your own API key here
Start the server
node index.js
Open the local server in the browser
http:https://localhost:5000/