AI Video Edit
Transform videos with AI — swap characters, restyle, transfer motion
Transform videos with AI. EDIT: swap characters, change environments. RESTYLE: style transfer (anime, painting). MOTION CONTROL: transfer motion onto a character image (put yourself in a movie). Powered by Kling O1/V3.
Targeted AI edits on an existing video — swap characters, change environments, modify objects — while preserving original motion and camera angles. Reference elements with @Element1 and style images with @Image1 in the prompt. Powered by Kling O1. Input: 3-10s video. ⏱ Takes ~60-120s, runs async.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "video-edit",
"skill": "edit_video",
"input": {
"prompt": "Replace the main character with @Element1, keeping the same movements and camera angles",
"video_url": "https://example.com/movie-clip.mp4",
"elements": [
{
"frontal_image_url": "https://example.com/my-photo.jpg"
}
]
}
}' \
https://api.toolrouter.com/v1/tools/callBroad style transformation of a video — anime, painting, weather changes, time-of-day shifts — using the original as a motion/structure reference. Regenerates the video in a new style while preserving movement and composition. Powered by Kling O1. Input: 3-10s video. ⏱ Takes ~60-120s, runs async.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "video-edit",
"skill": "restyle_video",
"input": {
"prompt": "Transform this video into a Studio Ghibli-style anime animation with soft watercolor textures",
"video_url": "https://example.com/real-footage.mp4"
}
}' \
https://api.toolrouter.com/v1/tools/callTransfer motion from a reference video onto a character image — put yourself in a movie scene or make a photo dance. Provide character photo (image_url) + motion video (video_url). Kling V3 Pro. ⏱ ~60-120s, async.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "video-edit",
"skill": "motion_control",
"input": {
"image_url": "https://example.com/my-photo.jpg",
"video_url": "https://example.com/movie-scene.mp4",
"character_orientation": "video",
"prompt": "The character walks confidently through the scene"
}
}' \
https://api.toolrouter.com/v1/tools/callCheck the status of a pending video edit/restyle/motion-control job and retrieve the result if complete. Use this when a previous call returned a pending status with a fal_request_id.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "video-edit",
"skill": "check_video",
"input": {
"fal_request_id": "abc123-def456"
}
}' \
https://api.toolrouter.com/v1/tools/callQuick Start
claude mcp add --transport stdio \
--env TOOLROUTER_API_KEY=YOUR_API_KEY \
toolrouter -- npx -y toolrouter-mcpcurl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{"tool":"video-edit","skill":"edit_video","input":{}}' \
https://api.toolrouter.com/v1/tools/callFrequently Asked Questions
What is the difference between edit, restyle, and motion control?
`edit_video` makes targeted changes inside an existing clip, `restyle_video` transforms the overall visual style, and `motion_control` transfers motion from a source clip onto a character image. They solve different kinds of video transformation rather than repeating the same workflow.
What kind of source video works best?
Pass a direct video URL for a short clip, typically 3 to 10 seconds, in a common format like MP4, MOV, or WebM. The manifest also calls out a practical resolution range of roughly 720 to 2160 pixels.
Can I preserve the original audio?
Yes. The edit and restyle flows include audio-preservation options, and motion control can keep the original sound from the reference video when that helps the final result.
How do I know when a video edit is finished?
These edits run asynchronously. Start the job, keep the returned request ID, and use `check_video` to poll the status until the output video is ready.