Use Wan 2.2 Animate to replace a character in a video scene
Every plan, free included.
The smallest request that works: the required fields only.
curl https://api.percify.io/v3/playground/v1/run \
-H "Authorization: Bearer $PERCIFY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"modelId": "wan-2-2-animate-replace",
"input": {
"video": "https://cdn.percify.io/media-assets/catalog/samples/video-5s.mp4",
"character_image": "https://cdn.percify.io/media-assets/catalog/samples/image.jpg"
}
}'8 fields in input, required first.
videoRequiredInput video containing the character to be replaced.
character_imageRequiredNew character image to replace the original character.
resolutionOptionalResolution for processing.
go_fastOptionalApply additional optimizations for faster generation.
seedOptional
$0.08/sSwap the character in a video for someone else.
$0.06/sReplace or insert a subject into an existing video.
$0.168/sKling 2.6: animate a subject with motion control for cinematic video.
$0.14/sKling 3.0 motion control: transfer motion from a reference video to any character image with improved consistency and quality.

Pick a use case, run it in the playground, copy the call.
Every plan, free included.
Random seed. Leave blank for random.
merge_audioOptionalMerge audio from input video into output.
refert_numOptionalNumber of reference frames to use (must be 1 or 5. Deprecated, will always be set to 1.
frames_per_secondOptionalFrames per second for output video. Deprecated, will always be set to 30.