A simple and powerful AI Text-to-Image Generator built with Next.js App Router. This tool allows users to generate high-quality images from text prompts with support for multiple models and versions.
- ✍️ Generate images from any text prompt
- 🎨 Choose different models (Flux, Stable Diffusion, Pollinations, etc.)
- 🔢 Version selection (for
text2imgmodels) - 📷 Instant preview after generation
- 📥 Download or copy image URL easily
- ⚡ Built with Next.js 15+ App Router
Create a .env file in the root directory and add your Text2Img credentials:
UNIVERSE_API_KEY=YOUR_API_KEY_HERE
NEXT_PUBLIC_VISITOR_TRACKING_ID=YOUR_ID_HERE🔍 How to get these values: You can find them in your Universe API dashboard:
- 🔗 Go to Dashboard → Settings
- UNIVERSE_API_KEY → Select
Settings > API Key > Copy
- UNIVERSE_API_KEY → Select
- 🔗 Go to Visitor Counter
- NEXT_PUBLIC_VISITOR_TRACKING_ID → Input whitelist domain > Generate
- Enter a prompt in the text area (e.g., "A futuristic cityscape at night with neon lights")
- Select the model you want to use
- (Optional) Select version if you choose text2img
- Click Generate
- Preview the result, download the image, or copy the image URL
- Image generation speed depends on the selected model
- Some models may require credits or API limits
- Handle errors gracefully (e.g., invalid key, quota exceeded)
