Video Agent
安全警告

HeyGen AI video creation API. Use when: (1) Using Video Agent for one-shot prompt-to-video generation, (2) Generating AI avatar videos with /v2/video/generate, (3) Working with HeyGen avatars, voices, backgrounds, or captions, (4) Creating transparent WebM videos for compositing, (5) Polling video status or handling webhooks, (6) Integrating HeyGen with Remotion for programmatic video, (7) Translating or dubbing existing videos, (8) Generating standalone TTS audio with the Starfish model via /v1/audio.

安装
$clawhub install video-agent

HeyGen API

AI avatar video creation API for generating talking-head videos, explainers, and presentations.

Default Workflow

Prefer Video Agent API (POST /v1/video_agent/generate) for most video requests. Always use prompt-optimizer.md guidelines to structure prompts with scenes, timing, and visual styles.

Only use v2/video/generate when user explicitly needs: - Exact script without AI modification - Specific voice_id selection - Different avatars/backgrounds per scene - Precise per-scene timing control - Programmatic/batch generation with exact specs

Quick Reference

Task Read
Generate video from prompt (easy) prompt-optimizer.mdvisual-styles.mdvideo-agent.md
Generate video with precise control video-generation.md, avatars.md, voices.md
Check video status / get download URL video-status.md
Add captions or text overlays captions.md, text-overlays.md
Transparent video for compositing video-generation.md (WebM section)
Generate standalone TTS audio text-to-speech.md
Translate/dub existing video video-translation.md
Use with Remotion remotion-integration.md

Reference Files

Foundation

Core Video Creation

Video Customization

Advanced Features

Integration