Skip to main content

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

  1. Upload a video - Provide the scene containing the person to replace
  2. Upload a character image - Provide the replacement character reference
  3. Select the subject - Use automatic selection or provide a point and timestamp
  4. Choose the segment - Set start time, end time, and output resolution
  5. 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

Choose a clear selection frame - If several people appear, target a frame where the intended subject is visible and unobstructed.
  • 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 or file_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 in credits_charged. See Billing for current rates.

API Reference

Character Replace API Reference

View all request fields, selection modes, limits, and response formats

AI Video Editor

Edit video content with natural-language prompts

Face Swap Video

Replace faces while preserving the original scene