MeduxMedux

Edit > Video Character Replacement

Video Character Replacement

Replace the main character in a video with the target reference character.

POST/api/app/v1/process/video/character_replacement

Examples

curl -X POST https://api.medux.io/api/app/v1/process/video/character_replacement \
  -H 'Authorization: Bearer $MEDUX_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"model_id":"video-character-replacement-default","source_video_file_id":"FILE_ID","target_character_image_file_id":"FILE_ID"}'

Media Samples

Approved examples for understanding request inputs, response shape, and official example output.

Official video character replacement sample

This example uses video-character-replacement-default.

Sample request

Example input for this capability.

source_video_file_id{file_id}target_character_image_file_id{file_id}

Sample response

Official example output for preview only. It is not a user Media Result.

Example output

Auth Requirements

Authentication is required via Authorization header.

Preconditions

Upload the source file and create a file reference before calling this endpoint.

Successful requests return a Medux task record immediately. Use the task query or sync endpoints to track completion.

All file inputs must be uploaded and persisted as file references before submission.

Request

Body

application/json
Authorizationstringrequired

Bearer token or API key.

Location: HEADER

source_video_file_idstringrequired

Source video file_id.

Location: BODY

target_character_image_file_idstringrequired

Target character image file_id.

Location: BODY

model_idstringoptional

Video character replacement model id. Default: video-character-replacement-default.

Location: BODY

titlestringoptional

Optional task title.

Location: BODY

Response

Response

application/json
No response fields documented for this endpoint.

MCP Tool

This endpoint is also available through the Medux-hosted remote MCP service.

Video Character Replacement

Replace the main character in a video with the target reference character.

Invocation Example

Replace the main character in a video with the target reference character.