chaojixinren/helloagents-go/video-generation
Claude Code and agent skill by chaojixinren/helloagents-go
- community
Checking that the SKILL.md file is still in the repository.
Implement AI-powered video generation capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to generate videos from text prompts or images, create video content programmatically, or build applications that produce video outputs. Supports asynchronous task management with status polling and result retrieval.
Install
npx vskill@latest install chaojixinren/helloagents-go/video-generationSKILL.md
The same SKILL.md was published earlier as jjyaoao/helloagents/video-generation.
Video Generation Skill
This skill guides the implementation of video generation functionality using the z-ai-web-dev-sdk package, enabling AI models to create videos from text descriptions or images through asynchronous task processing.
Skills Path
Skill Location: {project_path}/skills/video-generation
This skill is located at the above path in your project.
Reference Scripts: Example test scripts are available in the {Skill Location}/scripts/ directory for quick testing and reference. See {Skill Location}/scripts/video.ts for a working example.
Overview
Video Generation allows you to build applications that can create video content from text prompts or images, with customizable parameters like resolution, frame rate, duration, and quality settings. The API uses an asynchronous task model where you create a task and poll for results.
IMPORTANT: z-ai-web-dev-sdk MUST be used in backend code only. Never use it in client-side code.
Prerequisites
The z-ai-web-dev-sdk package is already installed. Import it as shown in the examples below.
CLI Usage (For Simple Tasks)
For simple video generation tasks, you can use the z-ai CLI instead of writing code. The CLI handles task creation and polling automatically, making it ideal for quick tests and simple automation.
Basic Text-to-Video
Custom Quality and Settings
Image-to-Video
IMPORTANT: For image_url parameter, it is strongly recommended to use base64-encoded image data instead of URLs. This approach is more reliable and avoids potential network issues or access restrictions.
Note: Match the MIME type in the data URI to your actual image format (image/jpeg, image/png, image/webp, etc.) to avoid decoding issues.
First-Last Frame Mode
IMPORTANT: For best reliability, use base64-encoded images instead of URLs. Ensure the MIME type matches your actual image format.
With Audio Generation
Save Output
Custom Polling Parameters
CLI Parameters
--prompt, -p <text>: Optional - Text description of the video--image-url, -i <data>: Optional - Preferably base64-encoded image data (e.g., "data:image/png;base64,iVBORw..."). URLs are also supported but less recommended. For two images, use comma-separated values.--quality, -q <mode>: Optional - Output mode:speedorquality(default: speed)--with-audio: Optional - Generate AI audio effects (default: false)--size, -s <resolution>: Optional - Video resolution (e.g., "1920x1080")--fps <rate>: Optional - Frame rate: 30 or 60 (default: 30)--duration, -d <seconds>: Optional - Duration: 5 or 10 seconds (default: 5)--model, -m <model>: Optional - Model name to use--poll: Optional - Auto-poll until task completes--poll-interval <seconds>: Optional - Polling interval (default: 5)--max-polls <count>: Optional - Maximum poll attempts (default: 60)--output, -o <path>: Optional - Output file path (JSON format)
Supported Resolutions
1024x1024768x1344864x11521344x7681152x8641440x720720x14401920x1080(and other standard resolutions)
Checking Task Status Later
If you create a task without --poll, you can check its status later:
When to Use CLI vs SDK
Use CLI for:
- Quick video generation tests
- Simple one-off video creation
- Command-line automation scripts
- Testing different prompts and settings
Use SDK for:
- Batch video generation with custom logic
- Integration with web applications
- Custom task queue management
- Production applications with complex workflows
Video Generation Workflow
Video generation follows a two-step asynchronous pattern:
- Create Task: Submit video generation request and receive a task ID
- Poll Results: Query the task status until completion and retrieve the video URL
Basic Video Generation Implementation
Simple Text-to-Video Generation
Image-to-Video Generation
IMPORTANT: The image_url parameter accepts both base64-encoded image data and URLs, but base64 encoding is strongly recommended for better reliability and to avoid network-related issues.
Critical: Always match the MIME type in your base64 data URI to the actual image format to prevent decoding errors.
Image-to-Video with Start and End Frames
IMPORTANT: For keyframe mode, base64-encoded images are highly recommended over URLs to ensure consistent and reliable video generation. Always use the correct MIME type for each image.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/video-generation/SKILL.md
Popularity
- Repository stars
- 89
- Repository forks
- 21
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/chaojixinren/helloagents-go/video-generation)