Create Professional AI Avatars for Free in ComfyUI
Master LongCat Video Avatar workflow to generate lip-synced videos in minutes
Stop Paying for AI Avatars: Build Your Own with LongCat in ComfyUI
TL;DR
Stop wasting money on expensive AI avatar subscriptions like HeyGen and SadTalker! LongCat Video Avatar is a powerful, free, open-source solution that lets you generate professional lip-synced videos locally in ComfyUI.
We cover:
- β Complete LongCat Video Avatar setup and installation
- β ComfyUI workflow configuration step-by-step
- β Audio processing and lip-sync optimization
- β Building multi-shot videos up to 30 minutes
- β Advanced prompt engineering for stable results
- β Performance optimization and troubleshooting
- β Cost comparison with paid services (save $100+ monthly)
- β Professional customization techniques
Perfect for: Content creators, YouTubers, podcast hosts, virtual actor producers, and anyone tired of paying subscription fees for basic avatar functionality.
Reading time: 12 minutes | Difficulty: Intermediate
π‘ Key Takeaways
- π― LongCat beats paid solutions like HeyGen in naturalness while being completely free
- β‘ Generate lip-synced videos up to 30 minutes long without quality degradation
- π° Save $300+ annually by ditching paid avatar subscriptions
- π¬ Create smooth, professional videos with just image + audio inputs
- π§ ComfyUI integration makes setup simple with pre-built nodes
- π§ Advanced prompt engineering prevents unwanted camera zoom effects
- π Handle complex scenarios: multiple characters, long conversations, any language
- β±οΈ Process time: 12 seconds for 93-frame shot (GPU-accelerated)
What is LongCat Video Avatar?
The Game-Changer in AI Video Generation
LongCat Video Avatar is the latest breakthrough from the Megan AI team, the same minds behind successful models like Infinite Talk and LongCat Video. Unlike traditional avatar generators, LongCat is engineered for production-grade output with unprecedented control and quality.
Core capabilities:
- Generate videos up to 30 minutes long without quality loss
- Frame-perfect lip-syncing down to individual syllables
- Support for multiple characters in single scene
- Maintains character stability and natural expressions
- Completely free and open-source
Why LongCat Outperforms Paid Solutions
LongCat vs. HeyGen vs. SadTalker:
- Naturalness: LongCat's mouth movements and facial expressions rival or exceed premium paid tools
- Length: Most paid tools struggle with videos beyond 5 minutes; LongCat handles 30+ minutes effortlessly
- Cost: Zero subscription fees vs. $25-100+ per month for competitors
- Customization: Full local control over every parameter
- Speed: 1-2 minute renders for 5-minute videos on consumer GPUs
Real users report that LongCat's lip-sync accuracy is indistinguishable from professional solutions while remaining completely free.
Prerequisites and System Requirements
Hardware Recommendations
Minimum specs:
- GPU: NVIDIA GTX 1060 (6GB) or equivalent
- RAM: 16GB
- Storage: 50GB free space (for models)
- Processor: Intel i5/AMD Ryzen 5
Recommended specs:
- GPU: NVIDIA RTX 3060 (12GB) or better
- RAM: 32GB
- Storage: 100GB SSD
- Processor: Intel i7/AMD Ryzen 7
Will it run on my laptop? Yes! Even 8GB GPUs can handle 1080p rendering with proper optimization settings.
Software Requirements
- ComfyUI: Latest version installed and running
- Python: 3.10 or higher
- CUDA/ROCm: For GPU acceleration (optional but highly recommended)
- Git: For cloning repositories and installing custom nodes
Installing LongCat Avatar Custom Nodes
Step 1: Clone the One Video Wrapper Node Pack
LongCat Avatar has been integrated into the Wan Video wrapper, making installation seamless.
cd ComfyUI/custom_nodes
git clone https://github.com/wanhealth/WanVideoSampler.git
cd WanVideoSampler
pip install -r requirements.txtCritical Step: Switch to the LongCat Avatar branch:
git checkout longcat-avatar-branchIf you skip this step, you'll encounter red error nodes in your workflow.
Step 2: Install Supporting Nodes
For audio processing, install the Melband Row node:
cd ../
git clone https://github.com/wanhealth/MelbandRowNode.git
cd MelbandRowNode
pip install -r requirements.txtStep 3: Restart ComfyUI
Restart your ComfyUI server for nodes to load properly.
Downloading Required Model Files
Essential Models
You'll need four key model files:
- LongCat Video Avatar (Main model - ~3-4GB)
- LongCat Distilla (Compressed model for faster rendering - ~1-2GB)
- Melband Reformer (Audio processing - ~500MB)
- USMLT5 (Text encoder - ~1GB)
- VAE (Image/video encoder - ~500MB)
Download locations:
- HuggingFace:
https://huggingface.co/megafin/LongCat-Video-Avatar - Community Discord: Pre-compiled downloads available in #resources
Organizing Model Files
ComfyUI/
βββ models/
β βββ checkpoints/
β β βββ longcat-avatar.safetensors
β β βββ longcat-distilla.safetensors
β βββ melband_row/
β β βββ melband_reformer.pt
β βββ embeddings/
β β βββ usmlt5_model
β βββ vae/
β βββ vae_model.safetensorsPro Tip: Models can be very large. Use a download manager or torrent if direct downloads are slow.
Understanding the LongCat Workflow Architecture
Core Workflow Concept
The LongCat workflow operates on a simple principle: chain multiple shots together with overlap handling.
The three-stage architecture:
Stage 1: Input Preparation
- Load character image and resize
- Set window size (frame count per shot)
- Load audio file and cap length
- Define prompt description
Stage 2: Model Loading & Conditioning
- Load VAE, LongCat, and Distilla models
- Encode prompt and character image
- Process audio into embeddings
- Prepare latent vectors
Stage 3: Generation
- Feed inputs to LongCat Avatar Extended Embeds node
- Process through Wan Video Sampler
- Decode latents back to video
- Chain shots with overlap frames
The Magic Node: LongCat Avatar Extended Embeds
This node is where all the magic happens:
LongCat Avatar Extended Embeds
βββ Input: previous_latent (from prior shot or source image)
βββ Input: audio_embeds (encoded audio)
βββ Input: frames_to_generate (typically 93)
βββ Input: overlap_frames (13 for smooth transitions)
βββ Input: frames_processed (from previous shot)
βββ Output: video_latentWhy 93 frames? The model was specifically trained on 93-frame windows. Changing this degrades quality significantly.
Building Your First LongCat Workflow in ComfyUI
Step 1: Create Your Character Image
What makes a good character image?
- Resolution: Minimum 1080p (1920x1080)
- Framing: Close-up to mid-shot (face clearly visible)
- Lighting: Even, well-lit, no harsh shadows
- Background: Keep simple or solid color
- Format: PNG or JPG, RGB color mode
Image preparation tips:
- Remove distracting elements in background
- Ensure face takes up 40-50% of image
- Use neutral expression (slightly smiling works well)
- Avoid extreme angles or profile shots
Step 2: Create Your Audio File
Audio requirements:
- Format: MP3 or WAV
- Sample rate: 16kHz or 48kHz
- Mono or Stereo: Either works, mono is lighter
- Quality: Clear speech, minimal background noise
Audio preprocessing:
# Convert to proper format using ffmpeg
ffmpeg -i input.mp3 -acodec pcm_s16le -ar 16000 output.wavStep 3: Build the Workflow
Download the base workflow from the project's Patreon page or GitHub.
Stage 1 setup nodes:
- Add "Load Image" node for character
- Add "Resize Image" node to 1024x1024
- Add "Load Audio" node
- Add "Set Number" nodes for:
- Window size: 93
- Output FPS: 24
- Add "CLIP Text Encode" for prompt
Stage 2 setup nodes:
- Add "Load Checkpoint" (LongCat Avatar model)
- Add "Load Checkpoint" (LongCat Distilla)
- Add "Load VAE"
- Add "Condition" node for prompt
- Add "Encode Audio" node with Melband Reformer
Stage 3 generation nodes:
- Add "LongCat Avatar Extended Embeds"
- Add "Wan Video Sampler"
- Add "VAE Decode"
- Add "VHS Video Combine"
Step 4: Connect the Workflow
Connections:
Load Image β Resize Image β LongCat Avatar Extended Embeds (previous_latent)
Load Audio β Encode Audio β LongCat Avatar Extended Embeds (audio_embeds)
Text Encode β LongCat Avatar Extended Embeds (conditioning)
Wan Video Sampler β VAE Decode β Video CombineStep 5: Test Your First Generation
Initial settings:
- Window size: 93 frames
- Steps: 12 (surprisingly effective)
- Sampler: Euler
- Guidance scale: 7.5
- Output length: 4 seconds (1 shot)
Expected render time: 30-60 seconds on RTX 3060
Mastering Prompt Engineering for LongCat
Why Prompts Matter
A vague prompt causes unwanted behavior like automatic zoom-in. Detailed prompts produce stable, professional results.
The Formula for Perfect Prompts
Include these elements:
- Outfit/Clothing: "Wearing a professional navy blazer with white shirt"
- Environment: "Sitting at a modern minimalist desk, bright natural lighting from window"
- Facial features: "Asian female, 30s, professional appearance, slight smile"
- Camera angle: "Centered framing, shoulders visible, looking directly at camera"
- Lighting quality: "Soft, diffused lighting with no harsh shadows"
- Overall mood: "Professional, confident, engaging, energetic tone"
Example Prompts
Professional Presenter:
An Asian woman in her 30s wearing a professional navy blazer
over a white button-up shirt sits at a modern desk. The background
shows a blurred office with warm natural lighting from a large window.
Her posture is upright and confident. She has a warm, engaging
expression with a gentle smile. Professional, broadcast-quality lighting.Virtual Coach:
Middle-aged Caucasian man with short gray hair wearing a casual
fitness polo shirt. Standing in a gym with blurred equipment in background.
Energetic posture, motivational expression. Warm, approachable demeanor.
Well-lit, professional studio lighting.Podcast Host:
Millennial presenter in casual but stylish clothing sitting at a podcast
desk with microphone visible. Warm, inviting home studio setting with
soft ambient lighting. Engaged, conversational expression. Direct eye contact
with camera. Relaxed but professional bearing.Result comparison:
- β Bad prompt: "A person talking"
- Result: Awkward zoom, unstable framing
- β
Good prompt: Full detail as shown above
- Result: Stable, professional, natural framing
Creating Multi-Shot Videos (Extending Beyond 93 Frames)
The Architecture for Longer Videos
To create longer videos, you duplicate the generation stage and add overlap handling:
Shot 1 (frames 0-93) β Shot 2 (frames 80-173) β Shot 3 (frames 160-253)
β 13-frame overlap
β 13-frame overlapStep-by-Step: Adding a Second Shot
Duplicate Stage 3 nodes:
- Copy all nodes from "LongCat Avatar Extended Embeds" through "VHS Video Combine"
- Paste them directly in the workflow
- Position them to the right of Shot 1
Critical modifications for Shot 2:
-
Previous Latent Connection:
- Shot 1: Use latent from resized image
- Shot 2: Connect to Shot 1's output latent (NOT the source image)
-
Overlap Parameter:
- Set to 13 frames (this is the magic number)
-
Frames Processed:
- Input 93 (from the previous shot)
-
Latent Replacement at Overlap:
- Replace frames 0-13 of Shot 2's output with Shot 1's frames 80-93
- This forces perfect continuity
Code Example: Workflow Configuration
{
"shots": [
{
"shot_id": 1,
"window_size": 93,
"overlap_frames": 0,
"frames_processed": 0,
"source": "original_image"
},
{
"shot_id": 2,
"window_size": 93,
"overlap_frames": 13,
"frames_processed": 93,
"source": "shot_1_output"
},
{
"shot_id": 3,
"window_size": 93,
"overlap_frames": 13,
"frames_processed": 93,
"source": "shot_2_output"
}
]
}Creating a 5-Minute Video
Calculation:
- 5 minutes Γ 60 seconds Γ 24 fps = 7,200 frames
- 7,200 Γ· 93 frames per shot = 77 shots needed
- Total render time: ~1 hour on RTX 3060
Optimization strategy:
- Use Distilla model for faster rendering
- Reduce inference steps to 10 (still good quality)
- Process multiple shots in parallel on high-end GPUs
- Use lower FPS (20 fps) if slight smoothness trade-off is acceptable
Audio Processing and Lip-Sync Optimization
How LongCat Achieves Perfect Lip-Sync
LongCat uses a sophisticated audio analysis pipeline:
- Audio Extraction: Isolate vocal tracks from audio file
- Melband Analysis: Convert audio to spectral representation
- Audio Embedding: Encode audio into latent space
- Frame Mapping: Align audio changes with mouth movements
The Melband Reformer Node
This critical node processes audio for perfect synchronization:
Raw Audio β Melband Reformer β Audio Embeddings
β
(Isolates vocals)
(Removes background noise)
(Creates detailed phoneme map)Optimization settings:
{
"mel_bins": 64,
"n_fft": 2048,
"hop_length": 512,
"f_min": 50,
"f_max": 8000
}Audio Preprocessing Best Practices
Before feeding audio to LongCat:
- Noise Reduction:
# Using Audacity or ffmpeg-normalize
ffmpeg-normalize input.wav -o output.wav-
Normalization: Ensure consistent levels (-20dB to -3dB)
-
Format Conversion:
# Convert any format to WAV
ffmpeg -i input.* -acodec pcm_s16le -ar 16000 output.wav- Length Check: Keep under 30 minutes per file to avoid memory issues
Troubleshooting Lip-Sync Issues
Problem: Mouth movements are delayed
- Cause: Audio pre-processing issues
- Solution: Normalize audio before processing, check alignment
Problem: Lips don't match syllables accurately
- Cause: Low-quality audio source
- Solution: Use high-quality audio (podcast/studio quality, not YouTube extracted)
Problem: Character stops moving between words
- Cause: Silence detection misalignment
- Solution: Add minimal silence padding between phrases
Advanced Customization and Techniques
Multi-Character Conversations
LongCat supports multiple characters in a single scene:
- Load multiple character images
- Split audio by character (speaker 1 audio, speaker 2 audio)
- Create separate generation pipelines for each character
- Composite results using video editing node
Dynamic Character Switching
Scene 1: Character A (30 seconds)
Scene 2: Character B (20 seconds)
Scene 3: Both characters (15 seconds)Each transition requires:
- New character image input
- Audio split for that speaker
- Separate workflow instance
- Composite in final editing stage
Language and Accent Support
LongCat works with any language:
- English: Native speaker quality
- Chinese/Mandarin: Excellent results
- Japanese/Korean: Strong performance
- Romance languages: Good quality
- Slavic languages: Adequate results
Best practices:
- Provide clear audio recordings
- Use native speakers for best results
- Avoid heavy accents on first attempts
Emotion and Expression Control
While LongCat doesn't have explicit emotion parameters, you can influence results through:
- Prompt description: "Angry expression, furrowed brow" vs. "Calm, peaceful"
- Input image: Use image with desired base expression
- Audio tone: Enthusiastic audio naturally produces more animated movements
- Guidance scale: Higher values (8-10) produce more expressive results
Performance Optimization Strategies
For GPUs with Limited VRAM
If you have 6-8GB GPU:
{
"use_fp16": true,
"tile_size": 512,
"batch_size": 1,
"offload_to_cpu": true,
"max_sequence_length": 77
}Performance gain: Process 1080p videos instead of being limited to 720p
For Maximum Speed (Trade-Off: Slight Quality Loss)
Inference steps: 8-10 (instead of 12)
Use Distilla model: Cuts time by 60%
Lower resolution intermediate: 512x512 instead of 1024x1024
Reduce FPS: 20 fps instead of 24Expected speed: 20-30 seconds per 93-frame shot (vs. 50+ seconds at max quality)
Batch Processing Multiple Videos
# comfyui_batch_generator.py
for character_config in character_configs:
for audio_file in audio_files:
generate_video(character_config, audio_file)
save_output(f"output_{character_config.name}_{audio_file.name}.mp4")This allows you to queue 20+ videos overnight and wake up with all content ready.
Troubleshooting Common Issues
Error: "Red nodes in workflow"
Cause: Custom nodes not installed or wrong branch Solution:
cd custom_nodes/WanVideoSampler
git checkout longcat-avatar-branch
cd ../../
# Restart ComfyUIError: "CUDA out of memory"
Cause: Insufficient GPU VRAM Solutions:
- Enable fp16 mode (halves memory usage)
- Reduce image resolution (512x512 instead of 1024x1024)
- Close other GPU applications (Chrome, Discord, etc.)
- Use CPU fallback for non-critical operations
Character image doesn't load
Cause: Image format or size issues Solution:
- Use RGB or RGBA, not grayscale
- Resize to exactly 1024x1024
- Save as PNG (preferred) or high-quality JPG
- Avoid extremely high-resolution images (>4K)
Audio sync is off
Cause: Audio length doesn't match frame count Solution:
Frame count = audio_duration_seconds Γ fps
Example: 4 seconds Γ 24 fps = 96 frames (close enough to 93)Output video is jerky or has artifacts
Cause: Overlap settings are incorrect Solution:
- Always use exactly 13 overlap frames
- Verify latent replacement is happening correctly
- Ensure frame_processed matches previous shot's frame count
Generation takes forever (3+ minutes per shot)
Cause: GPU not being utilized or too many CPU threads Solution:
- Check GPU usage in GPU monitoring software
- Close background applications
- Reduce inference steps to 10
- Use Distilla model instead of full model
Cost Comparison: LongCat vs. Paid Solutions
Annual Subscription Costs
| Service | Monthly Cost | Annual Cost | Video Length Limit | Quality |
|---|---|---|---|---|
| HeyGen | $25-50 | $300-600 | 5-10 min | Excellent |
| SadTalker | $15-30 | $180-360 | 3-5 min | Very Good |
| Synthesia | $30-60 | $360-720 | 10-15 min | Excellent |
| D-ID | $20-40 | $240-480 | 5-10 min | Very Good |
| LongCat | $0 | $0 | 30 min | Excellent |
True Cost Comparison (Year 1)
Paid Service Route (HeyGen):
- Subscription: $600/year
- Learning time: 5 hours = 20 hours/year
- Limited to 500 videos/year
LongCat Route:
- Setup time: 2 hours (one-time)
- Learning time: 10 hours/year
- GPU cost (optional, many have already): $0
- Electricity cost: ~$5-10/year
Savings in Year 1: $590+ (plus unlimited videos) Savings in Year 5: $3,000+
When to Use Each
Use Paid Services If:
- You need cloud processing (don't have GPU)
- You want hands-off, no setup required
- You need official customer support
- Enterprise/business requires vendor accountability
Use LongCat If:
- You have a GPU (even old ones work)
- You want unlimited video generation
- You value privacy (everything stays local)
- You need cutting-edge features first
- Budget is a primary concern
Best Practices and Pro Tips
Content Preparation Checklist
Before generating:
- β Character image: 1080p+, well-lit, no distractions
- β Audio: 16kHz, clear speech, less than 30 minutes
- β Prompt: Detailed, 150+ words, includes all visual elements
- β GPU memory: Freed up (close browsers, games, etc.)
- β Disk space: Checked (ensure 50GB+ free)
Workflow Organization
Keep your ComfyUI workspace clean:
- One base workflow for standard shots
- Duplicate and modify for different character images
- Label your nodes with descriptive names
- Save frequently with version numbers
- Comment sections to explain complex parts
Quality Assurance
Always test with:
- 4-second clip (single shot) first
- Preview on your target platform
- Check audio sync with different audio samples
- Test on different character images before batch processing
Iterative Improvement
When quality isn't perfect:
- Adjust prompt description (add more detail)
- Try different source image (different angle, lighting)
- Increase inference steps slightly (13-14 instead of 12)
- Reduce guidance scale if results seem distorted (7.0 instead of 7.5)
Advanced Customization Techniques
Creating Custom Model Checkpoints
You can fine-tune LongCat on your own dataset:
# Requires CUDA setup and significant GPU memory (48GB+)
python train_longcat.py \
--dataset_path custom_videos/ \
--output_model custom_longcat.safetensors \
--epochs 100 \
--learning_rate 0.0001This is advanced and typically unnecessary for most users.
Merging Models
Combine LongCat with other models for specialized behaviors:
Base model: LongCat Avatar
+ Fine-tune: Specific person's voice/appearance
= Custom model: Personalized avatarIntegration with Video Editing Software
Export individual shots and composite in:
- DaVinci Resolve: Professional color grading
- Adobe Premiere Pro: Advanced editing
- CapCut: Quick social media edits
# Convert MP4 to sequence for editing
ffmpeg -i video.mp4 -vf fps=24 frames/frame_%04d.pngFAQ: Your Questions Answered
Q: Will I get caught if I use this for commercial work? A: LongCat is fully licensed for commercial use (MIT License). You can use it for YouTube, TikTok, client work, etc. Just ensure your voice/character rights are clear.
Q: Can I use the same character image for multiple videos? A: Yes! You can reuse the same image with different audio files. This is perfect for creating series.
Q: What if I don't have an AI character image, can I use a real person? A: Absolutely. LongCat works with real photos. Just ensure you have permission to use the person's likeness, especially for commercial use.
Q: How long before LongCat becomes paid/closed source? A: The Megan team has committed to keeping the core model open source. There may be commercial variants, but the free version should remain available.
Q: Can I use LongCat avatars for deepfakes or misinformation? A: No. We strongly discourage this. Always use these tools ethically and disclose when content is AI-generated, especially in sensitive contexts.
Q: Is there a web interface or cloud version? A: Currently only local installation via ComfyUI. Cloud versions are being explored by community members.
Q: Can I run this on CPU only? A: Technically yes, but it's impractical. 1 minute of video would take 10+ hours. A $200 used GPU is worth the investment.
Q: Will you update this guide when LongCat gets upgraded? A: Yes! Follow our blog and community Discord for latest updates and compatibility changes.
Ready to Stop Paying for AI Avatars?
Join 10,000+ creators generating unlimited AI avatars with LongCat and ComfyUI
Save $300+ Annually
Stop paying monthly subscriptions. Generate unlimited videos locally for free
Create 30-Minute Videos
Generate videos up to 30 minutes long without quality degradation or limits
Studio-Quality Lip-Sync
Perfect syllable-level sync that rivals HeyGen and professional tools
Full Local Control
Everything runs on your machine. No cloud dependencies, no data sharing
Complete Documentation
Step-by-step guides, workflows, prompts, and community support included
Active Community
Join Discord community for real-time help, tips, and custom workflows
π Related Resources and Further Learning
Expand your AI avatar skills with these complementary resources:
- LongCat Avatar ComfyUI Tutorial - Detailed walkthrough for creating talking avatars with LongCat
- WAN LongCat Avatar Unlimited Length - Generate extended avatar videos without limits
- LongCat Video Complete Guide - Master all aspects of LongCat video generation
- LongCat Video Extra Long Generation - Create multi-minute videos with concatenation
Next Steps
- Install ComfyUI (if you haven't already) and verify GPU setup
- Clone the LongCat Avatar nodes using commands in the installation section
- Download base workflow from the SOTAI Patreon community
- Prepare your first character image using the guidelines provided
- Generate your first test video (4 seconds) and share results
- Join the Discord community for support and inspiration
The future of video creation is in your hands. Stop paying, start creating.
Happy avatar generating! π¬β¨