AgentSkillsCN

heygen-avatars

HeyGen——AI 头像视频生成 API 的最佳实践。在制作 AI 头像视频、生成开口说话的视频,或将 HeyGen 与 Remotion 集成时使用。

SKILL.md
--- frontmatter
name: heygen-avatars
description: Best practices for HeyGen - AI avatar video creation API. Use when creating AI avatar videos, generating talking head videos, or integrating HeyGen with Remotion.
tags: [heygen, video, avatar, ai, api, text-to-video, remotion]
context: fork
agent: demo-producer
user-invocable: false
version: 1.0.0

HeyGen Avatars

AI avatar video creation using HeyGen API for talking head videos, avatar generation, and text-to-video workflows.

Quick Start

typescript
// Check remaining quota
const response = await fetch("https://api.heygen.com/v2/user/remaining_quota", {
  headers: { "X-Api-Key": process.env.HEYGEN_API_KEY! }
});

// Generate avatar video
const video = await fetch("https://api.heygen.com/v2/video/generate", {
  method: "POST",
  headers: {
    "X-Api-Key": process.env.HEYGEN_API_KEY!,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    video_inputs: [{
      character: { type: "avatar", avatar_id: "your-avatar-id" },
      voice: { type: "text", input_text: "Hello world!", voice_id: "your-voice-id" }
    }],
    dimension: { width: 1280, height: 720 }
  })
});

When to use

Use this skill whenever you are dealing with HeyGen API code to obtain domain-specific knowledge for creating AI avatar videos, managing avatars, handling video generation workflows, and integrating with HeyGen's services.

How to use

Read individual rule files for detailed explanations and code examples:

Foundation

Core Video Creation

Video Customization

Advanced Features

Integration

Related Skills

  • remotion-composer: Video composition for combining HeyGen avatars with other assets
  • elevenlabs-narration: Alternative TTS for narration without avatars
  • demo-producer: Full demo pipeline that can include avatar segments
  • video-pacing: Timing patterns for avatar-based content