Skip to content

About

This website creates stunning images from text prompts using the power of AI. DreamCanvas leverages the Hugging Face API with a sleek HTML, CSS, and JavaScript frontend to deliver customizable, high-quality image generation in real time.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

🌌 DreamCanvas: AI-Powered Text-to-Image Generator

DreamCanvas is a lightweight, web-based AI image generator that transforms text prompts into stunning visuals using the Hugging Face Inference API. Built with HTML, CSS, and JavaScript, it offers a smooth user experience with powerful customization options and intuitive UI features like image download and clipboard copy.

🚀 Features

  • 🎨 Text-to-Image Generation: Convert natural language prompts into AI-generated images.
  • 🧠 Powered by Hugging Face: Utilizes Hugging Face’s API for high-quality image synthesis.
  • 🛠️ Customizable Inputs: Adjust prompts, styles, and resolution settings.
  • 💾 One-Click Image Download: Save your creations instantly.
  • 📋 Copy to Clipboard: Copy generated images directly for quick sharing.
  • 📱 Responsive Design: Optimized for desktops, tablets, and mobile devices.

📸 Demo

Live Demo:https://ai-image-generator-gamma-five.vercel.app/

⚙️ Tech Stack Frontend: HTML, CSS (responsive design), JavaScript

API: Hugging Face Inference API:

https://huggingface.co/

https://huggingface.co/inference-api

🧪 How It Works

  1. User enters a text prompt.

  2. The app sends the prompt to Hugging Face’s image generation model via their API.

  3. The generated image is displayed on the page.

  4. Users can download the image or copy it to the clipboard with a single click.

🔧 Setup & Installation

  1. Clone the repository:

git clone https://github.com/your-username/dreamcanvas.git

cd dreamcanvas

  1. Open index.html in your browser.

Add your Hugging Face API key in the JavaScript file:

Copy code

const API_TOKEN = 'your_huggingface_api_key'

4.📷 Screenshots

🖼️ Prompt Input and Result https://github.com/aditiisinha/ai-image-generator/blob/main/Screenshot1.png

🎨 Style and Resolution Controls Screenshot2

💾 Download & Copy Features Screenshot3

About

This website creates stunning images from text prompts using the power of AI. DreamCanvas leverages the Hugging Face API with a sleek HTML, CSS, and JavaScript frontend to deliver customizable, high-quality image generation in real time.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages