The AI Image Generator is a JavaScript-powered tool that converts text into images using the OpenAI API. This project provides a user-friendly interface to generate images based on user prompts.
- Convert textual descriptions into images.
- Specify the number of images to generate.
- Responsive design for various devices.
- Node.js and npm installed on your machine.
- OpenAI API key for image generation.
- Clone the repository:
git clone https://github.com/your-username/ai-image-generator.git cd ai-image-generator
Usage
-
Open the web application in your browser.
-
Fill in the text input with a description of the image you want to generate.
-
Choose the desired number of images from the dropdown menu.
-
Click the "Generate" button to initiate the image generation process.
-
The application will display the generated images once they are ready.
To use this application, you need to obtain an API key from OpenAI and replace the OPENAI_API_KEY variable in the script.js file with your key.
const OPENAI_API_KEY = "your-api-key-goes-here";