Infinitetalk API guide
Infinitetalk API: Create lip-synced videos from an image or video plus one speech track or a pair of speaker tracks.
Model overview
Create lip-synced videos from an image or video plus one speech track or a pair of speaker tracks.
API integration
| Documentation | Value |
|---|---|
| API invocation identifier | infinitetalk |
| Integration | Async task API |
Use this invocation identifier in API requests. Check your authorized model catalog for access. Follow the Quickstart for your first complete call.
Request parameters
Select a mode to highlight its required inputs. Mode selection does not change the API field names.
Studio presets describe the form setup, not guaranteed server defaults. Send preset values explicitly to reproduce them.
Required for Image, Video.
The positive prompt for the generation.
Required for Image.
Additional requirements depend on other values. See model rules.
The image for generating the output.
Required for Video.
Additional requirements depend on other values. See model rules.
The video for generating the output.
The audio for generating the output.
Additional requirements depend on other values. See model rules.
Audio for the person on the left; provide both left and right audio for dual-audio generation.
Media types: audio/*.
Additional requirements depend on other values. See model rules.
Audio for the person on the right; provide both left and right audio for dual-audio generation.
Media types: audio/*.
The order of the two audio sources in the output video, "meanwhile" means both audio sources will play at the same time, "left_right" means the left audio will play first then the right audio will play, "right_left" means the right audio will play first then the left audio will play.
Allowed values: "meanwhile", "left_right", "right_left".
Studio preset: "meanwhile".
Optional mask selecting the person to animate in the source image or video.
The resolution of the output video.
Allowed values: "480p", "720p".
Studio preset: "480p".
Standard quantity control field. The allowed range for this item is 1-4.
Repeats MuseSpark execution within one logical task. This is separate from a model-native output count.
Value: minimum 1; maximum 4.
Studio preset: 1.
The random seed to use for the generation. -1 means a random seed will be used.
Studio preset: -1.
No parameters match. Clear the search or reset the filters.
Model rules
Input modes
Select a mode by supplying its required public inputs. The mode identifier describes a documentation/form choice; do not send input_mode as a model parameter.
| Mode | Required inputs |
|---|---|
| Image | prompt, image |
| Video | prompt, video |
- When
imageis omitted, providevideo. - When
videois omitted, provideimage. - When
audiois omitted, provideleft_audio,right_audio. - When
left_audiois provided, provideright_audio. - When
right_audiois provided, provideleft_audio. - When
imageis provided, omitvideo. - When
videois provided, omitimage. - When
audiois provided, omitleft_audio; omitright_audio. - When
left_audiois provided, omitaudio; omitmask_image. - When
right_audiois provided, omitaudio; omitmask_image.
Model behavior
- Image: Image input with one audio track produces an audio-driven talking or singing video.
- Image: Image input with two audio tracks produces a multi-character lip-sync video.
- Video: Video input with one audio track produces an audio-driven talking or singing video.
- Video: Video input with two audio tracks produces a multi-character lip-sync video.
- Choose one visual input: image or video. Choose either audio for one speaker or both left_audio and right_audio for two speakers.
- For two speakers, order selects simultaneous playback or which speaker goes first. Keep mask_image for a single-audio workflow.
batch_size controls repeated MuseSpark executions. Output grouping, sequential image generation, and video shot count are separate concepts.
Request examples
Replace example media URLs and YOUR_... input identifiers with your own valid resources. Examples are checked against the exported item schema; media access and paid execution are separate runtime checks.
Set MUSESPARK_API_KEY and a stable MUSESPARK_REQUEST_ID before submitting. Preserve the request ID for retries of the same request and use a new ID for new work. Python examples use requests; JavaScript examples use Node.js 20 or later. The standalone Quickstart includes task polling and recovery.
Animate a portrait with one speaker
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "infinitetalk",
"parameters": {
"seed": -1,
"batch_size": 1,
"resolution": "480p",
"prompt": "A presenter speaks naturally with subtle head movement",
"image": "https://example.com/adult-presenter.jpg",
"audio": "https://example.com/speech.mp3"
}
}'Parameters used: seed · batch_size · resolution · prompt · image · audio.
Animate a portrait with two speakers
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "infinitetalk",
"parameters": {
"seed": -1,
"order": "left_right",
"batch_size": 1,
"resolution": "480p",
"prompt": "A presenter speaks naturally with subtle head movement",
"image": "https://example.com/two-adult-presenters.jpg",
"left_audio": "https://example.com/left-speaker.mp3",
"right_audio": "https://example.com/right-speaker.mp3"
}
}'Parameters used: seed · order · batch_size · resolution · prompt · image · left_audio · right_audio.
Animate a source video with one speaker
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "infinitetalk",
"parameters": {
"seed": -1,
"batch_size": 1,
"resolution": "480p",
"prompt": "A presenter speaks naturally with subtle head movement",
"video": "https://example.com/adult-presenter.mp4",
"audio": "https://example.com/speech.mp3"
}
}'Parameters used: seed · batch_size · resolution · prompt · video · audio.
Animate a source video with two speakers
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "infinitetalk",
"parameters": {
"seed": -1,
"order": "left_right",
"batch_size": 1,
"resolution": "480p",
"prompt": "A presenter speaks naturally with subtle head movement",
"video": "https://example.com/two-adult-presenters.mp4",
"left_audio": "https://example.com/left-speaker.mp3",
"right_audio": "https://example.com/right-speaker.mp3"
}
}'Parameters used: seed · order · batch_size · resolution · prompt · video · left_audio · right_audio.
Output
The intended result is a video animated to the supplied speech or singing audio.
Creation returns a task ID inside data. Poll that task until completion, then save data.result.output_urls and any data.result.batch_results. See the task lifecycle for terminal states, result retention, and errors.
Troubleshooting
A second speaker track is missing. Provide both left_audio and right_audio for two speakers. For one speaker, provide audio instead.
audio · left_audio · right_audio
Visual inputs conflict. Use image or video according to the selected input mode, and omit the other input.
For rejected inputs, check the field type, accepted values, and conditional requirements in Request parameters and Model rules. Correct the affected fields before submitting again.
If creation times out, preserve the request identity and any known task ID. Follow Errors, timeouts and retries before submitting again.
Related docs
The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.