Anil-matcha/Open-AI-UGC
Open AI UGC — free, open-source alternative to Arcads and MakeUGC. Generate AI UGC video ads with realistic AI actors using Veo 3.1, Seedance 2, Grok Video, and Happy Horse 1. Self-host on Next.js + Stripe + MUAPI.
Open AI UGC – Free, open‑source AI video‑ad studio
What it is – A self‑hostable web app that lets anyone create short vertical (9:16) UGC‑style video ads using state‑of‑the‑art text‑to‑video and image‑to‑video models. It reproduces the workflow of commercial services like Arcads or MakeUGC, but is MIT‑licensed, runs on your own infrastructure and has no per‑seat subscription.
Key capabilities
- Multi‑model generation – Choose from four Muapi‑exposed video models (Veo 3.1, Seedance 2, Grok Video, Happy Horse 1) and set model‑specific parameters (aspect ratio, duration, resolution, mode).
- Script‑first UI – Paste a marketing script, optionally embed up to 7 reference images with
@imageNplaceholders, then hit Generate to receive a finished video in seconds to minutes. - Credits & billing – Built‑in Stripe integration provides three SaaS‑style plans (Free/Pro/Elite). Users start with 10 free credits; each generation consumes one credit. Credits can be topped up via Stripe checkout.
- Auth & persistence – Google‑OAuth via NextAuth.js, Prisma‑backed PostgreSQL stores users, creations, and credit balances. A dashboard shows each user’s generation history.
- Async webhook pipeline – The app posts a request to Muapi.ai, which later calls a
/api/webhook/muapiendpoint with the final video URL. The front‑end polls the creation record and swaps a spinner for the video automatically. - Extensible – Adding a new Muapi model is a ~10‑line edit in
src/app/page.jsand a single line in the generation route.
Tech stack
- Next.js 16 (App Router) + React 19 – server‑components power the UI.
- Tailwind CSS v4 + Framer Motion – modern, responsive design with smooth animations.
- Prisma 7 + PostgreSQL – type‑safe data layer.
- NextAuth.js – Google OAuth (easy to add other providers).
- Stripe – checkout and webhook for credit top‑ups.
- Muapi.ai – unified API gateway to the underlying video generation models.
Getting started
- Clone the repo and install dependencies (
npm install). - Provide a
.envfile with PostgreSQL URL, Google OAuth credentials, a Muapi access key, and Stripe keys. - Run
npx prisma db pushto create tables, thennpm run dev. - Open
http://localhost:3000, sign in with Google, and start generating videos.
Deployment – Optimized for Vercel serverless hosting. A one‑click “Deploy with Vercel” button is provided; just configure the same environment variables and set the webhook URLs to the Vercel domain.
Why use it over closed SaaS?
| Feature | Commercial services (Arcads/MakeUGC) | Open AI UGC |
|---|---|---|
| Cost | $110‑$500 +/ seat / month | Free software; you only pay Muapi usage & optional Stripe fees |
| Actor library | Fixed vendor roster | Upload any face/product image |
| Model choice | Single proprietary model | Four interchangeable models, easy to add more |
| Branding | Vendor watermarks & UI | Full white‑label control (your domain, no watermarks) |
| Data privacy | All renders stored by vendor | Render URLs and user data stay on your own DB |
| Extensibility | Closed source | MIT‑licensed, fully hackable |
License – MIT (can be forked, rebranded, and sold).
Open AI UGC gives creators and agencies a cost‑free, customizable way to produce AI‑generated video ads without vendor lock‑in.
Related
- Project
- Project
- Project
- Project