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
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 Billing for current rates.
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