avatar-video by heygen-com/skills
npx skills add https://github.com/heygen-com/skills --skill avatar-video通过 HeyGen 的 /v2/video/generate API,创建可完全控制数字人形象、语音、脚本、场景和背景的 AI 数字人视频。使用精确配置构建单场景或多场景视频。
所有请求都需要 X-Api-Key 请求头。请设置 HEYGEN_API_KEY 环境变量。
curl -X GET "https://api.heygen.com/v2/avatars" \
-H "X-Api-Key: $HEYGEN_API_KEY"
如果 HeyGen MCP 工具可用(mcp__heygen__*),请优先使用它们而非直接调用 HTTP API——它们会自动处理身份验证和请求格式化。
| 任务 | MCP 工具 | 备用方案(直接 API) |
|---|---|---|
| 检查视频状态 / 获取 URL | mcp__heygen__get_video |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
GET /v2/videos/{video_id} |
| 列出账户视频 | mcp__heygen__list_videos | GET /v2/videos |
| 删除视频 | mcp__heygen__delete_video | DELETE /v2/videos/{video_id} |
视频生成(POST /v2/video/generate)和数字人/语音列表功能需通过直接 API 调用完成——请参阅下面的参考文件。
GET /v2/avatars → 选择一个数字人,预览它,记下 avatar_id 和 default_voice_id。参见 avatars.mdGET /v2/voices → 选择与数字人性别/语言匹配的语音。参见 voices.mdPOST /v2/video/generate,为每个场景配置数字人、语音、脚本和背景。参见 video-generation.mdGET /v2/videos/{video_id} 直到状态变为 completed。参见 video-status.md| 任务 | 阅读 |
|---|---|
| 列出并预览数字人 | avatars.md |
| 列出并选择语音 | voices.md |
| 编写和构建脚本 | scripts.md |
| 生成视频(单场景或多场景) | video-generation.md |
| 添加自定义背景 | backgrounds.md |
| 添加字幕 / 字幕 | captions.md |
| 添加文本叠加层 | text-overlays.md |
| 创建透明 WebM 视频 | video-generation.md(WebM 部分) |
| 使用模板 | templates.md |
| 从照片创建数字人 | photo-avatars.md |
| 检查视频状态 / 下载 | video-status.md |
| 上传资源(图像、音频) | assets.md |
| 与 Remotion 结合使用 | remotion-integration.md |
| 设置 Webhook | webhooks.md |
此技能适用于精确控制——您可以选择数字人、编写确切的脚本、配置每个场景。
如果用户只是想描述一个视频创意,并让 AI 处理其余部分(脚本、数字人、视觉效果),请改用 create-video 技能。
| 用户表述 | 创建视频技能 | 此技能 |
|---|---|---|
| "为我制作一个关于 X 的视频" | ✓ | |
| "创建一个产品演示" | ✓ | |
| "我希望数字人 Y 准确说出 Z" | ✓ | |
| "具有不同背景的多场景视频" | ✓ | |
| "用于合成的透明 WebM 视频" | ✓ | |
| "为我的脚本使用这个特定的语音" | ✓ | |
| "批量生成具有精确规格的视频" | ✓ |
preview_image_url,以便用户在提交前能看到数字人形象default_voice_id 以获得自然效果test: true 以避免消耗积分(输出将带有水印)每周安装次数
290
代码仓库
GitHub 星标数
91
首次出现
10 天前
安全审计
安装于
claude-code276
codex44
github-copilot42
gemini-cli42
kimi-cli42
amp42
Create AI avatar videos with full control over avatars, voices, scripts, scenes, and backgrounds. Build single or multi-scene videos with exact configuration using HeyGen's /v2/video/generate API.
All requests require the X-Api-Key header. Set the HEYGEN_API_KEY environment variable.
curl -X GET "https://api.heygen.com/v2/avatars" \
-H "X-Api-Key: $HEYGEN_API_KEY"
If HeyGen MCP tools are available (mcp__heygen__*), prefer them over direct HTTP API calls — they handle authentication and request formatting automatically.
| Task | MCP Tool | Fallback (Direct API) |
|---|---|---|
| Check video status / get URL | mcp__heygen__get_video | GET /v2/videos/{video_id} |
| List account videos | mcp__heygen__list_videos | GET /v2/videos |
| Delete a video | mcp__heygen__delete_video | DELETE /v2/videos/{video_id} |
Video generation (POST /v2/video/generate) and avatar/voice listing are done via direct API calls — see reference files below.
GET /v2/avatars → pick an avatar, preview it, note avatar_id and default_voice_id. See avatars.mdGET /v2/voices → pick a voice matching the avatar's gender/language. See voices.mdPOST /v2/video/generate with avatar, voice, script, and background per scene. See video-generation.mdGET /v2/videos/{video_id} until status is . See | Task | Read |
|---|---|
| List and preview avatars | avatars.md |
| List and select voices | voices.md |
| Write and structure scripts | scripts.md |
| Generate video (single or multi-scene) | video-generation.md |
| Add custom backgrounds | backgrounds.md |
| Add captions / subtitles | captions.md |
| Add text overlays | text-overlays.md |
| Create transparent WebM video |
This skill is for precise control — you choose the avatar, write the exact script, configure each scene.
If the user just wants to describe a video idea and let AI handle the rest (script, avatar, visuals), use the create-video skill instead.
| User Says | Create Video Skill | This Skill |
|---|---|---|
| "Make me a video about X" | ✓ | |
| "Create a product demo" | ✓ | |
| "I want avatar Y to say exactly Z" | ✓ | |
| "Multi-scene video with different backgrounds" | ✓ | |
| "Transparent WebM for compositing" | ✓ | |
| "Use this specific voice for my script" | ✓ | |
| "Batch generate videos with exact specs" | ✓ |
preview_image_url so the user can see the avatar before committingdefault_voice_id pre-matched for natural resultstest: true to avoid consuming credits (output will be watermarked)Weekly Installs
290
Repository
GitHub Stars
91
First Seen
10 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code276
codex44
github-copilot42
gemini-cli42
kimi-cli42
amp42
AI 代码实施计划编写技能 | 自动化开发任务分解与 TDD 流程规划工具
43,400 周安装
ClawDirect-Dev:基于ATXP构建面向AI智能体的网页身份验证与支付集成方案
4,300 周安装
FastAPI Python开发指南:高效后端API构建与最佳实践
4,300 周安装
PRD转Issues工具:AI辅助将产品需求文档分解为GitHub可执行任务
4,500 周安装
Firebase Data Connect 教程:PostgreSQL 关系型数据库与 GraphQL API 开发指南
5,300 周安装
Instaclaw AI代理照片分享平台 | 使用ATXP生成并分享AI艺术作品
4,400 周安装
ClawDirect AI代理社交网络目录 | ATXP MCP工具快速接入指南
4,400 周安装
completed| video-generation.md (WebM section) |
| Use templates | templates.md |
| Create avatar from photo | photo-avatars.md |
| Check video status / download | video-status.md |
| Upload assets (images, audio) | assets.md |
| Use with Remotion | remotion-integration.md |
| Set up webhooks | webhooks.md |