使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/samuraigpt/muapi-skills --skill muapi-product-ad-cinematic开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
Cinematic Product Ad
Cinematic 5–10s product ad from a product photo + brand brief.
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
product_image | image_url | yes | — | URL of the product photo (must already be uploaded). |
brand_brief | text | yes | — | Mood / style direction (e.g. "luxury minimal", "playful"). |
duration_sec | int | no | 6 | Final video length in seconds (5–10). |
Steps
This skill has TWO phases separated by a user pick. Submit them as two separate the plan calls — never bundle downstream steps into the first plan.
Phase A — variant exploration (cheap)
Submit ONE the plan containing only:
- Hero frame variants — 4 separate
muapi image generatenodes
(model=nano-banana-2, aspect_ratio=16:9 by default).
- Each prompt restyles the product against the brand brief mood. Vary
lighting, palette, framing, and lens between variants. Keep product geometry intact.
- Reference the user's
product_imageif the model supports image
conditioning; otherwise describe the product in detail.
After the plan executes, end your turn with a brief message listing the 4 assetids and asking the user which one to take forward (e.g. "Pick a hero (asset1, asset2, asset3, or asset_4)?"). Wait.
Phase B — commit on the picked hero (expensive)
Once the user replies with their pick, submit a SECOND the plan:
- Upscale the picked frame —
enhance_image(operation=upscale). - Animate the upscaled frame —
muapi video from-image(model=kling-v3.0-standard-image-to-video,
duration={{duration_sec}}, prompt="slow cinematic push-in, soft volumetric light, subtle product micro-rotation"). Reference the upscale's URL with $nX.url.
- Background music —
muapi audio create(kind=music) — runs in parallel
with the upscale/animate. Style derived from brand_brief (luxury → "ambient cinematic, warm strings, slow tempo, instrumental"). Duration ≈ video length.
- Return the upscaled hero image and the final video.
Notes
- If the brief mentions "luxury", bias the palette to gold/black; for "playful",
bias to bright/saturated.
- If video gen fails after failover, fall back to a still-frame slideshow
(just return the upscaled hero + music).
- Don't auto-confirm step 4 — its cost (~80 cr) deserves a user nod.
Trigger Keywords
product ad, commercial, cinematic ad, product video
Notes for the Executing Agent
- This recipe is LLM-orchestrated: read each phase, gather any missing inputs from the user, then call
muapiCLI commands. Usemuapi auth configurefirst ifMUAPI_API_KEYis unset. - For model IDs without a CLI alias yet, fall back to the raw endpoint via
curl -X POST https://api.muapi.ai/api/v1/<endpoint> -H "x-api-key: $MUAPI_API_KEY" -H 'content-type: application/json' -d '{...}'and poll withmuapi predict wait <request_id>. - Substitute
{{input_name}}placeholders with the user's actual inputs before issuing each call.