Make an influencer say a script
lip_syncUse this to make the influencer in one of the user's finished videos say a script, in a chosen voice, with their lips matched to the words. It replaces the video's sound. Pick voice_id with list_voices. The script must fit the video at a natural pace (about 2.5 words a second); for more words, extend the video first. Costs 1 credit per second of video, or 2 with tricky_shot (for side angles, a partly hidden face or fast movement); say the cost before calling. To have a new video speak, generate_video with sound and the line in the prompt is usually better; lip_sync is for a specific voice or a video that's already made. Returns at once with a generation_id for get_generation (usually 1 to 3 minutes).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"video_id": "<video_id>",
"script": "<script>",
"voice_id": "<voice_id>"
},
"name": "lip_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | The words to speak. | |
| video_id | Yes | A video_id from get_generation or list_media. | |
| voice_id | Yes | From list_voices. | |
| tricky_shot | No | For side angles, a partly hidden face or fast movement: 2 credits per second instead of 1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Present only on a refusal: the summary says why, and what the user can do. | |
| summary | Yes | ||
| video_id | No | ||
| error_code | No | Present only on a refusal. | |
| lip_sync_id | No | ||
| credits_left | No | ||
| generation_id | No | ||
| credits_charged | No | ||
| expected_seconds | No |