Suas fotos e sua voz viram vΓdeos falando, sem precisar se gravar toda vez. Γ uma versΓ£o em app do que a AvatarHype ensina em curso (anΓ‘lise completa em docs/engenharia-reversa-avatarhype.md).
Fluxo em /clone:
- Fotos β retrato base (
nano-banana-edit): de 1 a 6 fotos geram um retrato 9:16 fiel Γ sua identidade. - Voz (opcional) (
minimax-voice-clone): amostra de Γ‘udio + consentimento explΓcito β sua voz clonada. - Roteiro β vΓdeo: cena opcional (
nano-banana-edit) β fala com sua voz ou uma voz pronta (minimax-speech-2.6-hd) β foto falando (infinitetalk-image-to-video). As etapas encadeiam sozinhas, por webhook ou por polling.
Os agentes de roteiro (estrategista, roteirista, diretor de cenas) estΓ£o em prompts/.
cp .env.example .env # DATABASE_URL, NEXTAUTH_SECRET, UGC_API_KEY (MuAPI)β¦
npm install
npx prisma db push
npm run dev # http://localhost:3000/cloneSem WEBHOOK_URL pΓΊblico, a pΓ‘gina /clone consulta o status dos jobs a cada 8 s
(POST /api/jobs/[requestId]/refresh). VocΓͺ tambΓ©m pode entrar sΓ³ com a sua chave MuAPI; nesse caso
os crΓ©ditos internos nΓ£o sΓ£o cobrados.
Custos internos por etapa: src/lib/config.js β clone.costs.
Baseado no Open-AI-UGC (MIT). README original abaixo.
The free, open-source alternative to Arcads and MakeUGC. Generate AI UGC video ads with realistic AI actors using 4+ state-of-the-art video models β no per-seat pricing, no locked actor library, no vendor watermark.
Community: Join Reddit & Discord for discussions and support
π€ Automate UGC ad generations with AI coding agents: muapi-skills β a library of skills that let agents like Claude Code, Codex, and other coding assistants drive image/video models end-to-end (script β generate β review β re-render) directly from your terminal. Perfect for shipping 100 ad variants overnight without touching a UI.
Open-source Node based workflow builder -> https://github.com/SamurAIGPT/Vibe-Workflow
Open-source AI Clipping β turn any long-form YouTube video into viral-ready vertical shorts -> https://github.com/SamurAIGPT/AI-Youtube-Shorts-Generator
Open-source AI Design Agent -> https://github.com/Anil-matcha/Open-AI-Design-Agent
Schedule your UGC content automatically with AI -> https://github.com/Anil-matcha/Free-AI-Social-Media-Scheduler
Learn to monetize AI-generated content like this -> https://github.com/Anil-matcha/ai-creator-academy
Live Demo: open-ai-ugc.vercel.app
Follow the creator for updates
Open AI UGC is a free, open-source AI UGC video ad studio that brings the Arcads / MakeUGC workflow to everyone β without the $110β$500+/month per-seat subscription. Paste a script, upload a reference face or product image, pick a model, and ship a scroll-stopping 9:16 vertical ad for TikTok, Reels, or Shorts in under a minute. Powered by Muapi.ai, it supports image-to-video and text-to-video generation across models like Veo 3.1, Seedance 2, Grok Video, and Happy Horse 1 β all from a sleek, modern interface you can self-host, rebrand, and customize end to end.
Why Open AI UGC instead of Arcads or MakeUGC?
- Free & open-source β no $110β$500/mo subscription, no vendor lock-in
- Bring your own actors β upload any face or product image instead of being locked to a vendor roster
- Model choice β switch between Veo 3.1, Seedance 2, Grok Video, and Happy Horse 1 per render
- No watermark, no branding β 100% your domain, your studio, your client deliverables
- Self-hosted β your data and renders stay on your infra, full creative control
- Stripe & credits built-in β clone, swap branding, and sell it as your own UGC SaaS
- Extensible β add any MUAPI model in ~10 lines, modify the UI, build agencies on top of it
- AI UGC Video Studio β Paste a script, optionally upload up to 7 reference images (faces, products, scenes), pick a model, and generate a 9:16 vertical UGC ad. Reference images inline with
@image1,@image2, etc. - Multi-model support β 4 leading video models pre-wired: Veo 3.1 (Google), Seedance 2 (ByteDance), Grok Video (xAI), and Happy Horse 1. Switch per render.
- Image-to-Video & Text-to-Video β Animate a product shot, an AI-generated actor, or generate purely from text β your call.
- Per-model parameter control β Aspect ratio (9:16, 16:9, 1:1, etc.), duration (3β30s), resolution (480p β 4K), and mode (fun / normal / spicy for Grok) β UI adapts automatically to each model's capabilities.
- Async job pipeline β MUAPI delivers finished renders via webhook; the dashboard polls and updates live without page reloads.
- Creations dashboard β Every generation is persisted per user with prompt, settings, status, and final video URL.
- Credits system β Each user starts with 10 free credits; 1 credit per generation; insufficient-credit gating built in.
- Stripe billing β 3-tier pricing page (Free / Pro $19.99 / Elite $49.99) with Checkout + webhook credit top-up. Swap the tiers to whatever you want and ship.
- Google sign-in β NextAuth.js with Prisma adapter, ready to go. Add more providers in one file.
- Responsive UI β Tailwind v4 + Framer Motion, works on desktop and mobile, glassmorphism design.
The studio automatically adapts based on whether you upload reference images:
| Mode | Trigger | Use case | Prompt |
|---|---|---|---|
| Text-to-Video | No image uploaded | Generate a UGC ad purely from a script | Required |
| Image-to-Video | Reference image(s) uploaded | Animate a specific actor face / product shot / scene | Optional |
| Model | Provider | Type | Aspect Ratios | Duration | Resolution | Notes |
|---|---|---|---|---|---|---|
| Veo 3.1 | I2V | 16:9, 9:16 | 8s | 720p / 1080p / 4K | High-fidelity, realistic motion β best for premium client ads | |
| Seedance 2 | ByteDance | I2V | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 | 4β15s | β | Character-reference support, multi-shot generation |
| Grok Video | xAI | I2V | 9:16, 16:9, 2:3, 3:2, 1:1 | 6β30s | 480p / 720p | Modes: fun / normal / spicy β strong for high-CTR hooks |
| Happy Horse 1 | β | I2V | 16:9, 9:16, 1:1, 4:3, 3:4 | 3β15s | 720p | Fast, lifelike animation β great for batch iteration |
Adding a new MUAPI model takes ~10 lines in src/app/page.js (append to the MODELS array) and one line in src/app/api/generate/route.js (add to MODEL_ENDPOINTS).
UGC ads frequently need multiple references β actor face + product + setting. Open AI UGC supports up to 7 reference images per generation:
- Drag-and-drop or click to upload β images upload asynchronously with live status pills
- Inline references in your script β
@image1 holding the bottle, walking through @image2 - Per-image previews with one-click removal
- Auto-routing β passed as both
image_url(first image) andimages_list(full array) so every MUAPI model receives them in the format it expects
Out-of-the-box billing flow you can sell as a SaaS:
| Plan | Price | Credits | Target |
|---|---|---|---|
| Starter | Free | 10 | Trial users |
| Pro Studio | $19.99/mo | 500 | Solo creators / freelancers |
| Elite Creator | $49.99/mo | 1,500 | Agencies / power users |
Plans, prices, and features are defined in one file (src/app/pricing/page.js) β change them to whatever your business model needs. Stripe Checkout handles the payment, the webhook (src/app/api/webhook/stripe/route.js) increments credits on success.
- Node.js (v18+)
- A PostgreSQL database (free tiers on Neon, Supabase, or Railway)
- A Muapi.ai access key β copy the generated key value, not the label
- A Google OAuth client (Client ID + Secret)
- A Stripe account (test mode is fine to start)
# Clone the repo
git clone https://github.com/Anil-matcha/Open-AI-UGC.git
cd Open-AI-UGC
# Install dependencies
npm install
# Copy env template and fill in the values
cp .env.example .env
# Push the Prisma schema to your database
npx prisma db push
# Start the dev server
npm run devOpen http://localhost:3000, sign in with Google, and start generating. Every new user starts with 10 free credits.
# Postgres (Neon / Supabase / Railway / self-hosted)
DATABASE_URL="postgresql://user:password@host:port/dbname"
DIRECT_URL="postgresql://user:password@host:port/dbname"
# NextAuth β generate with: openssl rand -base64 32
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="..."
# Google OAuth
GOOGLE_CLIENT_ID="..."
GOOGLE_CLIENT_SECRET="..."
# MUAPI β https://muapi.ai/access-keys?utm_source=github&utm_medium=readme&utm_campaign=open-ai-ugc
UGC_API_KEY="..."
WEBHOOK_URL="https://your-deployment-url.com" # MUAPI calls this when a render finishes
# Stripe
STRIPE_SECRET_KEY="sk_test_..."
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="pk_test_..."
STRIPE_WEBHOOK_SECRET="whsec_..."
# UI
NEXT_PUBLIC_THEME=lightnpm run build
npm run startThis architecture is engineered explicitly for Vercel serverless environments.
- Database Provisioning: Create a new Postgres database (via Supabase or Neon) and retrieve connection URLs.
- Project Creation: Import your GitHub repository (
https://github.com/Anil-matcha/Open-AI-UGC) into the Vercel dashboard. - Configure Environment Variables: Add all variables from
.env.examplein Vercel. SetWEBHOOK_URLto your Vercel deployment URL (e.g.https://open-ai-ugc.vercel.app). - Deploy: Build with Vercel. Next.js page generation will run Prisma client generation automatically via our script config.
- Database Push: Run
npx prisma db pushto synchronize database models before launching. - Webhooks Setup:
- Configure a Stripe Webhook pointing to
https://open-ai-ugc.vercel.app/api/webhook/stripeselectingcheckout.session.completed. - Configure the MuAPI Webhook pointing to
https://open-ai-ugc.vercel.app/api/webhook/muapi.
- Configure a Stripe Webhook pointing to
Open-AI-UGC/
βββ src/
β βββ app/
β β βββ layout.js # Root layout (Tailwind, NextAuth provider, Navbar)
β β βββ page.js # Main UGC generator β model picker, prompt, image upload
β β βββ dashboard/page.js # User's generation history
β β βββ pricing/page.js # Stripe-powered pricing page
β β βββ api/
β β βββ generate/route.js # POST β kick off a UGC video generation
β β βββ upload/route.js # POST β image upload β hosted URL
β β βββ creations/route.js # GET β list user's creations
β β βββ creations/[id]/route.js # GET β single creation (polled by frontend)
β β βββ webhook/muapi/route.js # POST β MUAPI render-complete callback
β β βββ webhook/stripe/route.js # POST β Stripe payment callback β top up credits
β β βββ checkout/stripe/route.js # POST β create Stripe Checkout session
β β βββ auth/[...nextauth]/route.js # NextAuth handler
β βββ components/
β β βββ saas/Navbar.jsx # Top nav with credits badge & profile menu
β β βββ saas/AuthButtons.jsx
β β βββ ui/ # Button, Card primitives
β βββ lib/
β βββ auth.js # NextAuth config (Google + Prisma adapter)
β βββ prisma.js # Prisma client singleton
βββ prisma/
β βββ schema.prisma # User, Creation, Account, Session, VerificationToken
βββ package.json
Open AI UGC communicates with Muapi.ai using a webhook pattern:
- Submit β
POST /api/v1/{model-endpoint}withprompt,images_list, model parameters, andwebhook_url - Wait β MUAPI runs the render asynchronously (8sβ2min depending on model and duration)
- Callback β MUAPI calls your
webhook_urlwith the finished video URL and request ID - Update β
/api/webhook/muapi/route.jsfinds the matchingCreationrow byrequest_idand updates its status + URL - Poll β the frontend polls
/api/creations/[id]every 3 seconds and switches from spinner to video player as soon as status flips
Authentication uses the x-api-key header. Credits are decremented on submit (so failed renders cost a credit β you can adjust this in src/app/api/generate/route.js if you'd rather refund on failure).
- Next.js 16 β App Router, server components, React 19
- React 19 β Studio UI
- Tailwind CSS v4 β Utility-first styling
- Framer Motion β Animations and transitions
- Prisma 7 β Type-safe Postgres ORM
- NextAuth.js β Google OAuth with Prisma adapter
- Stripe β Checkout + webhooks for credit top-up
- Muapi.ai β AI video model API gateway (Veo, Seedance, Grok, Happy Horse, and more)
Open AI UGC is a community-driven, open-source alternative that gives you the same Arcads/MakeUGC workflow without the closed ecosystem and per-seat pricing.
| Arcads / MakeUGC | Open AI UGC | |
|---|---|---|
| Cost | $110β$500+/mo per seat | Free (open-source) β pay only for MUAPI API usage |
| Actor library | Locked to vendor's roster | Bring your own β any face or product image |
| Model choice | Single in-house model | Veo 3.1, Seedance 2, Grok Video, Happy Horse 1 (swap per render) |
| Hosted version | SaaS only | Self-host on Vercel / your own infra |
| White-label | Vendor branding / templates | 100% your brand, your domain, your client deliverables |
| Custom pricing | Fixed tiers | Stripe + 3 tiers wired up, edit one file to change |
| Source code | Closed | MIT licensed, fully hackable |
| Data privacy | Cloud-only | Your renders and user data stay on your infra |
| Reseller-friendly | No | Yes β built to be cloned, rebranded, and sold |
MIT β fork it, rebrand it, ship it.
Built with Muapi.ai β the unified API for AI image and video generation models.
Looking for a free, open-source alternative to Arcads or MakeUGC? Open AI UGC is a self-hostable AI UGC video ad studio you can customize, rebrand, and resell. No content filters, no vendor lock-in, no per-seat pricing.