https://github.com/mgalacyber/text2image
Generate image using prompt
https://github.com/mgalacyber/text2image
ai ai-image-generation flux flux-dev generative-art image-generation-ai stable-diffusion text-to-image
Last synced: about 1 month ago
JSON representation
Generate image using prompt
- Host: GitHub
- URL: https://github.com/mgalacyber/text2image
- Owner: MGalaCyber
- License: mit
- Created: 2025-09-03T07:57:39.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2025-09-18T01:56:25.000Z (9 months ago)
- Last Synced: 2025-09-18T03:42:00.228Z (9 months ago)
- Topics: ai, ai-image-generation, flux, flux-dev, generative-art, image-generation-ai, stable-diffusion, text-to-image
- Language: TypeScript
- Homepage: https://t2i.galaxd.com
- Size: 1.17 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🖼️ Text to Image Generator

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.
---
## 🚀 Features
- ✍️ Generate images from any text prompt
- 🎨 Choose different models (Flux, Stable Diffusion, Pollinations, etc.)
- 🔢 Version selection (for `text2img` models)
- 📷 Instant preview after generation
- 📥 Download or copy image URL easily
- ⚡ Built with Next.js 15+ App Router
---
## 🛠️ Environment Configuration
Create a `.env` file in the root directory and add your Text2Img credentials:
```env
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](https://api.galaxd.com/dashboard)
- UNIVERSE_API_KEY → Select `Settings > API Key > Copy`
- 🔗 [Go to Visitor Counter](https://visitorcounter.galaxd.com/)
- NEXT_PUBLIC_VISITOR_TRACKING_ID → Input whitelist domain > Generate
---
## 💡 Usage
1. Enter a prompt in the text area (e.g., _"A futuristic cityscape at night with neon lights"_)
2. Select the model you want to use
3. (Optional) Select version if you choose text2img
4. Click Generate
5. Preview the result, download the image, or copy the image URL
---
## 📌 Notes
- 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)