Infinite Talk
InfiniteTalk seamlessly synchronizes full-body animations with audio input for immersive and engaging video dubbing.
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 woman sits quietly, gazing at the sunset.",
12 "image": "https://segmind-resources.s3.amazonaws.com/input/601140c8-73e5-4490-8911-e6c7d3dc0e70-infinite_talk_ip.png",
13 "audio": "https://segmind-resources.s3.amazonaws.com/input/aa5166b3-a78d-460f-a23c-9d3c5a4deb11-ce0922b2-dd13-4946-bb70-9512f023a18b.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 woman sits quietly, gazing at the sunset.",
12 "image": "https://segmind-resources.s3.amazonaws.com/input/601140c8-73e5-4490-8911-e6c7d3dc0e70-infinite_talk_ip.png",
13 "audio": "https://segmind-resources.s3.amazonaws.com/input/aa5166b3-a78d-460f-a23c-9d3c5a4deb11-ce0922b2-dd13-4946-bb70-9512f023a18b.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-talk
Parameters
audio
requiredstring (uri)
URL to an audio file to synchronize with the model. Short clips work well for testing.
image
requiredstring (uri)
URL to an image input that will be used by the model. Choose detailed images for complex scenes.
prompt
requiredstring
The scene or action description guides the model. Try describing vivid emotions or actions for dynamic results.
base64
optionalboolean
Determines if output should be encoded in Base64. Use false for direct file outputs.
false
fps
optionalinteger
Frames per second of the output. Select higher FPS for smoother animations.
25
Range: 16 - 30resolution
optionalstring
Defines video output quality. Higher resolution for detailed visuals, use 480p for quick previews.
"480p"
"480p"
"576p"
"720p"
seed
optionalinteger
Random seed ensures reproducibility of output. Use different seeds for varied results.
42424242
Response 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