Video Generation

Generates videos from prompts/images via asynchronous tasks and returns a URL.

26|15|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/AnswerZhao/agent-skills --skill video-generation-answerzhao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Video Generation
Source: https://github.com/AnswerZhao/agent-skills/tree/main/glm-skills/video-generation
Command: npx skills add https://github.com/AnswerZhao/agent-skills --skill video-generation-answerzhao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires z-ai-web-dev-sdk, and includes scripts (resource) components.

What problem does it solve?

This Skill enables developers to generate AI-powered videos from text prompts or images by orchestrating asynchronous tasks.

Core Features & Use Cases

  • Asynchronous Task Processing: Create video generation tasks and poll for completion, enabling scalable media generation.
  • Text-to-Video and Image-to-Video: Generate videos from text prompts or start from images with optional transitions.
  • Use Case Examples: Build product demos, social media clips, tutorials, or marketing visuals by automatically producing video content based on descriptions.

Quick Start

Use the Video Generation Skill to produce video content from prompts or images, by creating a task with zai.video.generations.create(...) and polling results with zai.async.result.query(...). Upon success, retrieve the video URL from result.video_result[0].url or alternative fields.

Frequently Asked Questions about Video Generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate AI videos from text prompts asynchronously?

You can generate AI videos asynchronously by creating a task with zai.video.generations.create, passing parameters like prompt, size, fps, and duration, then polling zai.async.result.query until the final video URL is returned.

Can I generate a video from an existing image?

Yes, you can generate a video from an existing image by providing the image_url parameter in your video generation task, allowing you to create image-to-video content with optional transitions for product demos or marketing clips.

Do I need the z-ai-web-dev-sdk to use this video generation Skill?

Yes, the z-ai-web-dev-sdk is required on your backend to handle asynchronous video generation tasks. It provides the necessary methods to create tasks and query results until the final video URL is ready.

What parameters are supported for AI video generation?

Supported parameters include prompt, image_url, size, fps, duration, and with_audio. You use these to customize AI video generation tasks for marketing clips, educational content, or creative media output.

How does asynchronous task processing work for AI video generation?

Asynchronous processing creates a video generation task returning a task ID, then you poll for results until completion. This returns a final video URL and enables scalable media generation across apps without blocking your backend.

What use cases are best suited for AI-generated videos?

Best use cases include building product demos, social media marketing clips, tutorials, and educational content. You automatically produce video output by submitting text prompts or images to generate creative media for apps and services.