Skip to main content
ClaudeWave
Skill3.5k repo starsupdated today

muapi-ugc-video-factory

muapi-ugc-video-factory creates vertical 9:16 user-generated content style video ads by converting a person photo and product photo into an animated UGC clip. It synthesizes a lifestyle hero image from the two photos, then animates that image with synced spoken audio derived from an optional script. Use this to produce authentic-feeling product testimonial videos suitable for e-commerce ads without requiring actors, studios, or video production equipment.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/SamurAIGPT/Generative-Media-Skills /tmp/muapi-ugc-video-factory && cp -r /tmp/muapi-ugc-video-factory/library/motion/ugc-video-factory ~/.claude/skills/muapi-ugc-video-factory
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# UGC Video Factory

**Turn a person photo + product photo (+ optional script & environment) into a vertical 9:16 UGC-style video ad with native dialogue audio.**

A three-stage pipeline:
1. **GPT** writes a director-grade ultra-realistic lifestyle photography prompt from your inputs.
2. **Nano-Banana Pro Edit** fuses the person + product into a single hero photo (1K, 9:16).
3. **Seedance 2.0 VIP Image-to-Video** animates the hero photo into a 10s vertical UGC clip with synced spoken audio.

## Inputs

| Name | Type | Required | Default | Description |
|:---|:---|:---|:---|:---|
| `person` | image_url | yes | — | Photo of the person who will appear in the ad (face + upper body works best). |
| `product` | image_url | yes | — | Clear photo of the product (preferably on neutral background, logo/text legible). |
| `script` | text | no | `Okay… first of all, ship happens. And this hat is honestly my favorite. It also comes in navy and black, so you can pick your vibe.` | The exact line the on-screen person will say (kept short — 1–2 sentences fit 10s comfortably). |
| `environment` | text | no | `study room, laptop in front of it` | Scene / context where the person is using the product (e.g. "bathroom mirror, morning routine", "coffee shop window seat"). |

If `person` or `product` is missing, ask the user to upload them (`muapi upload file <path>`) or offer to generate placeholders before continuing.


## Steps

Run the three steps sequentially — each step's output feeds the next.

### Step 1 — Director Prompt (GPT)

Use a GPT model (`gpt-5.1` or whichever chat model is available to the executing agent) with **temperature 0** and **max ~200 tokens** to produce the hero-image prompt.

**System prompt:** `You are a helpful assistant.`

**User prompt** (substitute `{{person}}`, `{{product}}`, `{{environment}}`):

```
Uploaded images are being analyzed. Ultra-realistic lifestyle photography with {{person}} and {{product}} and {{environment}}.

If the product is wearable (e.g., hat, glasses, hooded sweatshirt), the person wears the product naturally.

If the product is carried in the hand (e.g., cream, bottle, thermos), the person holds the product naturally.

The product is clearly visible and is the main focus of the image. The logo or text on the product must be legible.

The person has a natural and modern look with a minimalist style.

The scene is consistent with the context of the product's use: {{environment}}.

Lighting: soft natural daylight.
Background: clean, aesthetic, slightly blurred (shallow depth of field).
Style: high-end commercial lifestyle photography, realistic textures, 4K quality, vertical 9:16 composition, social-media advertising style. The background and environment should be appropriate to the product (e.g. a woman with a serum could be at home). The person's facial details and the product must remain unchanged.
```

Capture the GPT response as `{{step1_prompt}}`.

### Step 2 — Hero Image (Nano-Banana Pro Edit)

Submit a `muapi image edit` call against the `nano-banana-pro-edit` model:

- **Reference images** (`image_urls`): `[ {{person}}, {{product}} ]` — order matters; person first.
- **Prompt**: `{{step1_prompt}}` from Step 1.
- **Aspect ratio**: `9:16`
- **Num images**: `1`
- **Resolution**: `1K`
- **Output format**: `jpeg`

Capture the resulting image URL as `{{hero_image}}`. Briefly show it to the user for approval before kicking off the video step.

### Step 3 — UGC Video (Seedance 2.0 VIP Image-to-Video)

Submit a `muapi video from-image` call against **`seedance-2-vip-image-to-video`** (or the `-fast` variant if the executing agent wants lower latency).

- **Start image**: `{{hero_image}}` from Step 2.
- **Aspect ratio**: `9:16`
- **Duration**: `10` seconds.
- **Generate audio**: `true` (native dialogue).
- **CFG scale**: `0.5`
- **Negative prompt**: `blur, distort, low quality`
- **Prompt** (substitute `{{script}}`):

```
Create a 10-second vertical UGC-style video (9:16).

A person is interacting naturally with their setting and product.

The product is used naturally:
- If wearable → the person is wearing it.
- If handheld → the person is holding or applying it.

The video is a single, uninterrupted shot. No cuts. No color changes. No text on screen.

The person looks directly at the camera with a relaxed and natural expression.
They interact comfortably with the product using their hands (adjusting, holding, pointing).

They say in a natural, conversational tone:

"{{script}}"

Subtle hand gestures while speaking.
End with a small smile or nod.

Style: authentic UGC, handheld phone feel, light natural movement, soft daylight, shallow depth of field, TikTok/Reels aesthetic.
```

Poll the result with `muapi predict wait <request_id>` and download to the user's outputs directory.

## Notes

- VIP tier supports 9:16 and durations 4–15s; 10s is the sweet spot for a 1–2 sentence script.
- Keep the script short — Seedance 2.0 will compress longer scripts and clip words.
- Seedance VIP tolerates realistic human faces in references (unlike Chinese tier), making it the right choice for UGC.
- If you want lower latency at the same quality, swap to `seedance-2-vip-image-to-video-fast`.
- For multi-shot ads, generate several `{{hero_image}}` variations in Step 2 and animate each independently — Seedance VIP does not multi-image i2v at 9:16 + audio.

## Trigger Keywords

`ugc video factory`, `ugc video ad`, `person plus product video`, `talking product ad`, `ugc reel`, `lifestyle product video`, `vertical ugc video`


---

## Notes for the Executing Agent

- This recipe is LLM-orchestrated: read each phase, gather any missing inputs from the user, then call `muapi` CLI commands. Run `muapi auth configure` first if `MUAPI_API_KEY` is unset.
- For local files supplied by the user, upload them first: `muapi upload file <path> --output-json --jq '.url'`.
- Substitute `{{input_name}}` placeholders with the user's actual inputs before issuing each call.
- If the `muapi` CL
muapi-media-editingSkill

Edit and enhance images and videos with AI via muapi.ai — prompt-based editing, upscaling, background removal, face swap, lipsync, video effects, and more

muapi-media-generationSkill

Generate AI images, videos, music, and audio from the terminal via muapi.ai — supports 100+ models including Flux, Midjourney v7, Kling 3.0, Veo3, and Suno V5

muapi-platformSkill

Setup and utility scripts for muapi.ai — configure API keys, test connectivity, and poll for async generation results

muapi-ai-clippingSkill

Turn a long video into N viral-ready short clips with a single managed API call. Wraps muapi.ai's `/ai-clipping` endpoint, which handles transcription, highlight ranking through a virality framework (hook / emotional peak / opinion bomb / revelation / conflict / quotable / story peak / practical value), overlap dedupe, and vertical face-tracking auto-crop server-side. No local Whisper, no local LLM, no GPU.

muapi-3d-logo-animationSkill

Transform a 2D logo into a premium 3D version and animate it with professional cinematic effects.

muapi-ai-fight-sceneSkill

Generate a high-cut-density action / fight scene by first composing a 16-cell storyboard image, then driving Seedance 2.0 image-to-video off that storyboard. Stacks GPT-Image-2 (character sheet + storyboard), Nano-Banana-2 (environment concept), and Seedance 2.0 i2v.

muapi-animal-video-generatorSkill

Create a hilarious and ultra-realistic video of an anthropomorphic animal acting like a human vlogger in a real-world setting.

muapi-award-ceremony-videoSkill

Generate a 15-second cinematic awards-ceremony video — a host announces a winner from the stage, a spotlight finds them in the crowd, they walk up to the podium, receive the award, and the LED display reveals their name and "THE BEST ACTOR".