Open AI UGC

June 3, 2026 ยท View on GitHub

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: Generative-Media-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

๐ŸŒ Live Demo & Deploy

Live Demo: open-ai-ugc.vercel.app

Deploy with Vercel

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

โœจ Features

  • 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.

๐ŸŽฌ UGC Video Generation โ€” Dual Mode

The studio automatically adapts based on whether you upload reference images:

ModeTriggerUse casePrompt
Text-to-VideoNo image uploadedGenerate a UGC ad purely from a scriptRequired
Image-to-VideoReference image(s) uploadedAnimate a specific actor face / product shot / sceneOptional

Supported Models

ModelProviderTypeAspect RatiosDurationResolutionNotes
Veo 3.1GoogleI2V16:9, 9:168s720p / 1080p / 4KHigh-fidelity, realistic motion โ€” best for premium client ads
Seedance 2ByteDanceI2V21:9, 16:9, 4:3, 1:1, 3:4, 9:164โ€“15sโ€”Character-reference support, multi-shot generation
Grok VideoxAII2V9:16, 16:9, 2:3, 3:2, 1:16โ€“30s480p / 720pModes: fun / normal / spicy โ€” strong for high-CTR hooks
Happy Horse 1โ€”I2V16:9, 9:16, 1:1, 4:3, 3:43โ€“15s720pFast, 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).

๐Ÿ–ผ๏ธ Multi-Image Reference Input

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) and images_list (full array) so every MUAPI model receives them in the format it expects

๐Ÿ’ณ Credits & Stripe Billing

Out-of-the-box billing flow you can sell as a SaaS:

PlanPriceCreditsTarget
StarterFree10Trial users
Pro Studio$19.99/mo500Solo creators / freelancers
Elite Creator$49.99/mo1,500Agencies / 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.

๐Ÿš€ Quick Start

Prerequisites

Setup

# 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 dev

Open http://localhost:3000, sign in with Google, and start generating. Every new user starts with 10 free credits.

Environment Variables

# 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
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=light

Production Build

npm run build
npm run start

โšก Deployment: Vercel & Production

This architecture is engineered explicitly for Vercel serverless environments.

Deploy with Vercel

๐Ÿš€ Launching on Vercel: Step-by-Step

  1. Database Provisioning: Create a new Postgres database (via Supabase or Neon) and retrieve connection URLs.
  2. Project Creation: Import your GitHub repository (https://github.com/Anil-matcha/Open-AI-UGC) into the Vercel dashboard.
  3. Configure Environment Variables: Add all variables from .env.example in Vercel. Set WEBHOOK_URL to your Vercel deployment URL (e.g. https://open-ai-ugc.vercel.app).
  4. Deploy: Build with Vercel. Next.js page generation will run Prisma client generation automatically via our script config.
  5. Database Push: Run npx prisma db push to synchronize database models before launching.
  6. Webhooks Setup:
    • Configure a Stripe Webhook pointing to https://open-ai-ugc.vercel.app/api/webhook/stripe selecting checkout.session.completed.
    • Configure the MuAPI Webhook pointing to https://open-ai-ugc.vercel.app/api/webhook/muapi.

๐Ÿ—๏ธ Architecture

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

๐Ÿ”Œ API Integration

Open AI UGC communicates with Muapi.ai using a webhook pattern:

  1. Submit โ€” POST /api/v1/{model-endpoint} with prompt, images_list, model parameters, and webhook_url
  2. Wait โ€” MUAPI runs the render asynchronously (8sโ€“2min depending on model and duration)
  3. Callback โ€” MUAPI calls your webhook_url with the finished video URL and request ID
  4. Update โ€” /api/webhook/muapi/route.js finds the matching Creation row by request_id and updates its status + URL
  5. 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).

๐Ÿ› ๏ธ Tech Stack

  • 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)

๐Ÿค” How is this different from Arcads and MakeUGC?

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 / MakeUGCOpen AI UGC
Cost$110โ€“$500+/mo per seatFree (open-source) โ€” pay only for MUAPI API usage
Actor libraryLocked to vendor's rosterBring your own โ€” any face or product image
Model choiceSingle in-house modelVeo 3.1, Seedance 2, Grok Video, Happy Horse 1 (swap per render)
Hosted versionSaaS onlySelf-host on Vercel / your own infra
White-labelVendor branding / templates100% your brand, your domain, your client deliverables
Custom pricingFixed tiersStripe + 3 tiers wired up, edit one file to change
Source codeClosedMIT licensed, fully hackable
Data privacyCloud-onlyYour renders and user data stay on your infra
Reseller-friendlyNoYes โ€” built to be cloned, rebranded, and sold

๐Ÿ“„ License

MIT โ€” fork it, rebrand it, ship it.

๐Ÿ™ Credits

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.