Character Swap: create
create_character_swapSwap a character image onto a driving video, optionally restoring selected source-video ranges in the final result. ASYNC — returns a projectId; poll get_job. SPENDS CREDITS (Standard: min 25, about 1 per swapped second, ×2 for 1080p. Pro: 5.5 credits per swapped second, 8.25 at 1080p, each section billed at least 3 s, min 25 / 50. +5 voice change). Needs a character-image r2Key (from swap_import_character for an image already on VidGuy, or swap_upload for raw bytes) and a driving-video r2Key from swap_upload. A driving-video r2Key is reusable: upload the source once, then call this repeatedly with different characters to batch one cut across many avatars. get_video on a finished swap returns its exact settings (ranges, keys) to replay.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| engine | No | Visual engine. Both take any length up to 2 minutes. "standard" (default): about 1 credit per swapped second. "pro": closest likeness and movement, lips follow the speech; 5.5 credits per swapped second (8.25 at 1080p), each swapped section billed at least 3 s. | |
| prompt | No | ||
| saveAudio | No | Keep the driving video's original audio in the result (default true). Set false to drop it. Ignored when voiceChangeVoiceId is set — voice change always keeps audio. | |
| resolution | No | ||
| sceneMatch | No | ||
| characterR2Key | Yes | character-image r2Key from swap_upload | |
| characterFileName | Yes | ||
| drivingVideoR2Key | Yes | driving-video r2Key from swap_upload | |
| voiceChangeVoiceId | No | If set, enables voice change with this ElevenLabs voice id (+5 credits) | |
| drivingVideoFileName | Yes | ||
| drivingDurationSeconds | Yes | Driving video length (drives cost) | |
| keepOriginalVisualRanges | No | Up to 20 ranges to keep exactly as filmed, e.g. screen recordings. Times are milliseconds and each range must be at least 250 ms. The swap applies everywhere else; audio processing is unchanged. |