Using the OpenAI API, generate an image based on any text that is inputted
-
Go to (https://beta.openai.com/) and register for a free account. After signing up, create an API key under settings.
-
Next, follow these steps in your command line
# Clone the repository using this command:
git clone [email protected]:aneeshv12/ImageGenerator.git
#After cloning, create a .env file using this command:
touch .env
- In the .env file, enter the API key that you generated on the OpenAI API website like this:
VITE_Open_AI_Key = <API_KEY>
- Run this to install all the required dependencies
npm install
- Run this command to start the application:
npm run dev