This project generates images from text prompts using the Hugging Face Inference API. It is built with HTML, CSS, and JavaScript and provides a simple interface for users to input text and receive an AI-generated image.
β
User-friendly interface to generate images from text prompts.
β
Uses the Hugging Face API for image generation.
β
Allows downloading generated images.
β
Responsive design for desktop and mobile users.
- Frontend: HTML, CSS, JavaScript
- API: Hugging Face Inference API
- Enter a text prompt in the input field.
- Click "Generate" to fetch the AI-generated image.
- Download the generated image using the download button.
- Click "Reset" to clear the input and start again.
- Clone the repository:
git clone https://github.com/AnjuMau8418/Text-To-Image-Generator.git
- Navigate into the project directory:
cd Text-To-Image-Generator - Open
index.htmlin a browser to start using the tool.
This project uses the Hugging Face Inference API for image generation. To integrate it:
- Get an API key from Hugging Face.
- Update the JavaScript file with your API key:
const Key = "your_huggingface_api_key";

