Loading playground
Input
Additional Settings
Customize your input with more control.
Result
Idle
This model is no longer supported.
Customize your input with more control.
Customize your input with more control.
Hint: Drag and drop audio files from your computer, audio from web pages, paste from clipboard (Ctrl/Cmd+V), or provide a URL. Accepted file types: mp3, ogg, wav, m4a, aac
Hint: Drag and drop image files from your computer, images from web pages, paste from clipboard (Ctrl/Cmd+V), or provide a URL. Accepted file types: jpg, jpeg, png, webp, gif, avif, heic, heif


Customize your input with more control.
For 5s video your request will cost $1.40
For 5s video your request will cost $1.40
Transform audio and images into high-quality AI avatar videos with Hunyuan Avatar, an advanced audio-driven human animation model designed for creating dynamic, emotion-controllable, and multi-character dialogue videos.
HunyuanAvatar is a High-Fidelity Audio-Driven Human Animation model for Multiple Characters. The model excels at generating highly dynamic videos while preserving character consistency, achieving precise emotion alignment between characters and audio, and enabling multi-character audio-driven animation through innovative multimodal diffusion transformer (MM-DiT) architecture.
Create production-ready avatar videos with:
Character Consistency Preservation
Audio-Driven Animation
Multi-Character Support
First, install the fal.ai client library:
bash# Using npm npm install --save @fal-ai/client # Using pip pip install fal-client
Set up authentication:
javascriptimport { fal } from "@fal-ai/client"; fal.config({ credentials: "YOUR_FAL_KEY" });
Generate your first avatar video:
javascriptconst result = await fal.subscribe("fal-ai/hunyuan-avatar", { input: { audio_url: "https://your-audio-file.com/audio.wav", image_url: "https://your-image.com/person.jpg" } }); console.log(result.data.video.url);
javascript{ "audio_url": "https://v3.fal.media/files/koala/80RpP2FOhXZUV3NRKUWZu_2.WAV", "image_url": "https://fal.media/files/tiger/Y8EgvVqxORBCqWC1OlX3D_3c4c8bbe7f3941a2aea93e278ba14803.jpg", "text": "A professional speaking confidently", "num_frames": 129, "num_inference_steps": 30, "turbo_mode": true }
Hunyuan Avatar supports multiple input methods:
javascriptinput: { audio_url: "https://publicly-accessible-audio.com/file.wav", image_url: "https://publicly-accessible-image.com/person.jpg" }
javascriptconst audioFile = new File([audioData], "audio.wav", { type: "audio/wav" }); const imageFile = new File([imageData], "image.jpg", { type: "image/jpeg" }); const audioUrl = await fal.storage.upload(audioFile); const imageUrl = await fal.storage.upload(imageFile); const result = await fal.subscribe("fal-ai/hunyuan-avatar", { input: { audio_url: audioUrl, image_url: imageUrl } });
For production applications, use the queue API:
javascript// Submit request const { request_id } = await fal.queue.submit("fal-ai/hunyuan-avatar", { input: { audio_url: "https://your-audio-file.com/audio.wav", image_url: "https://your-image.com/person.jpg" }, webhookUrl: "https://optional.webhook.url/for/results" }); // Check status const status = await fal.queue.status("fal-ai/hunyuan-avatar", { requestId: request_id, logs: true }); // Get result when complete const result = await fal.queue.result("fal-ai/hunyuan-avatar", { requestId: request_id });
javascript{ "video": { "url": "https://v3.fal.media/files/monkey/3ODbdqHHQL3SvgRXEJXQ-_hunava_8333d613-d4e3-42ff-be36-1e97775621ba_audio.mp4", "content_type": "video/mp4", "file_name": "output_with_audio.mp4", "file_size": 1646349 } }
Audio Quality Optimization
Image Quality Optimization
Technical Implementation
Model Architecture:
Key Innovations:
HunyuanAvatar supports various downstream tasks:
Get help and learn more:
Related Hunyuan models available:
Start building with Hunyuan Avatar today to create dynamic, audio-driven avatar videos. Sign up for a free API key at fal.ai to begin experimenting with the service.