Loading...
Loading...
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, generate video from story, short drama, narration video, cinematic video, available video styles.
npx skill4agent add giggle-official/skills giggle-generation-dramapython3GIGGLE_API_KEYrequestsNo Retry on Error: If script execution encounters an error, do not retry. Report the error to the user directly and stop.
GIGGLE_API_KEYexport GIGGLE_API_KEY=your_api_keyGIGGLE_API_KEYHello! Before using the video generation feature, you need to configure the API Key. Please go to Giggle.pro to get your API Key, then runin the terminal.export GIGGLE_API_KEY=your_api_key
director| Mode | project_type | Description |
|---|---|---|
| Episodes | | AI-directed short drama with storyboards and shot language |
| Narration | | Narration-focused video |
| Short Film | | Story and visuals balanced; cinematic short film |
execute_workflowexecute_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 | Required | Description |
|---|---|---|
| diy_story | yes | Story or script content |
| aspect | yes | Aspect ratio: |
| project_name | yes | Project name |
| video_duration | no | |
| style_id | no | Style ID; omit if not specified |
| project_type | no | |
| character_info | no | Character image list: |
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.
get_styles()character_infonameurlexecute_workflow()project_typevideo_duration"auto"style_idcharacter_infoapi = TrusteeModeAPI()
styles_result = api.get_styles()
# Display style list to userapi = TrusteeModeAPI()
result = api.execute_workflow(
diy_story="An adventure story...",
aspect="16:9",
project_name="My Video Project"
)
# result contains download URL or errorresult = api.execute_workflow(
diy_story="An adventure story...",
aspect="16:9",
project_name="My Video Project",
video_duration="60"
)result = api.execute_workflow(
diy_story="An adventure story...",
aspect="16:9",
project_name="My Video Project",
video_duration="60",
style_id=142
)result = api.execute_workflow(
diy_story="Today we'll talk about AI development...",
aspect="16:9",
project_name="Narration Video",
project_type="narration"
)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"
)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"}
]
){
"code": 200,
"msg": "success",
"uuid": "...",
"data": {
"project_id": "...",
"video_asset": {...},
"status": "completed"
}
}data.video_asset.download_urlhttps://assets.giggle.pro/private/ai_director/348e4956c7bd4f763b/qzjc7gwkpf.mp4?Policy=...&Key-Pair-Id=...&Signature=...&response-content-disposition=attachmenthttps://assets.giggle.pro/private/ai_director/348e4956c7bd4f763b/qzjc7gwkpf.mp4{
"code": -1,
"msg": "Error message",
"data": null
}