- 🎨 Text-to-Image Generation - Create beautiful images from text descriptions
- 📱 Fully Responsive - Works perfectly on all devices (mobile, tablet, desktop)
- 💾 Image Download - Save your generated images with one click
- 🚀 Fast Generation - Powered by Stable Diffusion XL via deployed Railway API
- 🔄 Real-time Feedback - See loading indicators and error messages
- 🌐 Cross-Platform - Works in all modern browsers
Note: Replace the placeholder images with actual screenshots:
- Take screenshots of your application on desktop and mobile devices
- Save them as
screenshot-desktop.pngandscreenshot-mobile.pngin the project root- Update the README.md file to point to your screenshots
- Or use image hosting services like Imgur and update the image URLs
-
Frontend:
- HTML5, CSS3, JavaScript
- Responsive design with media queries
- Font Awesome for icons
- Google Fonts (Poppins)
-
Backend:
- FastAPI (Python)
- Hugging Face API (Stable Diffusion XL)
- Railway for hosting
- For development: Python 3.8+ with FastAPI (backend) or serve the frontend with any HTTP server
- Live deployment already configured at: https://web-production-fffaa.up.railway.app/
- Clone the repository
git clone https://github.com/omara2001/Image-Generator.git
cd Image-Generator- Frontend Only Setup
Simply open the index.html file in your browser, or serve it with any HTTP server of your choice.
- Testing the API
The API is already deployed at https://web-production-fffaa.up.railway.app/
API Endpoints:
- Health check: GET https://web-production-fffaa.up.railway.app/
- Generate image: POST https://web-production-fffaa.up.railway.app/generate-image
Example request body for image generation:
{
"prompt": "A cat in the street",
"width": 512,
"height": 512,
"num_inference_steps": 30,
"guidance_scale": 7.5
}The application is deployed using:
- Frontend: GitHub Pages or any static hosting
- Backend: Railway at https://web-production-fffaa.up.railway.app/
DreamCanvas AI is designed to work seamlessly across all device sizes:
- Mobile: Optimized layout with stacked controls
- Tablet: Enhanced spacing and larger controls
- Desktop: Full-featured experience with optimal spacing
- Enter a text prompt describing the image you want to create
- Click the "Generate" button or press Enter
- Wait for the AI to generate your image
- Download your image using the download button
The frontend sends a request to the Railway-hosted API, which uses Hugging Face's Stable Diffusion models to generate the image.
Contributions are welcome! Here's how you can contribute:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the ISC License - see the LICENSE file for details.
- Omar A - GitHub Profile
- Hugging Face for the AI models
- Stable Diffusion for the image generation technology
- Railway for hosting the backend
- Font Awesome for the icons
- Google Fonts for the Poppins font