Create LipDub render (uses account credits)
lipdub_create_renderCreate a lip-sync render from a video URL and audio URL, making the speaker appear to say the audio. Confirm credit spend first, then get a render_id for async processing.
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, with two exceptions: YouTube links work (youtube.com, youtu.be or youtube-nocookie.com), because they are resolved for you. Google Drive and Dropbox share pages, and anything behind a login, will fail.
Returns immediately with a render_id — the render is NOT finished. Rendering takes several minutes for a short clip, and longer for longer videos. 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 URL to the audio the person should appear to say (.mp3, .wav, .m4a, .aac, .ogg, .flac, .mp4 or .mov). You must supply finished audio; LipDub 2 does not generate or translate speech. | |
| video_url | No | URL to the source video (one person, face visible). .mp4, .mov or .avi, or a YouTube link. | |
| 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. |