Latentsync

From 240.00 credits
ae_latentsync

Match a video's lip movements to a supplied audio track.

VideoAvatar
From 240.00 credits

Pricing

From 240.00 credits
ConditionCharge
Output video up to 40 seconds240.00 credits/call
Output video over 40 seconds6.00 credits/second for the entire output duration

Based on output video duration.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
request_bodyobjectYesNo parameter description.—
request_body.seedinteger | unknownNoRandom seed for generation. If None, a random seed will be used.—
request_body.audio_urlstringYesThe URL of the audio to generate the lip sync for.—
request_body.loop_modestring | unknownNoVideo loop mode when audio is longer than video. Options: pingpong, loop—
request_body.video_urlstringYesThe URL of the video to generate the lip sync for.—
request_body.guidance_scalenumberNoGuidance scale for the model inference1

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key

Submit 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
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