Spaces:
Runtime error
Runtime error
metadata
title: Multi Image Generator
emoji: π¨
colorFrom: purple
colorTo: blue
sdk: docker
app_file: app.py
pinned: false
Multi Image Generator
A powerful Next.js web application for generating images using multiple AI providers. Generate stunning images with OpenAI DALL-E 3, Google Generative AI, or Qwen - all from one unified interface.
β¨ Features
- π€ Multi-Provider Support - Use OpenAI, Google Generative AI, or Qwen
- π§ Smart Model Selection - Automatically route to the best available provider
- β‘ Real-time Generation - Watch your images come to life
- π Image History - Keep track of all your generated images
- π Dark/Light Mode - Comfortable viewing in any lighting
- π Secure API Keys - Manage your API keys privately through settings
π― Supported Providers
| Provider | Model | Features |
|---|---|---|
| OpenAI | DALL-E 3 | High-quality, detailed images |
| Imagen 2 | Fast generation, excellent quality | |
| Qwen | Qwen Image Gen | Cost-effective, good quality |
π Quick Start
- Visit the Space and open the application
- Add API Keys - Click settings and add your API keys for providers you want to use
- Generate Images - Enter your prompt and watch the magic happen!
Getting API Keys
- OpenAI: https://platform.openai.com/api-keys
- Google: https://ai.google.dev
- Qwen: https://dashscope.aliyun.com
π» Local Development
# Install dependencies
npm install
# Run development server
npm run dev
# App available at http://localhost:9002
# Build for production
npm run build
# Start production server
npm start
π οΈ Technologies
- Frontend: Next.js 15, React 19, TypeScript
- Styling: Tailwind CSS, Radix UI
- AI: Genkit AI, Google Generative AI SDK
- Backend: Next.js API Routes
- UI Components: shadcn/ui
π How It Works
- Prompt Enhancement - Your prompt is automatically improved for better results
- Provider Selection - The app intelligently selects the best available provider
- Image Generation - Request sent to the selected provider
- Display & History - Generated images shown with automatic history tracking
π³ Docker Deployment
This project is configured to run on Hugging Face Spaces using Docker:
# The Dockerfile handles:
- Node.js environment setup
- Dependency installation
- Next.js build
- Production server startup on port 7860
βοΈ Configuration
All configuration is handled through the UI:
- API keys are stored locally in your browser
- No sensitive data is stored on the server
- Settings are managed via the settings panel
π License
MIT License - feel free to use this project for personal or commercial purposes.
π€ Contributing
Have ideas to improve Multi Image Generator? Feel free to:
- Report issues
- Suggest features
- Submit pull requests
π§ Support
For issues or questions about using the app, please check the settings panel for API key configuration help.