Create LipDub render (uses account credits)
lipdub_create_renderGenerate a lip-synced video by providing a source video and an audio URL, making the person in the video appear to speak the new audio track.
Instructions
Start a LipDub 2 render: make the person in a source video appear to speak a different audio track, with matched lip movement.
USES CREDITS. Each render charges the account and cannot be undone or refunded. Cost scales with the length of the source video. Confirm with the user first, then call again with confirm_spend set to true.
Supply BOTH sides as direct, publicly downloadable URLs:
video_url — a video of ONE person speaking, face clearly visible.
audio_url — the audio you want them to appear to say.
LipDub 2 does NOT translate, transcribe or generate speech. If the user wants another language, produce that audio first with a separate text-to-speech or voice tool, host it at a URL, and pass that URL as audio_url.
Links must return the media file itself. Google Drive, Dropbox and YouTube share pages, and anything behind a login, will fail.
Returns immediately with a render_id — the render is NOT finished. Rendering takes about 7–15 minutes. Next step: call lipdub_wait_for_render with that render_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audio_id | No | Advanced. A LipDub audio upload id from a previous upload, instead of audio_url. | |
| video_id | No | Advanced. A LipDub shot id from a previous upload, instead of video_url. | |
| audio_url | No | Direct https URL to the audio the person should appear to say. You must supply finished audio; LipDub 2 does not generate or translate speech. | |
| video_url | No | Direct https URL to the source video (one person, face visible). .mp4, .mov, .avi or .webm. | |
| transcript | No | Optional. The words spoken in audio_url. Supplying this can improve lip-sync accuracy. | |
| callback_url | No | Optional https URL to be called when the render finishes. For automated pipelines; in a chat session use lipdub_wait_for_render instead. | |
| confirm_spend | No | Whether the user has personally approved spending credits on this render. Defaults to false deliberately, as a safety gate — it is not a misconfiguration. Set it to true only after you have asked the user and they have agreed. Setting it yourself without asking spends their money without consent. | |
| output_filename | No | Optional name for the finished file, e.g. 'ceo-welcome-spanish.mp4'. If omitted, a name is derived from video_url. This name is also shown as the project name in the user's LipDub web app, so make it meaningful. |