avatar-video

Generate AI avatar videos with HeyGen's v2 API using custom avatars, voices, scripts, and backgrounds.

Updated Sep 1, 2026
One-click install
npx skills add https://github.com/zamansepeti43/c-rak-agent --skill avatar-video-zamansepeti43
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: avatar-video
Source: https://github.com/zamansepeti43/c-rak-agent/tree/main/video-engine/.agents/skills/avatar-video
Command: npx skills add https://github.com/zamansepeti43/c-rak-agent --skill avatar-video-zamansepeti43

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Producing presenter-style videos normally requires cameras, actors, and editing time. This Skill lets you generate AI avatar videos programmatically through HeyGen's v2 API, with exact control over which avatar speaks, what it says, and how each scene looks. ## Core Features & Use Cases - Precise Avatar and Voice Control: List and preview avatars, select voices, and use each avatar's default voice for natural lip sync. - Multi-Scene Video Generation: Build videos with different avatars, scripts, backgrounds, captions, and text overlays per scene via POST /v2/video/generate. - Photo Avatars and Avatar IV: Turn uploaded photos or AI-generated portraits into talking presenters, including transparent WebM output for compositing. - Use Case: Create a three-scene product demo where a chosen avatar reads your exact script against branded backgrounds, then poll the video status endpoint and download the finished MP4. ## Quick Start Ask the agent to list available HeyGen avatars, pick one with its default voice, and generate a 1080p video speaking your provided script.

Frequently Asked Questions about avatar-video

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

FAQPage Schema
How do I generate an AI avatar video with HeyGen API?

Call POST /v2/video/generate with a video_inputs array specifying the avatar_id, voice_id, input_text script, and background per scene. Then poll GET /v2/videos/{video_id} until the status is completed to get the download URL.

How do I choose the right voice for a HeyGen avatar?

Fetch the avatar's details via GET /v2/avatar/{avatar_id}/details and use its default_voice_id, which is pre-matched for natural lip sync. If no default exists, list voices with GET /v2/voices and match the voice gender to the avatar.

Can HeyGen create a talking avatar from my own photo?

Yes. Upload the image to upload.heygen.com/v1/asset to get an image_key, create a photo avatar group with POST /v2/photo_avatar/avatar_group/create, then use the returned id as talking_photo_id in video generation. Avatar IV offers higher quality via /v2/video/av4/generate.

Does HeyGen support transparent background videos for compositing?

Yes, the /v1/video.webm endpoint produces WebM videos with transparent backgrounds, supporting normal and closeUp avatar styles. These can be layered over other content in Remotion using OffthreadVideo with the transparent prop.

Why is my HeyGen video generation taking so long?

Video generation typically takes 5-15 minutes or longer depending on length and resolution. Poll the status endpoint with generous timeouts, and use test mode during development to avoid consuming credits on watermarked drafts.

How do I check my remaining HeyGen API credits?

Call GET /v2/user/remaining_quota with your X-Api-Key header to retrieve remaining_quota and used_quota. Check this before generating videos, since 1080p output consumes roughly 1.5x the base credit rate.