Live Face Swap for uploaded video
Use the connected Live Face Swap MCP tools. If they are unavailable, point the user to the installation instructions or the Live Face Swap MCP guide. Use the connection the user selected. For local testing, keep every call on the local connection.
Estimate and prepare
- For a price estimate, call
quote_video_face_swapwithdurationSecondsbetween 1 and 30. Ask for the duration if it is unknown. ReportestimatedCreditsas an estimate. A quote-only request ends here. - When the user wants to prepare a job, call
prepare_video_face_swapwith no arguments. Keep the returneddraftIdand sharepreparationUrlprivately. The link expires after 30 minutes. Ask the user to open it with the same Live Face Swap account, select a 1–30 second MP4 with one clearly visible face and a portrait they have permission to use, and approve the exact quote shown on the site. Keep source files in that browser workflow.
Start an approved job
- After the user confirms that they approved the exact quote on the site and explicitly asks to start, call
create_video_face_swapwith the samedraftId. Starting reserves credits. Save the returnedtaskIdfor status checks. - If the server reports
VIDEO_MCP_APPROVAL_REQUIRED, send the user back to the preparation link. If the draft expired or the quote changed, offer a fresh preparation link and repeat the approval step. If the start request times out or the outcome is unclear, retry with the samedraftIdto avoid a duplicate job.
Check and download
- Call
get_video_face_swap_resultwith the existingtaskId. For a status-only request, report the current state. While waiting for completion, honorretryAfterSecondsbefore checking again. If a call hits a rate limit, use the server's retry delay. - On
completed, reportbilledCreditswhen returned and share the privateresultUrlwith the user. The result page finishes the video in the browser and offers MP4 preview and download. Onfailed, report the failure and any billed credits returned. A new attempt requires a new approval.