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

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

  1. Enter a description or keyword in the input field.
  2. Click the Generate Image button.
  3. The app fetches a relevant image from the Pexels API.
  4. The image is displayed and can be downloaded.

Setup

  1. Clone or download this repository.
  2. Get a free API key from Pexels.
  3. Open index.js and replace the API key value with your own.
  4. Open index.html in 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!

Built With

Share this project:

Updates