← Back to Skills Marketplace
michaelwang11394

Avatar Video

by Michael Wang · GitHub ↗ · v2.23.0 · MIT-0
cross-platform ✓ Security Clean
428
Downloads
1
Stars
1
Active Installs
9
Versions
Install in OpenClaw
/install avatar-video
Description
Create AI avatar videos with precise control over avatars, voices, scripts, and backgrounds using HeyGen's v3 API (POST /v3/videos). Two modes: type="avatar"...
README (SKILL.md)

Avatar Video

Create AI avatar videos with full control over avatars, voices, scripts, and backgrounds using POST /v3/videos. Two creation modes via discriminated union on type:

  • "type": "avatar" + avatar_id — use a HeyGen avatar from the library
  • "type": "image" + image (AssetInput) — animate any photo via Avatar IV

Authentication

All requests require the X-Api-Key header. Set the HEYGEN_API_KEY environment variable.

curl -X GET "https://api.heygen.com/v3/avatars" \
  -H "X-Api-Key: $HEYGEN_API_KEY"

Tool Selection

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 /v3/videos/{video_id}
List account videos mcp__heygen__list_videos GET /v3/videos
Delete a video mcp__heygen__delete_video DELETE /v3/videos/{video_id}

Video generation (POST /v3/videos) and avatar/voice listing are done via direct API calls — see reference files below.

Default Workflow

  1. List avatar looksGET /v3/avatars/looks → pick a look, note its id (this is the avatar_id) and default_voice_id. See avatars.md
  2. List voices (if needed) — GET /v3/voices → pick a voice matching the avatar's gender/language. See voices.md
  3. Write the script — Structure scenes with one concept each. See scripts.md
  4. Generate the videoPOST /v3/videos with avatar_id, voice_id, script, and optional background per scene. See video-generation.md
  5. Poll for completionGET /v3/videos/{video_id} until status is completed. See video-status.md

Routing: This Skill vs Create Video

This skill = precise control (specific avatar, exact script, custom background). create-video = prompt-based ("make me a video about X", AI handles the rest).

Reference Files

Read these as needed — they contain endpoint details, request/response schemas, and code examples (curl, TypeScript, Python).

Core workflow:

Customization:

Advanced:

Best Practices

  1. Preview avatars before generating — Use GET /v3/avatars/looks and download preview_image_url so the user can see the avatar before committing
  2. Use avatar's default voice — Most avatars have a default_voice_id pre-matched for natural results
  3. Fallback: match gender manually — If no default voice, ensure avatar and voice genders match
  4. Use test mode for development — Set test: true to avoid consuming credits (output will be watermarked)
  5. Set generous timeouts — Video generation often takes 5-15 minutes, sometimes longer
  6. Validate inputs — Check avatar and voice IDs exist before generating
Usage Guidance
This skill appears to do what it says (control HeyGen avatar/video creation). Before installing/providing your HEYGEN_API_KEY: (1) Use a least-privileged API key or a key you can revoke if possible; (2) Be cautious about supplying local file paths or giving the agent permission to access sensitive files — the examples show reading and uploading local files, which would transmit those files to HeyGen; (3) Monitor credit/quota usage (test mode is recommended for development) to avoid unexpected charges; (4) If you enable MCP tools, confirm they are trusted and scoped appropriately; (5) Revoke the API key if you later suspect misuse. If you want a tighter risk profile, only provide the key when generating videos and avoid letting the agent access arbitrary filesystem locations or secrets.
Capability Analysis
Type: OpenClaw Skill Name: avatar-video Version: 2.23.0 The avatar-video skill bundle is a legitimate integration for the HeyGen v3 API, providing comprehensive documentation and instructions for an AI agent to generate AI avatar videos. The bundle includes detailed reference files (such as video-generation.md, voices.md, and assets.md) that cover API authentication, asset management, and video polling patterns. All code snippets and markdown instructions are strictly aligned with the stated purpose, and no indicators of malicious intent, data exfiltration, or harmful prompt injection were identified.
Capability Tags
crypto
Capability Assessment
Purpose & Capability
Name/description, declared env var (HEYGEN_API_KEY), and all referenced endpoints (api.heygen.com, upload.heygen.com, files.heygen.ai) match the stated purpose of creating HeyGen avatar videos. The primary credential requested is the expected API key; no unrelated services or binaries are required.
Instruction Scope
SKILL.md and reference files contain comprehensive examples (curl, TypeScript, Python) that read local files (fs.readFileSync, read streams) and upload them to HeyGen, download URLs and re-upload them, and poll video status. These behaviors are coherent with video/asset upload functionality, but they do mean the agent (or code you run from it) may read and transmit local files or fetch arbitrary HTTPS URLs — so avoid providing sensitive local file paths or secrets as assets.
Install Mechanism
No install spec or external downloads are present (instruction-only). This minimizes risk because nothing is written to disk by an installer or fetched from untrusted URLs as part of installation.
Credentials
Only HEYGEN_API_KEY is required and declared as the primary credential. No additional secrets, config paths, or unrelated environment variables are requested. Examples consistently use that key for HeyGen API calls.
Persistence & Privilege
always is false and the skill is user-invocable (normal). The skill does not request permanent platform privileges or modify other skills; autonomous invocation is allowed by default but is not combined here with any other high-risk factors.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install avatar-video
  3. After installation, invoke the skill by name or use /avatar-video
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.23.0
Auto-publish from commit 5a8486fef06c1fe3040b66b15652b2f16da6bff9
v2.22.0
Auto-publish from commit ce047e148b0ae2d2b598d79d38ee6712cb4a6a67
v2.21.0
Auto-publish from commit 75c3620f66d7a8df362ac4373abc9d6203728ef9
v2.20.0
Auto-publish from commit 5055da1e6d20c67c639d38d345101f10cb39650c
v2.19.0
Auto-publish from commit 7d4016b7db5ac6c920ce753755b052203864f6ec
v2.18.0
Auto-publish from commit 8864caec0d0c08616995584960c0b0f538c9f064
v2.17.0
Auto-publish from commit b97c4c9a4e42d0efcfabc9c19dd59b2999833bc6
v2.16.0
Auto-publish from commit 08a0b7df4d33ba5466973f4ee4ffcf00d2b3a68c
v2.15.0
Auto-publish from commit 3d843ec844607c358e068fc1b96079436cdb58fd
Metadata
Slug avatar-video
Version 2.23.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 9
Frequently Asked Questions

What is Avatar Video?

Create AI avatar videos with precise control over avatars, voices, scripts, and backgrounds using HeyGen's v3 API (POST /v3/videos). Two modes: type="avatar"... It is an AI Agent Skill for Claude Code / OpenClaw, with 428 downloads so far.

How do I install Avatar Video?

Run "/install avatar-video" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Avatar Video free?

Yes, Avatar Video is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Avatar Video support?

Avatar Video is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Avatar Video?

It is built and maintained by Michael Wang (@michaelwang11394); the current version is v2.23.0.

💬 Comments