
How I built an AI virtual try-on button for fashion stores using fal.ai and Supabase
The problem I was trying to solve Fashion ecommerce has a dirty secret — 30-40% of all purchases get returned. The #1 reason? "It didn't look right on me." Shoppers can't tell how a dress will fit their body from a flat product photo. So they buy, try, and return. I built Torziva to fix this. What Torziva does Torziva adds a "Try On" button to any fashion store's product page. When a shopper clicks it: They upload their photo AI places the exact garment on their body They see a realistic on-model photo — in under 30 seconds Real fabric texture. Real fit. Real colors. On their actual physique. The tech stack Here's what I used to build it: fal.ai — for the AI image generation / virtual try-on model Supabase — auth, database, storage Next.js 14 — frontend + API routes Vercel — deployment The core flow is simple: User uploads photo → API sends to fal.ai with garment image → fal.ai returns generated image → Display result to user Why fal.ai? I evaluated a few image generation APIs. fal.ai
Continue reading on Dev.to Webdev
Opens in a new tab


