Latentsync
From 240.00 credits
ae_latentsync
Match a video's lip movements to a supplied audio track.
From 240.00 credits
Pricing
From 240.00 credits
| Condition | Charge |
|---|---|
| Output video up to 40 seconds | 240.00 credits/call |
| Output video over 40 seconds | 6.00 credits/second for the entire output duration |
Based on output video duration.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
request_body | object | Yes | No parameter description. | — |
request_body.seed | integer | unknown | No | Random seed for generation. If None, a random seed will be used. | — |
request_body.audio_url | string | Yes | The URL of the audio to generate the lip sync for. | — |
request_body.loop_mode | string | unknown | No | Video loop mode when audio is longer than video. Options: pingpong, loop | — |
request_body.video_url | string | Yes | The URL of the video to generate the lip sync for. | — |
request_body.guidance_scale | number | No | Guidance scale for the model inference | 1 |
Invocation example
Copy the request and explore its response example.
POST
/agent-api/v1/tool/executeX-Api-KeySubmit first, then query with the returned task_id until the task completes.
Request coderequest.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_latentsync' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"request_body": {
"audio_url": "https://agentearth.ai/fileserver/file/0901fc23-596f-4035-8210-b0aff77be382.wav",
"guidance_scale": 1,
"seed": 42,
"video_url": "https://agentearth.ai/fileserver/file/923c9d32-de8e-44a5-888a-194ecea123ab.mp4"
}
}
}'Response exampleresponse.json
{
"description": "task accepted; poll the result via query_tool with this task_id",
"query_tool": "ae_get_result",
"status": "created",
"task_id": "17886bdf-e632-47da-a307-15ed83fd23c3"
}Guides using this tool
See how this tool fits into real workflows
AI Lip-Sync Workflow: Swap Voice and Match MouthsUse an AI agent to swap the voiceover on an existing video and sync the mouths to it: drive dubbing and lip-sync in one natural-language chain for fast, scalable video localization.Digital Human Talking-Head Video: One Photo and One Voice ClipTurn a single portrait photo and a voice clip into a digital-human talking-head video with an AI agent. Learn how the TTS-to-avatar chain works, which tools to use, and how to batch new scripts.





