Skip to main content
Glama

create lipsync

lipsync_create
Destructive

Create one lip-synced video from an image or video plus audio or a script, making the face speak or match supplied audio.

Instructions

Create one lipsync video from exactly one visual (videoUrl, videoAssetId, imageUrl or imageAssetId) and one driver (audioUrl, audioAssetId, or script plus voiceId), to make a photo or video say a script or match its lips to supplied audio. When available, use lipsync_create-timeline instead for several audio clips or to lipsync only some ranges of one video, batches_create for 20 or more independent generations, dubbing_create to translate speech, and the Edit Dialogue tools (starting with dialogue_get-options) to change words in existing speech.

For a local file, when the assets tools are available, call assets_create-upload-url, PUT the bytes to its uploadUrl with the same Content-Type, register the url it returned (not the uploadUrl) with assets_create, and pass that asset id. If you cannot read the file or send that PUT yourself (no shell, or a sandbox without network access), do not retry: ask the person to upload it in sync. Studio at sync.so, then find it with assets_list. provider, stability and similarityBoost apply only to script.

Hard shots can finish COMPLETED with lips that barely move: a face turned toward profile, a small face the model has to enlarge, several faces or a crowd, a microphone or hand over the mouth, a face hidden for part of the shot, or singing over music. Before paying for a video like that, when the faces tools are available run faces_detect, then faces_get-people or faces_get-timeline, and pick the face yourself with options.active_speaker_detection { frame_number, coordinates: [x, y] } (on lipsync_create-timeline, a clip speaker). A still image has no face choice: the faces tools read videos only and an image ignores active_speaker_detection, so for a small face or a group photo suggest a tighter crop of the one face instead. For a song, drive the lipsync with the vocals stem from stems_separate when available; the output then plays only that stem, so say so. Tell the person, before spending, that the shot is hard and why, what you will do about it, and that the lips may still barely move.

This uses the session's organization unless organizationId names another. Check account_get-usage for free coverage; a script also needs free speech allowance and no connected provider key. Fully covered work needs no price mention or spending confirmation; otherwise follow the paid-work instructions. It returns the generation id and status at once; poll generations_get with wait: true until it finishes, then copy outputMediaUrl verbatim (unless it ends NO_OP: nothing was lip-synced).

Without projectId it first creates a NEW project, named projectName or a default, even if that name matches existing work. The input combination is checked before that; rejections from the API itself come after the project exists. Pass projectId, with projectIntent=explicit and without projectName or projectCreationKey, only for a project the user explicitly chose or one just created for this request. continuation, from generations_get-continuation, requires the parent generation's projectId.

Before calling, persist an idempotencyKey and, without projectId, a fresh projectCreationKey. After a lost or uncertain response, never create again with new keys: if the error names a generationId, poll it with generations_get; otherwise resend the identical request with the same keys.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lipsync_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOptional model override. Image and video inputs default to sync-3.
scriptNoText for the image or video to say.
optionsNoModel-specific generation preferences. Keep unchanged when retrying the same idempotency key.
voiceIdNoVoice id from voices_list. Required when script is provided.
audioUrlNoPublic or Sync-hosted audio URL. Use this when the user supplies audio.
imageUrlNoPublic or Sync-hosted still image URL. Use this for image-to-video lipsync with sync-3.
providerNoVoice provider for script-driven lipsync. Defaults to elevenlabs.
videoUrlNoPublic or Sync-hosted video URL. Supply exactly one visual input.
projectIdNoExisting Sync project ID returned by projects_list or projects_get. Use this to select the same project as the web app. Cannot be combined with projectName.
stabilityNoOptional ElevenLabs voice stability for script input.
projectNameNoName for a NEW project only. Never search or reuse a matching name. Cannot be combined with projectId.
audioAssetIdNoSaved audio asset id in the same organization as this call, from assets_list or assets_create when available. Supply audio or script, not both.
continuationNoOnly when the user explicitly continues an existing generation in this project: the parent generation and its workflow.
imageAssetIdNoSaved still image asset id in the same organization as this call, from assets_list or assets_create when available, for image-to-video lipsync. Supply exactly one visual input.
videoAssetIdNoSaved video asset id in the same organization as this call, from assets_list or assets_create when available. Supply exactly one visual input.
projectIntentNoRequired with projectId. Set only for an explicit user project selection/update, or the new project just created for this request. Never infer intent from a matching project name, workflow name or active editor.
idempotencyKeyNoUnique key for one generation action. Persist and reuse the same key, projectCreationKey (for new projects) or explicit projectId, model, and inputs when retrying after a lost response. Use durable asset IDs or stable URLs; upload files before starting the keyed action. A new intentional generation needs a new key. Passed as the Sync API Idempotency-Key header.
organizationIdNoRun only this call in another of the user’s Sync organizations, by id from organizations_list, when the user asks for it (for example “generate this in the Acme org”). The session keeps its organization; reads of the ids this call returns stay in this organization. Omit to use the session’s organization.
similarityBoostNoOptional ElevenLabs similarity boost for script input.
projectCreationKeyNoFresh random UUID identifying this NEW project creation, not a project ID. Required for keyed generation without projectId. Persist this key, name and generation key on retries; the server derives a separate project UUID.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.37
    • changedInput schema / properties / options / properties / active_speaker_detection / anyOf
      Previous value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "auto_detect": {
      -        "description": "Find the person speaking automatically.",
      -        "type": "boolean"
      -      },
      -      "coordinates": {
      -        "description": "[x, y] pixel position of the speaker's face on frame_number.",
      -        "items": false,
      -        "maxItems": 2,
      -        "minItems": 2,
      -        "prefixItems": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "number"
      -          }
      -        ],
      -        "type": "array"
      -      },
      -      "face_image": {
      -        "description": "URL of a reference image of the speaker's face.",
      -        "type": "string"
      -      },
      -      "frame_number": {
      -        "description": "Zero-based video frame that coordinates refer to.",
      -        "maximum": 9007199254740991,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "use_v2": {
      -        "description": "Use the second-generation speaker detector.",
      -        "type": "boolean"
      -      },
      -      "v3": {
      -        "description": "Use the third-generation speaker detector.",
      -        "type": "boolean"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "auto_detect": {
      +        "description": "Find the person speaking automatically.",
      +        "type": "boolean"
      +      },
      +      "coordinates": {
      +        "description": "[x, y] pixel on the middle of the speaker's face (between the eyes and the mouth, not hair, a hat or the body) on frame_number, in the upright video frame. A point just off one face is moved onto it; the result's warnings say so.",
      +        "items": {
      +          "type": "number"
      +        },
      +        "maxItems": 2,
      +        "minItems": 2,
      +        "type": "array"
      +      },
      +      "face_image": {
      +        "description": "URL of a reference image of the speaker's face.",
      +        "type": "string"
      +      },
      +      "frame_number": {
      +        "description": "Zero-based video frame that coordinates refer to.",
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "use_v2": {
      +        "description": "Use the second-generation speaker detector.",
      +        "type": "boolean"
      +      },
      +      "v3": {
      +        "description": "Use the third-generation speaker detector.",
      +        "type": "boolean"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {},
      -      "errorCode": {},
      -      "generationEstimate": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "propertyNames": {
      -              "type": "string"
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Server-provided completion estimate and server clock. Use only for approximate remaining time; do not invent an estimate when absent."
      -      },
      -      "id": {
      -        "description": "Sync generation id.",
      -        "type": "string"
      -      },
      -      "model": {
      -        "description": "Model used for the generation.",
      -        "type": "string"
      -      },
      -      "organization": {
      -        "additionalProperties": false,
      -        "description": "The Sync organization this call ran in.",
      -        "properties": {
      -          "id": {
      -            "format": "uuid",
      -            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -            "type": "string"
      -          },
      -          "name": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "name"
      -        ],
      -        "type": "object"
      -      },
      -      "outputDuration": {
      -        "description": "Output duration in seconds.",
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "outputMediaUrl": {
      -        "description": "Signed result URL when the generation is complete, named as in the API (GET /v2/generations/{id}). Copy this exact string verbatim; do not reconstruct, shorten, or edit it.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "outputUrl": {
      -        "deprecated": true,
      -        "description": "Deprecated alias of outputMediaUrl, with the same value. Read outputMediaUrl.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "projectId": {
      -        "description": "Sync project containing this generation.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "status": {
      -        "description": "Current generation status.",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "type": "string"
      -          },
      -          "generationId": {
      -            "type": "string"
      -          },
      -          "importJobId": {
      -            "format": "uuid",
      -            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -            "type": "string"
      -          },
      -          "importStatus": {
      -            "enum": [
      -              "queued",
      -              "downloading",
      -              "processing",
      -              "completed",
      -              "failed"
      -            ],
      -            "type": "string"
      -          },
      -          "message": {
      -            "type": "string"
      -          },
      -          "progress": {
      -            "maximum": 100,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          "retryAfterMs": {
      -            "type": "number"
      -          },
      -          "retryable": {
      -            "type": "boolean"
      -          },
      -          "status": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "message"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {},
      +      "errorCode": {},
      +      "generationEstimate": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Server-provided completion estimate and server clock. Use only for approximate remaining time; do not invent an estimate when absent."
      +      },
      +      "id": {
      +        "description": "Sync generation id.",
      +        "type": "string"
      +      },
      +      "model": {
      +        "description": "Model used for the generation.",
      +        "type": "string"
      +      },
      +      "organization": {
      +        "additionalProperties": false,
      +        "description": "The Sync organization this call ran in.",
      +        "properties": {
      +          "id": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "outputDuration": {
      +        "description": "Output duration in seconds.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "outputMediaUrl": {
      +        "description": "Signed result URL when the generation is complete, named as in the API (GET /v2/generations/{id}). Copy this exact string verbatim; do not reconstruct, shorten, or edit it.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "outputUrl": {
      +        "deprecated": true,
      +        "description": "Deprecated alias of outputMediaUrl, with the same value. Read outputMediaUrl.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "projectId": {
      +        "description": "Sync project containing this generation.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "status": {
      +        "description": "Current generation status.",
      +        "type": "string"
      +      },
      +      "warnings": {
      +        "description": "Only on a create: what the API did with a face point before starting. face_point_snapped: the point was just off one face (on hair, a hat or an ear) and was moved to its centre (from, to); tell the user which face is being lipsynced. face_point_unverified: no face was found at the point, which was sent unchanged and may fail; nearestFaces lists the faces found on that frame, so a retry can use a box center.",
      +        "items": {
      +          "additionalProperties": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "generationId": {
      +            "type": "string"
      +          },
      +          "importJobId": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          "importStatus": {
      +            "enum": [
      +              "queued",
      +              "downloading",
      +              "processing",
      +              "completed",
      +              "failed"
      +            ],
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "progress": {
      +            "maximum": 100,
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          "retryAfterMs": {
      +            "type": "number"
      +          },
      +          "retryable": {
      +            "type": "boolean"
      +          },
      +          "status": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "message"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed3 schema fields changedv0.2.4
    • changedInput schema / properties / audioAssetId / description
      Previous value: -"Existing Sync asset ID in the same organization."New value: +"Saved audio asset id in the same organization as this call, from assets_list or assets_create when available. Supply audio or script, not both."
    • changedInput schema / properties / imageAssetId / description
      Previous value: -"Existing Sync asset ID in the same organization."New value: +"Saved still image asset id in the same organization as this call, from assets_list or assets_create when available, for image-to-video lipsync. Supply exactly one visual input."
    • changedInput schema / properties / videoAssetId / description
      Previous value: -"Existing Sync asset ID in the same organization."New value: +"Saved video asset id in the same organization as this call, from assets_list or assets_create when available. Supply exactly one visual input."
  3. Changed9 schema fields changed
    • addedInput schema / properties / continuation / description
      Added value: +"Only when the user explicitly continues an existing generation in this project: the parent generation and its workflow."
    • addedInput schema / properties / continuation / properties / parentGenerationId / description
      Added value: +"Id of the existing generation this continues."
    • addedInput schema / properties / continuation / properties / workflow / description
      Added value: +"The parent generation's workflow, from generations_get-continuation."
    • changedInput schema / properties / options / properties / active_speaker_detection / anyOf
      Previous value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "auto_detect": {
      -        "type": "boolean"
      -      },
      -      "coordinates": {
      -        "items": false,
      -        "maxItems": 2,
      -        "minItems": 2,
      -        "prefixItems": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "number"
      -          }
      -        ],
      -        "type": "array"
      -      },
      -      "face_image": {
      -        "type": "string"
      -      },
      -      "frame_number": {
      -        "maximum": 9007199254740991,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "use_v2": {
      -        "type": "boolean"
      -      },
      -      "v3": {
      -        "type": "boolean"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "auto_detect": {
      +        "description": "Find the person speaking automatically.",
      +        "type": "boolean"
      +      },
      +      "coordinates": {
      +        "description": "[x, y] pixel position of the speaker's face on frame_number.",
      +        "items": false,
      +        "maxItems": 2,
      +        "minItems": 2,
      +        "prefixItems": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "number"
      +          }
      +        ],
      +        "type": "array"
      +      },
      +      "face_image": {
      +        "description": "URL of a reference image of the speaker's face.",
      +        "type": "string"
      +      },
      +      "frame_number": {
      +        "description": "Zero-based video frame that coordinates refer to.",
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "use_v2": {
      +        "description": "Use the second-generation speaker detector.",
      +        "type": "boolean"
      +      },
      +      "v3": {
      +        "description": "Use the third-generation speaker detector.",
      +        "type": "boolean"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / options / properties / active_speaker_detection / description
      Added value: +"Which face to lipsync when several people are visible: true or { auto_detect: true } to find the speaker, or frame_number plus coordinates to pick one. Omit for a single face or an image."
    • addedInput schema / properties / options / properties / model_mode / description
      Added value: +"How much of the face the model may change: lips, face or head."
    • addedInput schema / properties / options / properties / occlusion_detection_enabled / description
      Added value: +"Keep hands, microphones and other objects that pass in front of the mouth in front of it. Slower."
    • addedInput schema / properties / options / properties / sync_mode / description
      Added value: +"How to fit audio and video of different lengths: bounce (play the video forward, then in reverse), loop, cut_off (stop at the shorter input), silence (pad with silence to the longer input) or remap (change the video speed to match the audio)."
    • addedInput schema / properties / options / properties / temperature / description
      Added value: +"How expressive the mouth movement is, from 0 to 1. Omit for the model default."
  4. Addedv0.1.5

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=false and openWorldHint=true, so the paid/destructive profile is known. The description nonetheless adds substantial non-annotation behavior: new-project creation side effects even on name matches, validation ordering (input checked before project creation, API rejections after), org scoping, NO_OP output handling, and precise lost-response/idempotency recovery rules. That is real added value, but it is dense and partly duplicated by the schema, so it sits between adequate and excellent.

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

Conciseness4/5

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

The core contract is front-loaded in the first sentence and each paragraph has a distinct job (routing, uploads, quality warnings, billing/org, project creation, retries). It is long for a description, and the retry/idempotency guidance is repeated between prose and the idempotencyKey schema field, so some tightening is possible without losing information.

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 20-parameter destructive, networked generation tool, the definition covers the full lifecycle: input validation, cost coverage checks, project creation semantics, polling with generations_get, verbatim outputMediaUrl copying, NO_OP handling, and idempotent retry. An output schema exists, so omitting raw return-value documentation is appropriate.

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 description coverage is 100%, so the baseline is 3 and the description must add cross-parameter meaning — which it does: provider, stability and similarityBoost apply only to script, continuation requires the parent generation's projectId, projectId cannot coexist with projectName/projectCreationKey, and images ignore active_speaker_detection. It does not restate most field definitions, which is correct restraint, though a few conditional interactions (e.g. script vs audio exclusivity) remain implicit in the schema.

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 opening sentence states a specific verb and resource ('Create one lipsync video') and pins the exact input contract: exactly one visual (videoUrl, videoAssetId, imageUrl, imageAssetId) and one driver (audioUrl, audioAssetId, or script plus voiceId). It immediately distinguishes itself from siblings by naming lipsync_create-timeline, batches_create, dubbing_create and the dialogue tools with the conditions that select them.

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?

Explicit when-to-use routing is given for every adjacent tool (timeline for multiple clips or partial ranges, batches_create for 20+ generations, dubbing_create for translation, dialogue_* for editing existing speech). It also covers when NOT to proceed as-is (local file that cannot be uploaded, hard shots needing face detection, songs needing stems_separate) and what to tell the user before spending.

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