This project utilizes the power of OpenAI API and Node.js to generate high-quality images based on user input. The project combines the capabilities of GPT-3 and DALL-E models of OpenAI to create unique and visually appealing images.
- Generate images based on user input
- Choose from small, medium, or large image sizes
- Wide range of image categories available
- Easy to set up and use
- Well-documented code for easy customization and scaling
To get started with the project, you'll need to have Node.js installed on your system. Once you have Node.js installed, follow these steps:
- Clone this repository to your local machine
- Install the project dependencies by running
npm install
- Create a
.env
file in the root directory and add your OpenAI API key. The format should beOPENAI_API_KEY=<your_api_key_here>
- Start the project by running
npm start
- Open your browser and go to
http://localhost:{port}
To use the AI Image Generator, follow these steps:
- Enter a description of the image you want to generate in the input field
- Select a size from small, medium, or large
- Click on the "Generate Image" button
- Wait for the image to be generated and displayed on the screen
You can save the image by right-clicking on it and selecting "Save Image As".
This project is licensed under the MIT License. See the LICENSE file for more details.