返回顶部
g

giggle-generation-aimvAI音乐MV生成

Use when the user wants to create AI music videos (MV)—including generating music from text prompts or using custom lyrics. Triggers: generate MV, music video, make video for this song, lyrics video, create MV, AI music video, music+video, generate video from lyrics.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.0.10
安全检测
已通过
229
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

giggle-generation-aimv

MV Trustee Mode API 技能

调用MV trustee模式API以运行完整的MV生成工作流。项目创建和任务提交在脚本中合并为一步——仅调用一次execute_workflow;切勿分别调用创建和提交。

⚠️ 安装前请审阅

安装前请审阅。 此技能将:

  1. 1. 网络 – 调用Giggle.pro API进行MV生成

要求:python3 (>=3.6)、GIGGLEAPIKEY(系统环境变量)、pip包:requests

出错不重试:如果脚本执行遇到错误,请勿重试。直接向用户报告错误并停止。


首次使用前的必要设置

在执行任何操作前,确认用户已配置API Key。

API Key:登录Giggle.pro并从账户设置中获取API Key。

配置:设置系统环境变量GIGGLEAPIKEY

  • - export GIGGLEAPIKEY=yourapikey

验证步骤

  1. 1. 确认用户已在系统环境中配置GIGGLEAPIKEY
  2. 如果未配置,引导用户

> 您好!在使用MV生成功能前,您需要配置API Key。请前往Giggle.pro获取您的API Key,然后在终端中运行export GIGGLEAPIKEY=yourapi_key。
  1. 3. 等待用户配置完成后继续工作流

两种音乐生成模式

模式musicgeneratetype必需参数描述
提示词promptprompt, vocal_gender用文字描述音乐
自定义
custom | lyrics, style, title | 提供歌词、风格和标题 |

共享参数(所有模式,必需)

  • - referenceimagereferenceimageurl:参考图片——至少提供一个(assetid或下载URL)。也支持base64图片,例如iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==。对于base64:直接传递原始Base64字符串;不要添加data:image/xxx;base64前缀。
  • aspect:宽高比,16:9或9:16
  • scenedescription:视觉场景描述,默认为空——仅在用户明确提及场景时设置(最多200字符)
  • subtitleenabled:启用字幕,默认为false

模式特定参数

提示词模式

  • - prompt:音乐描述(必需)
  • vocal_gender:人声性别——male/female/auto(可选,默认auto)
  • instrumental:纯音乐(可选,默认false)

自定义模式

  • - lyrics:歌词内容(必需)
  • style:音乐风格(必需)
  • title:歌曲标题(必需)

工作流函数

使用execute_workflow运行完整工作流——调用一次并等待。内部流程:创建项目+提交任务(合并)→轮询进度(每3秒)→检测并支付待处理项→等待完成(最长1小时)。

重要提示

  • - 切勿分别调用createproject和submitmvtask——始终使用executeworkflow或createandsubmit
  • 调用后,只需等待函数返回;所有中间步骤均为自动执行

函数签名

python
execute_workflow(
musicgeneratetype: str, # 模式:prompt / custom
aspect: str, # 宽高比:16:9或9:16
project_name: str, # 项目名称
referenceimage: str = , # 参考图片assetid(与referenceimageurl互斥)
referenceimageurl: str = , # 参考图片URL或base64(与reference_image互斥)
scene_description: str = , # 场景描述,默认为空
subtitle_enabled: bool = False, # 字幕开关,默认为False
# 提示词模式
prompt: str = ,
vocal_gender: str = auto,
instrumental: bool = False,
# 自定义模式
lyrics: str = ,
style: str = ,
title: str = ,
)

参数提取规则

  1. 1. referenceimage和referenceimageurl:至少需要一个。使用referenceimage传递assetid;使用referenceimageurl传递图片URL或base64。
  2. scenedescription:默认为空——仅在用户明确提及场景、视觉描述或视觉风格时填写。
  3. subtitle_enabled:默认为False——仅在用户明确要求字幕时设置为True。
  4. aspect:当用户提及竖屏/垂直/9:16时使用9:16;否则默认为16:9。
  5. 模式选择:描述音乐/使用提示词→prompt;这是我的歌词/歌词是→custom;

示例

提示词模式
python
api = MVTrusteeAPI()
result = api.execute_workflow(
musicgeneratetype=prompt,
aspect=16:9,
project_name=我的MV,
referenceimageurl=https://example.com/ref.jpg,
prompt=欢快的流行乐,阳光沙滩氛围,
vocal_gender=female
)

自定义模式(用户提供歌词):
python
result = api.execute_workflow(
musicgeneratetype=custom,
aspect=9:16,
project_name=歌词MV,
referenceimage=assetxxx,
lyrics=第一段:春风拂面...,
style=流行,
title=春之歌
)

带场景描述(当用户明确描述场景时):
python
result = api.execute_workflow(
musicgeneratetype=prompt,
aspect=16:9,
project_name=场景MV,
referenceimageurl=https://...,
prompt=电子舞曲,
scene_description=城市夜景,霓虹灯,车流
)

提交任务API请求示例(提示词模式)

提交端点(/api/v1/trustee_mode/mv/submit)请求体:

json
{
project_id: ,
musicgeneratetype: prompt,
prompt: 一首欢快的流行歌曲,
vocal_gender: female,
instrumental: false,
referenceimageurl: /9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMTEhUT...(base64图片数据),
scene_description: 日落时分的浪漫海滩漫步,海浪轻拍海岸,粉色天空渐变,
aspect: 16:9,
subtitle_enabled: false
}

注意:referenceimage(assetid)和referenceimageurl(URL或base64)互斥。

自定义模式

json
{
project_id: ,
musicgeneratetype: custom,
lyrics: 第一段:\n站在海边看日落\n回忆如潮水般涌来\n\n副歌:\n让海风吹走所有烦恼\n在这金色时刻\n我们找到了彼此\n,
style: 流行情歌,
title: 海边回忆,
referenceimage: id>,
scene_description: 黄昏时分一对情侣在海滩漫步,长影,橙红色天空渐变,
aspect: 9:16,
subtitle_enabled: false
}

查询进度API响应示例

查询端点(/api/v1/trustee_mode/mv/query)响应(所有步骤完成):

json
{
code: 200,
msg: success,
uuid: ,
data: {
project_id: ,
video_asset: {
assetid: id>,
download_url: https://assets.giggle.pro/private/...,
thumbnail_url: https://assets.giggle.pro/private/...,
signed_url: https://assets.giggle.pro/private/...,
duration: 0
},
shot_count: 0,
current_step: editor,
completed_steps: music-generate,storyboard,shot,editor,
pay_status: paid,
status: completed,
err_msg: ,
steps: [...]
}
}

注意:当pay_status为pending时,调用支付端点。当所有

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 giggle-generation-aimv-1776119162 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 giggle-generation-aimv-1776119162 技能

通过命令行安装

skillhub install giggle-generation-aimv-1776119162

下载

⬇ 下载 giggle-generation-aimv v0.0.10(免费)

文件大小: 15.12 KB | 发布时间: 2026-4-15 12:52

v0.0.10 最新 2026-4-15 12:52
**v0.0.10 Summary: English support, simplified setup, and environment requirements clarified.**

- SKILL.md rewritten in English with improved clarity and concise usage notes
- Explicit environment and pip dependencies listed (`python3 (>=3.6)`, `requests`, `GIGGLE_API_KEY`)
- Separated configuration instructions: now always require system environment variable for API key
- Error handling guidance updated: on error, do not retry automatically, prompt user intervention
- Added SKILL.zh-CN.md for Simplified Chinese documentation

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large