1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const axios = require('axios');
const fs = require('fs');
const path = require('path');
async function toB64(imgPath) {
const data = fs.readFileSync(path.resolve(imgPath));
return Buffer.from(data).toString('base64');
}
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/infinite-talk";
const data = {
"prompt": "A professional woman speaks confidently, gesturing naturally while addressing the camera.",
"image": "toB64('https://segmind-resources.s3.amazonaws.com/input/infinite-talk-example-ip.png')",
"audio": "https://segmind-resources.s3.amazonaws.com/input/infinite-talk-example-audio.mp3",
"seed": 42424242,
"resolution": "480p",
"fps": 25,
"base64": false
};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();Describe the scene, emotion, or action guiding the full-body animation. Try specific phrases like 'A speaker gestures confidently while presenting to an audience.'
URL of the source image or video to animate with audio-driven full-body motion. Use high-resolution, well-lit images for better identity and background preservation.
URL of the audio file to synchronize with the animation. Use clear speech recordings; start with 5–15 second clips for faster iteration and testing.
Controls output randomness for reproducible results. Fix the seed for consistent animations; vary it to explore different motion styles from the same inputs.
Sets the output video resolution. Use 480p for quick drafts and iteration; choose 720p for final high-quality renders and presentations.
Allowed values:
Frames per second for the output video. Use 16–20 for fast test renders; set 25–30 for smooth, production-quality animations.
min : 16,
max : 30
Encodes the output video as a Base64 string instead of a file URL. Keep false for standard URL-based delivery; set true only if your integration requires raw encoded output.
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
InfiniteTalk is an advanced audio-driven video generation model by MeiGen-AI that goes far beyond traditional lip sync. While conventional dubbing tools only edit mouth movements, InfiniteTalk synthesizes holistic full-body animations — coordinating facial expressions, head movements, and body posture — all synchronized precisely with the input audio.
Built on a sparse-frame video dubbing architecture, InfiniteTalk takes a source image or video alongside an audio file and produces a new video where the subject moves and emotes naturally in sync with the audio. Crucially, it preserves the original identity, background, and camera movements from the source, making outputs appear authentic and production-ready.
The model's streaming generator design enables infinite-length video generation without temporal degradation, handling long sequences as smoothly as short clips. Released by MeiGen-AI in August 2025 with an accompanying arXiv paper (2508.14033), it outperforms prior methods MuseTalk and LatentSync on HDTF, CelebV-HQ, and EMTD benchmarks.
InfiniteTalk is ideal anywhere full-body expressiveness matters alongside audio:
The prompt field guides the model's animation style and emotional tone — even though the audio drives the sync, a descriptive prompt significantly improves output expressiveness.
How is InfiniteTalk different from MuseTalk or Wav2Lip? Those models only edit the mouth region. InfiniteTalk generates coordinated full-body motion — head turns, posture shifts, and facial expressions — all synchronized with audio, producing far more natural and immersive results.
What input formats does InfiniteTalk accept? Image inputs (PNG, JPG) or short video clips for the visual input, and standard audio files (MP3, WAV) for the audio track. All inputs are passed as URLs.
Can InfiniteTalk handle long audio clips? Yes. Its streaming architecture with temporal context frames enables infinite-length generation — there is no hard cap on audio/video duration.
How do I get consistent, reproducible results?
Set a fixed seed value. The same seed + same inputs will always produce the same output, which is useful for iterating on prompt or resolution changes.
What resolution should I use? Use 480p during development and testing for fast iteration. Switch to 576p or 720p for final production outputs where visual quality matters.
Does InfiniteTalk work from a single image? Yes — image-to-video mode animates a static photo into a full talking video driven entirely by the audio and prompt. This is ideal for virtual presenters and spokespersons.