AI Image Generator
A simple web application that generates images based on your text prompt using the Pexels API. Enter a prompt, click "Generate Image", and download the result!
Live Demo
Features
- Modern dark blue UI
- Generates a new, random image for each prompt
- Download the generated image with one click
- Responsive and accessible design
How It Works
- Enter a description or keyword in the input field.
- Click the Generate Image button.
- The app fetches a relevant image from the Pexels API.
- The image is displayed and can be downloaded.
Setup
- Clone or download this repository.
- Get a free API key from Pexels.
- Open
index.jsand replace the API key value with your own. - Open
index.htmlin your browser.
File Structure
Image Generator/
├── index.html
├── style.css
├── index.js
└── README.md
Customization
- You can change the theme colors in
style.css. - To use another image API, update the fetch logic in
index.js.
Credits
- Pexels API for free stock images.
- UI inspired by modern dark blue/neon designs.
Enjoy generating beautiful images!
Log in or sign up for Devpost to join the conversation.