DEV Community

Mrstrongai
Mrstrongai

Posted on

How I Built an AI Image & Video Generator in 2 Weekends

Two weekends. One idea. A fully functional AI image and video generator.

I wanted to create something that lets anyone generate stunning AI images and videos without technical knowledge. Here's how I built AI Gen.

The Tech Stack

  • Frontend: Next.js with Tailwind CSS
  • AI Generation: Replicate API for image and video generation
  • Authentication: NextAuth.js
  • Database: PostgreSQL with Prisma

Key Features

  • 🎨 Text-to-image generation with multiple AI models (FLUX, Stable Diffusion, etc.)
  • 🎬 Image-to-video conversion
  • πŸ–ΌοΈ Support for various aspect ratios and styles
  • πŸ’³ Simple credits system for usage tracking

Challenges Faced

  1. API Rate Limiting: Had to implement smart queuing and caching
  2. Image Optimization: Ensuring fast loading while maintaining quality
  3. User Experience: Making AI generation feel instant even when it's not

Try It Yourself

πŸ‘‰ https://ai.mrstrongai.com

Built with #AI #IndieHacker #BuildInPublic

Would love to hear your thoughts and feedback!

Top comments (0)