Back to Home

DreamMyPic — AI Portrait Transformation Platform

DreamMyPic is a full-stack AI portrait generation platform that lets users upload a selfie, describe their creative vision with a text prompt, and receive a stunning AI-generated portrait that preserves their facial identity. The backend (NestJS) sends the image and prompt to a RunPod serverless endpoint running a custom Docker container with the PuLID-FLUX model. Once the inference completes, RunPod fires a webhook back to the server, which uploads the result to AWS S3 and pushes the image URL to the frontend in real-time via Server-Sent Events (SSE). Users authenticate via Otpless (passwordless OTP), manage a token-based credit system, and can purchase additional tokens through Razorpay payment integration. The frontend is built with Next.js 15, React 19, and Tailwind CSS, while the backend uses NestJS with Prisma ORM on MongoDB.

Tech Stack

Next.js 15React 19TypeScriptTailwind CSSNestJSPrisma ORMMongoDBRunPod (Serverless GPU)PuLID-FLUX (Face ID Preservation Model)DockerAWS S3Otpless (Passwordless Auth)Razorpay (Payments)Server-Sent Events (SSE)

Key Features

  • Upload a portrait photo and describe your desired transformation with a text prompt
  • AI generates a stylized portrait while preserving facial identity using PuLID
  • Real-time image delivery via Server-Sent Events (SSE) — no polling required
  • Token-based credit system with free starting balance
  • Razorpay payment integration to purchase additional tokens
  • Passwordless authentication via email/phone OTP (Otpless)
  • Image download with one click
  • Generation history logs for each user
  • AWS S3 cloud storage for all generated images