← 返回
内容创作 Key 中文

Giggle Generation Drama

Use when the user wants to generate video, shoot short films, or view available video styles. Triggers: short film, make video, shoot short, AI video, genera...
用于生成视频、拍摄短片或查看可用视频风格。
patches429
内容创作 clawhub v0.0.10 2 版本 100000 Key: 需要
★ 0
Stars
📥 637
下载
💾 15
安装
2
版本
#latest

概述

简体中文 | English

⚠️ Review Before Installing

Please review before installing. This skill will:

  1. Network – Calls Giggle.pro API for video generation

Requirements: python3, GIGGLE_API_KEY (system environment variable), pip packages: requests

> No Retry on Error: If script execution encounters an error, do not retry. Report the error to the user directly and stop.


Required Setup Before First Use

Before performing any operation, confirm the user has configured the API Key to avoid workflow failure due to auth errors.

  • API Key: Log in to Giggle.pro and obtain the API Key from account settings.
  • Configuration: Set system environment variable GIGGLE_API_KEY
  • export GIGGLE_API_KEY=your_api_key

Verification steps:

  1. Confirm the user has configured GIGGLE_API_KEY in system environment.
  2. If not configured, guide the user:

> Hello! Before using the video generation feature, you need to configure the API Key. Please go to Giggle.pro to get your API Key, then run export GIGGLE_API_KEY=your_api_key in the terminal.

  1. Wait for the user to configure before continuing the workflow.

Generation Modes

Supports three modes. Ask the user to select a mode before starting the workflow. If not specified, default to Episodes mode (director).

Modeproject_typeDescription
---------------------------------
EpisodesdirectorAI-directed short drama with storyboards and shot language
NarrationnarrationNarration-focused video
Short Filmshort-filmStory and visuals balanced; cinematic short film

Main Workflow: execute_workflow

Use execute_workflow to run the full workflow: submit + poll + auto-pay (if needed) + wait for completion. Call once and wait for return.

  1. Submit task
  2. Poll progress every 3 seconds
  3. Detect pending payment and auto-pay (if needed)
  4. Wait for completion (max 1 hour)
  5. Return video download link or error

Function Signature

execute_workflow(
    diy_story: str,                           # Story/script content (required)
    aspect: str,                              # Aspect ratio: 16:9 or 9:16 (required)
    project_name: str,                        # Project name (required)
    video_duration: str = "auto",             # Duration, default "auto" (optional)
    style_id: Optional[int] = None,          # Style ID (optional)
    project_type: str = "director",           # Mode, default "director" (optional)
    character_info: Optional[List[Dict]] = None  # Character images (optional)
)

Parameter Description

ParameterRequiredDescription
----------------------------------
diy_storyyesStory or script content
aspectyesAspect ratio: 16:9 or 9:16
project_nameyesProject name
video_durationnoauto, 30, 60, 120, 180, 240, 300; default "auto"
style_idnoStyle ID; omit if not specified
project_typenodirector / narration / short-film; default "director"
character_infonoCharacter image list: [{"name": "Character name", "url": "Image URL"}, ...]

Usage Flow

  1. Introduce and select generation mode (required): Before generating, must introduce the three modes and let the user choose. Display:

> We support three video generation modes. Please choose:

>

> Episodes (director): AI director handles storyboards and shot language. Good for short drama with dialogue and plot.

>

> Narration (narration): Narration-focused with visuals. Good for knowledge sharing, news commentary, product introductions.

>

> Short Film (short-film): Story and visuals balanced; cinematic shots and pacing. Good for emotional shorts, creative stories, artistic expression.

Wait for explicit user choice before continuing. If not specified, default to Episodes.

  1. If the user wants to pick a style: Call get_styles() for the style list; show ID, name, category, description; wait for choice before continuing.
  2. If the user provides character image URLs: Build character_info array with name and url per character.
  3. Run workflow:
    • Call execute_workflow() with story, aspect ratio, project name.
    • Set project_type per chosen mode; pass video_duration if specified (else "auto"); pass style_id if chosen; pass character_info if provided.
    • Call once and wait — the function handles create, submit, poll, pay, and completion; returns download link or error.

Examples

View style list:

api = TrusteeModeAPI()
styles_result = api.get_styles()
# Display style list to user

Basic workflow (no duration, no style):

api = TrusteeModeAPI()
result = api.execute_workflow(
    diy_story="An adventure story...",
    aspect="16:9",
    project_name="My Video Project"
)
# result contains download URL or error

Specify duration, no style:

result = api.execute_workflow(
    diy_story="An adventure story...",
    aspect="16:9",
    project_name="My Video Project",
    video_duration="60"
)

Specify duration and style:

result = api.execute_workflow(
    diy_story="An adventure story...",
    aspect="16:9",
    project_name="My Video Project",
    video_duration="60",
    style_id=142
)

Narration mode:

result = api.execute_workflow(
    diy_story="Today we'll talk about AI development...",
    aspect="16:9",
    project_name="Narration Video",
    project_type="narration"
)

Short film mode:

result = api.execute_workflow(
    diy_story="Sunset. An old fisherman rows home alone. The sea glows red...",
    aspect="16:9",
    project_name="Short Film",
    project_type="short-film"
)

With character images (when user provides character image URLs):

result = api.execute_workflow(
    diy_story="Xiao Ming and Xiao Hong meet in the park, they smile at each other...",
    aspect="16:9",
    project_name="Custom Character Video",
    character_info=[
        {"name": "Xiao Ming", "url": "https://xxx/xiaoming.jpg"},
        {"name": "Xiao Hong", "url": "https://xxx/xiaohong.jpg"}
    ]
)

Return Value

The function blocks until the task completes (success or failure) or times out (1 hour). Wait for it to return.

Success (includes download link):

{
    "code": 200,
    "msg": "success",
    "uuid": "...",
    "data": {
        "project_id": "...",
        "video_asset": {...},
        "status": "completed"
    }
}

Return the full signed URL to the user (data.video_asset.download_url), e.g.:

https://assets.giggle.pro/private/ai_director/348e4956c7bd4f763b/qzjc7gwkpf.mp4?Policy=...&Key-Pair-Id=...&Signature=...&response-content-disposition=attachment

Do not return unsigned URLs without query params, e.g.:

https://assets.giggle.pro/private/ai_director/348e4956c7bd4f763b/qzjc7gwkpf.mp4

Failure:

{
    "code": -1,
    "msg": "Error message",
    "data": null
}

版本历史

共 2 个版本

  • v0.0.10 当前
    2026-03-31 15:29 安全 安全
  • v0.0.1
    2026-03-14 03:27

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,251
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 294 📥 136,399
data-analysis

Market Monitor

patches429
通过交易所 API(如 Binance、OKX)监控加密货币及金融市场,追踪价格、分析趋势并生成市场报告。
★ 0 📥 1,281