Overview
Character Replace substitutes a person in a video with the character from a reference image. Automatic selection can identify the subject, or you can provide a point on a frame to target a specific person.How It Works
- Upload a video - Provide the scene containing the person to replace
- Upload a character image - Provide the replacement character reference
- Select the subject - Use automatic selection or provide a point and timestamp
- Choose the segment - Set start time, end time, and output resolution
- Create and download - Submit the job, poll until complete, then retrieve the output
Use Cases
- Character-driven content - Place a recurring character into new footage
- Creative remixes - Recast short clips using a reference image
- Previsualization - Test casting or character concepts before production
- Marketing variants - Adapt one scene with different characters
- Social content - Produce short character transformations for posts
Best Practices
- Use a clear reference image - Show the replacement character at useful resolution with good lighting
- Match framing when possible - Similar angles and body visibility help the replacement fit the scene
- Avoid heavy occlusion - Subjects hidden behind objects are harder to track consistently
- Start with automatic selection - Add a point only when the API needs help identifying the subject
- Test short segments - Validate subject tracking before processing a longer clip
Modes and resolution
Usestyle.mode="replace" to substitute the selected subject, or "animate" to transfer the source
video’s motion to the reference character. Set model to select a model explicitly.
The default model is wan-animate.
Duration limits for your plan still apply. Resolution must be supported by the model and your plan. If omitted, it defaults to the lowest
resolution available on your plan for that model.
end_seconds is required; start_seconds
defaults to zero. The selected duration is end_seconds - start_seconds.
Subject selection and prompts
Subject selection defaults toauto. For manual selection, set style.selection_mode="point"
and provide style.points. Coordinates are pixels in the source frame, and timestamps use the
source video’s timeline.
- Wan Animate: supports point selection in both modes.
- Kling 3.0: automatically selects the main person. Omit
style.points; supplying points is rejected. - MiniMax H3: supports point selection only in
replacemode. Inanimatemode,selection_mode="point"returns 422; points are ignored when selection isautoor omitted.
auto or omitted.
Optional style.prompt direction is supported by Kling 3.0 and MiniMax H3.
Code Example
Input files must be direct URLs orfile_path values returned by the file upload API.
cURL
Pricing
Credits are charged for frames that render. The create response provides an estimate, and the completed job reports the final total incredits_charged. See model-specific credit rates for pricing by model and resolution.
API Reference
Character Replace API Reference
View all request fields, selection modes, limits, and response formats
Related Tools
AI Video Editor
Edit video content with natural-language prompts
Face Swap Video
Replace faces while preserving the original scene