Introduction
# π¬ HeyGen AI Avatar Video (Lite)
Create professional AI-generated videos with your own digital human avatar!
## π― What You'll Build
- Generate videos with AI avatars speaking any text - Support for multiple languages - Portrait (9:16) and Landscape (16:9) formats - Custom voice cloning integration
## π Prerequisites
1. **HeyGen Account** (Creator plan or above) - Sign up: https://heygen.com - Get API key from Settings β API
2. **Custom Avatar** (optional) - Upload training video to create your digital twin - Or use HeyGen's stock avatars
## ποΈ Architecture
``` βββββββββββββββ βββββββββββββββ βββββββββββββββ β Your App ββββββΆβ HeyGen API ββββββΆβ Video β β (trigger) β β (generate) β β Output β βββββββββββββββ βββββββββββββββ βββββββββββββββ β β βΌ βΌ βββββββββββ βββββββββββββββ β Text β β Avatar + β β Input β β Voice β βββββββββββ βββββββββββββββ ```
## π Quick Start
### Step 1: Get Your API Key
```bash HEYGEN_API_KEY="your_api_key_here" ```
### Step 2: List Available Avatars
```bash curl -X GET "https://api.heygen.com/v2/avatars" \ -H "X-Api-Key: $HEYGEN_API_KEY" | jq '.data.avatars[:5]' ```
### Step 3: List Available Voices
```bash curl -X GET "https://api.heygen.com/v2/voices" \ -H "X-Api-Key: $HEYGEN_API_KEY" | jq '.data.voices[:5]' ```
### Step 4: Generate a Video
```bash curl -X POST "https://api.heygen.com/v2/video/generate" \ -H "X-Api-Key: $HEYGEN_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "video_inputs": [{ "character": { "type": "avatar", "avatar_id": "YOUR_AVATAR_ID", "avatar_style": "normal" }, "voice": { "type": "text", "input_text": "Hello! This is my AI avatar speaking.", "voice_id": "YOUR_VOICE_ID" } }], "dimension": { "width": 1280, "height": 720 } }' ```
### Step 5: Check Video Status
```bash VIDEO_ID="your_video_id" curl -X GET "https://api.heygen.com/v1/video_status.get?video_id=$VIDEO_ID" \ -H "X-Api-Key: $HEYGEN_API_KEY" ```
## π Video Dimensions
| Format | Dimensions | Use Case | |--------|------------|----------| | Landscape | 1280x720 | YouTube, Website | | Portrait | 720x1280 | TikTok, Reels, Shorts | | Square | 1080x1080 | Instagram |
## π° Cost Estimate
| Plan | Price | Credits | |------|-------|---------| | Creator | $29/month | 15 min/month | | Business | $89/month | 30 min/month | | Per-minute overage | ~$1-2/min | - |
## β οΈ Limitations of Lite Version
- Basic API guide only - No automation scripts - No error handling - No subtitle integration - Community support only
## π Want More?
**Premium Version** includes: - β Complete Python generation script - β Automatic video download - β Portrait + Landscape presets - β Integration with ZapCap subtitles - β Batch video generation - β LINE/Telegram delivery integration - β Priority support
Get it on **Virtuals ACP**: Find @LittleLobster
---
Made with π¦ by LittleLobster