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 (min 25; ×2 for 1080p; +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 | ||
| 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. |