Skip to main content
skill CX Codex

muapi-ugc-video-factory — Claude Code skill: what it does, install

Creates vertical 9:16 UGC video ads with synchronized spoken audio from a person image, product photo, and script. Built for direct execution in coding agents.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add SamurAIGPT/Generative-Media-Skills --skill muapi-ugc-video-factory -a claude-code
Open on GitHub

What muapi-ugc-video-factory does

The skill runs a structured three-stage creation process. First, an LLM drafts a director-grade lifestyle photography prompt describing lighting, pose, and background context. Next, the nano-banana-pro-edit model merges the person photo and the product picture into a single 1K vertical hero image.

The final stage calls seedance-2-vip-image-to-video to animate that image into a 10-second continuous clip. It creates lip-synced audio matching the supplied script without camera cuts or overlaid text. For lower generation delays, the recipe also supports seedance-2-vip-image-to-video-fast.

Keep script length strictly under two sentences. Seedance 2.0 clips spoken words whenever scripts exceed the 10-second window. The agent also fails immediately if MUAPI_API_KEY is missing from the environment.

What it helps with

  • merge a person photo and a product snapshot into a 9:16 hero shot
  • animate a static portrait into a ten-second vertical UGC video
  • synthesize native lip-synced dialogue from a text script
  • construct detailed photo prompts that preserve product branding and facial traits

Example prompts for the agent

  • Make a UGC video with person.jpg and product.png saying 'This serum changed my morning routine'
  • Generate a vertical 9:16 clip using speaker.jpg and hoodie.png set in a minimalist study room

How to install muapi-ugc-video-factory

1Skills CLI (Vercel)

npx skills add SamurAIGPT/Generative-Media-Skills --skill muapi-ugc-video-factory -a claude-code

2Manually: put the files in place

~/.claude/skills/muapi-ugc-video-factory/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/muapi-ugc-video-factory/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about muapi-ugc-video-factory

How do I install muapi-ugc-video-factory in Claude Code?

Run npx skills add SamurAIGPT/Generative-Media-Skills --skill muapi-ugc-video-factory -a claude-code in your terminal.

Which models does this skill use to produce clips?

It coordinates GPT for prompt writing, nano-banana-pro-edit for reference photo fusion, and seedance-2-vip-image-to-video for clip animation and voice generation.

What credentials are required to run the pipeline?

You need a valid MUAPI_API_KEY configured via muapi auth configure. Local files must be uploaded to the service using muapi upload file <path> before generation starts.

Source text

SKILL.md · MIT
---
slug: muapi-ugc-video-factory
name: muapi-ugc-video-factory
version: "1.0.0"
description: Turn a person photo + a product photo + an optional script into a vertical 9:16 UGC-style video ad. Generates a lifestyle hero image (Nano-Banana Pro Edit), then animates it with native audio using Seedance 2.0 VIP image-to-video.
acceptLicenseTerms: true
---


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


**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` CLI does not yet alias `nano-banana-pro-edit` or `seedance-2-vip-image-to-video`, fall back to the raw API: `curl -X POST https://api.muapi.ai/api/v1/<endpoint> -H "x-api-key: $MUAPI_API_KEY" -H 'content-type: application/json' -d '{...}'`, then poll with `muapi predict wait <request_id>`.

© SamurAIGPT · MIT · SamurAIGPT/Generative-Media-Skills

Similar skills

Everything for Marketing and content →

From the same set39

muapi-ai-clipping Turns one long video into short vertical clips through a single API call. Handy when a podcast or stream has to be cut for Shorts and Reels. CX Codex +1 2,600installs muapi-product-video-ad-maker Turns a plain product photo into a polished commercial still, then animates it into a short cinematic ad. Useful when you need a promo clip without a shoot. CX Codex +1 2,500installs muapi-instagram-post Generates Instagram visuals along with matching captions and hashtags via the muapi CLI. Useful for feed posts and Reels covers. CX Codex +1 2,500installs muapi-youtube-thumbnail This skill plans a thumbnail composition, generates a 16:9 image through muapi, then suggests overlay text, placement and font. CX Codex +1 2,500installs muapi-ad-creative Builds an ad set: a hero image, three copy variations and crops sized for Meta, Google Display and LinkedIn. Useful when a campaign needs banners and there is no designer on hand. CX Codex +1 2,400installs muapi-platform Configures your muapi.ai API key, checks connectivity, and waits for async generation results by request ID. CX Codex +1 1,100installs muapi-photo-pack-generator Turns a single reference photo into a set of themed portraits while keeping the person's face intact. Useful for professional, lifestyle and fantasy shots without a shoot. CX Codex +1 966installs muapi-storyboard Turns a one-line story premise into a storyboard and generates keyframe images through muapi. Useful when you need reference panels before shooting or animating. CX Codex +1 686installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor