Welcome to the AI Image Generator project! This application leverages the power of OpenAI to generate images based on textual descriptions.
You can see a live demo of the AI Image Generator here.
- Generate images from textual descriptions using OpenAI's GPT-3 model.
- Customizable prompts for generating a wide range of images.
- Simple and easy-to-use API.
Before getting started, make sure you have the following prerequisites installed on your system:
- Node.js: Installation Guide
- OpenAI API Key: You need an API key from OpenAI to access their services. Get one here.
Follow these steps to set up the AI Image Generator:
-
Clone the repository:
git clone https://github.com/swetamishra123/node-project.git cd node-project
2.Install dependencies:
```bash
npm install
-
Configure your OpenAI API key by creating a '.env' file in the project root directory and adding your key:
OPENAI_API_KEY=your-api-key
To generate images using the AI Image Generator, follow these steps:
-
Start the Node.js application:
npm start
-
Access the application through your browser or API client.
3.Provide a textual prompt to generate an image. The application will send the prompt to the OpenAI API and display the generated image.
- Experiment with different prompts to generate various images.
Contributions are welcome! If you'd like to contribute to this project.
This project is licensed under the 'MIT License'.