Skip to content

An AI-powered text-to-image generator built with Angular. Enter text prompts and generate stunning images using cutting-edge AI models.

Notifications You must be signed in to change notification settings

abidakram01/text-to-image-ai-generator-angular

Repository files navigation

🖼️ Text to Image Generator (Angular)

A sleek, modern web application built with Angular that turns your text prompts into stunning AI-generated images. Powered by the magic of artificial intelligence and a clean UI, this tool helps you generate, explore, and download creative visuals instantly.


🚀 Live Demo

🔗 https://text-2-image-ai-generator.netlify.app


📸 Preview

App Preview


✨ Features

  • 🧠 AI-powered text-to-image generation
  • ⚡ Instant preview of results
  • 🌓 Light & dark theme support
  • 📥 One-click image download
  • 📱 Fully responsive & mobile-ready

🧰 Tech Stack

Category Technology
Frontend Angular 18+
Styling CSS, SCSS
Backend REST API (AI model, e.g. Hugging Face)
Icons FontAwesome
Deploy Netlify

📦 Getting Started

1. Clone the repository

git clone https://github.com/abidakram01/text-to-image-generator-ai-angular.git
cd text-to-image-generator-angular

2. Install dependencies

npm install

3. Run the app locally

ng serve

Now, open your browser and go to:
👉 http://localhost:4200


⚙️ Configuration

If you're using an external API (like Replicate or Stability.ai), configure it like so:

// src/environments/environment.ts
export const environment = {
  production: false,
  apiKey: 'your-secret-api-key'
};

Note: Never commit your API keys to GitHub. Use Angular environments or environment variables with proper security.


📜 Scripts

Here are some helpful scripts you can run:

Command Description
ng serve Starts the development server
ng build Builds the app for production
ng test Runs unit tests
ng lint Lints and checks for code quality
npm run format Formats the code using Prettier (if added)

🤝 Contributing

We love contributions! Here’s how you can help:

  1. Fork the repository
  2. Create a new branch
    git checkout -b feature/amazing-feature
  3. Make your changes
  4. Commit your changes
    git commit -m "feat: add amazing feature"
  5. Push the branch
    git push origin feature/amazing-feature
  6. Open a Pull Request

📄 License

This project is licensed under the MIT License.
Feel free to use, modify, and share it!


🙋‍♂️ Author

Made with ❤️ by Abid Akram
Want to connect? Reach out on LinkedIn


🔥 Happy Coding!

About

An AI-powered text-to-image generator built with Angular. Enter text prompts and generate stunning images using cutting-edge AI models.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published