InfiniteTalk
Animate images and videos with full-body motion perfectly synchronized to audio — beyond lip sync.
1import requests
2import json
3
4url = "https://api.segmind.com/v1/infinite-talk"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "prompt": "A professional woman speaks confidently, gesturing naturally while addressing the camera.",
12 "image": "https://segmind-resources.s3.amazonaws.com/input/infinite-talk-example-ip.png",
13 "audio": "https://segmind-resources.s3.amazonaws.com/input/infinite-talk-example-audio.mp3",
14 "seed": 42424242,
15 "resolution": "480p",
16 "fps": 25,
17 "base64": false
18}
19
20response = requests.post(url, headers=headers, json=data)
21
22if response.status_code == 200:
23 result = response.json()
24 print(json.dumps(result, indent=2))
25else:
26 print(f"Error: {response.status_code}")
27 print(response.text) 1import requests
2import json
3
4url = "https://api.segmind.com/v1/infinite-talk"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "prompt": "A professional woman speaks confidently, gesturing naturally while addressing the camera.",
12 "image": "https://segmind-resources.s3.amazonaws.com/input/infinite-talk-example-ip.png",
13 "audio": "https://segmind-resources.s3.amazonaws.com/input/infinite-talk-example-audio.mp3",
14 "seed": 42424242,
15 "resolution": "480p",
16 "fps": 25,
17 "base64": false
18}
19
20response = requests.post(url, headers=headers, json=data)
21
22if response.status_code == 200:
23 result = response.json()
24 print(json.dumps(result, indent=2))
25else:
26 print(f"Error: {response.status_code}")
27 print(response.text)API Endpoint
https://api.segmind.com/v1/infinite-talkParameters
audiorequiredstring (uri)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.
imagerequiredstring (uri)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.
promptrequiredstringDescribe the scene, emotion, or action guiding the full-body animation. Try specific phrases like 'A speaker gestures confidently while presenting to an audience.'
"A professional woman speaks confidently, gesturing naturally while addressing the camera."base64optionalbooleanEncodes 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.
falsefpsoptionalintegerFrames per second for the output video. Use 16–20 for fast test renders; set 25–30 for smooth, production-quality animations.
25Range: 16 - 30resolutionoptionalstringSets the output video resolution. Use 480p for quick drafts and iteration; choose 720p for final high-quality renders and presentations.
"480p""480p""576p""720p"seedoptionalintegerControls output randomness for reproducible results. Fix the seed for consistent animations; vary it to explore different motion styles from the same inputs.
42424242Response Type
Returns: Video
Common Error Codes
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
Bad Request
Invalid parameters or request format
Unauthorized
Missing or invalid API key
Forbidden
Insufficient permissions
Not Found
Model or endpoint not found
Insufficient Credits
Not enough credits to process request
Rate Limited
Too many requests
Server Error
Internal server error
Bad Gateway
Service temporarily unavailable
Timeout
Request timed out