Skip to main content
Glama

Make a person in a picture talk

lip_sync

Make a person say a line, their mouth on the sound's words. mode still: a new video of the person in a picture (an image asset, or one frame of a video with atSeconds), in that picture's place and light, talking with natural head moves. mode dub: the person's own footage (a video asset, startSeconds to endSeconds) keeps everything as it was filmed and only the mouth changes, to dub new words or another language over what they said. The sound is a sound or video asset, or a part of one. With generate_speech's voiceAssetId, the person says new words in their own voice: pick a clean stretch of them speaking with read_transcript, make the line with generate_speech, then lip_sync them with it; edit_video can then change the new clip's world. The new video has the line's sound in it: place it as a video clip and do not place the sound again. A still is as long as the sound, at least 5 seconds, up to 60: a shorter sound is padded with silence to 5 seconds, where the person stays quiet, and the answer says where the words end, so the clip can be trimmed there. A dub is as long as the line: footage shorter than the line plays forward and back to cover it, so pick footage about as long as the line. It answers at once with a Job ID and the media is made in the background: start every generation you need, keep working, then call wait_for_jobs with all their Job IDs to get each Asset ID for patch_film. Uses credits for each second of the video: a still about 0.073 credits a second at standard and about 0.15 credits a second at high, 1.2 times that over 15 seconds, so a 5-second line uses 1 credits at standard; a dub about 0.12 credits a second of the longer of the footage and the line, so 5 seconds use 1 credits. Tell the person the cost before you start it.

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": {
      "mode": "<mode>",
      "assetId": "<assetId>",
      "atSeconds": "<atSeconds>",
      "startSeconds": "<startSeconds>",
      "endSeconds": "<endSeconds>",
      "audioAssetId": "<audioAssetId>",
      "audioStartSeconds": "<audioStartSeconds>",
      "audioEndSeconds": "<audioEndSeconds>",
      "quality": "<quality>",
      "projectId": "<projectId>"
    },
    "name": "lip_sync"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesstill: the person in a picture, an image or one frame of a video (atSeconds), comes to life saying the line. dub: a stretch of a video (startSeconds to endSeconds) keeps its real moves, face and framing, and only the mouth changes to say the line.
assetIdYesstill: an image asset, or a video asset with atSeconds for one of its frames: one face, turned to the camera, clear and not covered, in a picture from 2:5 (tall) to 5:2 (wide). dub: the video asset whose person says the line, with their face in view. Use the IDs search_assets gives.
qualityYesstill: standard (null) for most videos, made at 768p; high makes it at 1080p and uses twice the credits, only when the person asks for the sharpest picture. null with dub, which keeps the footage's own size.
atSecondsYesstill with a video asset: the source second of the frame to animate, one where the face is clear and the mouth closed or still, which you checked with preview_frame or read_asset; null for an image, or for a video's first frame. null with dub.
projectIdYesThe project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs.
endSecondsYesdub: source second of assetId where the footage to dub ends. null with still.
audioAssetIdYesWhat they say: a sound asset, usually the speech generate_speech made (with voiceAssetId for the person's own voice), or a video or sound asset with speech.
startSecondsYesdub: source second of assetId where the footage to dub starts, with endSeconds: the part a clip plays, about as long as the line. null for both dubs the whole video, which is then 1 to 60 seconds long. null with still.
audioEndSecondsYesSource second of audioAssetId where the line ends.
audioStartSecondsYesSource second of audioAssetId where the line starts, with audioEndSeconds; null for both uses the whole asset.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false), the description discloses the asynchronous contract (returns a Job ID immediately, media is generated in the background), the padding behavior for short stills, the forward-and-back playback used when dub footage is shorter than the line, where the words end in the returned clip, and a full credit-cost model. That is exactly the extra context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is front-loaded correctly — purpose, then mode split, then pipeline, then cost — and nearly every sentence carries operational information. However, the prose is dense and run-on ('A still is as long as the sound, at least 5 seconds, up to 60: a shorter sound is padded with silence to 5 seconds, where the person stays quiet'), and the credit arithmetic is restated twice for still and dub. It is informative but harder to parse than it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-required-parameter generative tool with no output schema, the description covers the full lifecycle: inputs (asset, sound, frame selection), duration and padding rules, the async Job ID return path to Asset IDs via wait_for_jobs, downstream use with patch_film, and cost. Nothing an agent needs to invoke this correctly and handle the result is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the schema already defines mode, atSeconds, quality, start/end and audio start/end in detail. The description still adds cross-tool meaning the schema cannot: that the sound may be a sound or video asset or a part of one, that a still's length follows the sound, and how atSeconds interacts with a video source. This is meaningful reinforcement rather than repetition.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a concrete verb and resource — making a person in a picture say a line — and immediately splits it into two named modes ('mode still' and 'mode dub') with what each produces. It distinguishes itself from siblings by naming generate_speech, edit_video, read_transcript and wait_for_jobs in their actual roles, so an agent can place this tool in the pipeline without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states exactly when to pick still versus dub (picture vs. real footage whose framing must be preserved) and gives an explicit multi-step recipe: read_transcript to pick a clean stretch, generate_speech to make the line, then lip_sync, then edit_video. It also states the post-call procedure — start every generation, keep working, then wait_for_jobs with all Job IDs — and even warns not to place the sound twice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.