Infinite Talk

InfiniteTalk seamlessly synchronizes full-body animations with audio input for immersive and engaging video dubbing.

~156.78s
~$0.546
 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

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

Parameters

audiorequired
string (uri)

URL to an audio file to synchronize with the model. Short clips work well for testing.

imagerequired
string (uri)

URL to an image input that will be used by the model. Choose detailed images for complex scenes.

promptrequired
string

The scene or action description guides the model. Try describing vivid emotions or actions for dynamic results.

base64optional
boolean

Determines if output should be encoded in Base64. Use false for direct file outputs.

Default: false
fpsoptional
integer

Frames per second of the output. Select higher FPS for smoother animations.

Default: 25Range: 16 - 30
resolutionoptional
string

Defines video output quality. Higher resolution for detailed visuals, use 480p for quick previews.

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

Random seed ensures reproducibility of output. Use different seeds for varied results.

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