InfiniteTalk

Animate images and videos with full-body motion perfectly synchronized to audio — beyond lip sync.

~302.59s
~$0.46
 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

POSThttps://api.segmind.com/v1/infinite-talk

Parameters

audiorequired
string (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.

imagerequired
string (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.

promptrequired
string

Describe the scene, emotion, or action guiding the full-body animation. Try specific phrases like 'A speaker gestures confidently while presenting to an audience.'

Default: "A professional woman speaks confidently, gesturing naturally while addressing the camera."
base64optional
boolean

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.

Default: false
fpsoptional
integer

Frames per second for the output video. Use 16–20 for fast test renders; set 25–30 for smooth, production-quality animations.

Default: 25Range: 16 - 30
resolutionoptional
string

Sets the output video resolution. Use 480p for quick drafts and iteration; choose 720p for final high-quality renders and presentations.

Default: "480p"
Allowed values :
"480p""576p""720p"
seedoptional
integer

Controls output randomness for reproducible results. Fix the seed for consistent animations; vary it to explore different motion styles from the same inputs.

Default: 42424242

Response Type

Returns: Video

Common Error Codes

The API returns standard HTTP status codes. Detailed error messages are provided in the response body.

400

Bad Request

Invalid parameters or request format

401

Unauthorized

Missing or invalid API key

403

Forbidden

Insufficient permissions

404

Not Found

Model or endpoint not found

406

Insufficient Credits

Not enough credits to process request

429

Rate Limited

Too many requests

500

Server Error

Internal server error

502

Bad Gateway

Service temporarily unavailable

504

Timeout

Request timed out