Available nowNewFeatured

Raymotion: character swap for video

By Raywake

Upload a video and a photo of each new character. Raymotion puts them in place of the people on screen and keeps the movement, lip sync, camera and sound.

Model ID
Maker
Raywake
Added
November 4, 2026

Model id

Use this in every request
rayjutsu

Run it

Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.

# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "rayjutsu",
  "input": {
    "video_url": "https://example.com/input.mp4",
    "image_urls": [
      "https://example.com/input.png"
    ],
    "prompt": "Replace the dancer in the center with @Image1 and keep the rest of the room as filmed."
  }
}'

# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model": "rayjutsu", "quote_id": "QUOTE_ID", "input": {"video_url":"https://example.com/input.mp4","image_urls":["https://example.com/input.png"],"prompt":"Replace the dancer in the center with @Image1 and keep the rest of the room as filmed."}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Input

Input fields for rayjutsu
NameTypeDescription
video_urlrequiredstring (URL)
Upload the video to recast: MP4 or MOV, 4 to 20 seconds. The result keeps its length, motion, camera and sound.
image_urlsrequiredarray of image URLs
Upload one image per character, up to 8, ideally showing the face and the whole outfit from several angles. Refer to them in the prompt as @Image1, @Image2 and so on.
promptstring
Optional. Say who replaces whom and what else should change, for example "Replace the dancer with @Image1." Leave it empty to swap the characters and keep the scene as filmed.
resolutionstring (enum)
Use 480p for drafts and 720p or 1080p for the final video.

Default: 720p

One of: 480p, 720p, 1080p

Output

A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.

Job excerpt
"outputs": [
  { "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]

Pricing

  • 480p$0.0753/ second
  • 720p$0.1427/ second
  • 1080p$0.2853/ second

The exact charge for your input comes from a quote. How charges settle

API docs

About this model

Overview

Raymotion takes a clip you already have and a photo of each new character, then recasts the people in it. The result runs as long as your clip and keeps its movement, camera work, lip sync and soundtrack.

You can recast up to 8 characters in one run. Leave the prompt empty to swap the characters and keep everything else, or write one to say who replaces whom and what else should change.

What you can build

  • A dance or reaction clip performed by a different character
  • Versions of one ad with a different presenter in each
  • Short scenes restaged with your own characters
  • Quick drafts at a low resolution before the final video

Prompting tips

  • For each character, upload one image that shows them from the front, the side and full length, with the face and the whole outfit in good light. For simple shots, one clear front photo is enough.
  • Name each photo by its number in the prompt, for example "Replace the woman in red with @Image1."
  • Choose a source clip where each person stays clearly in view.
  • Check the swap at 480p first, then render the final video at 720p or 1080p.

What to check

Watch the whole video. Faces and outfits should match the photos from the first frame to the last; what a photo does not show, such as the back of an outfit, can change. Lips should match the sound and the camera should move as it did in the source.

Inputs

  • Source Video (required): Upload the video to recast: MP4 or MOV, 4 to 20 seconds. The result keeps its length, motion, camera and sound.
  • Reference Images (required): Upload one image per character, up to 8, ideally showing the face and the whole outfit from several angles. Refer to them in the prompt as @Image1, @Image2 and so on.
  • Prompt (optional): Say who replaces whom and what else should change, for example "Replace the dancer with @Image1." Leave it empty to swap the characters and keep the scene as filmed.
  • Resolution (optional): Use 480p for drafts and 720p or 1080p for the final video. Options: 480p, 720p, 1080p.

Output and limits

  • Resolutions: 480p, 720p, 1080p.
  • The look of a character comes from its photo; the body movement always comes from your video.
  • The face and outfit are kept as far as the photo shows them. What the photo does not show (the back, or a covered part of the outfit) can change.
  • Clips and photos that contain copyrighted material can be refused. A refused job has no charge.
  • Readable text inside the video, especially small text, is unreliable.
  • Scenes with several interacting characters can lose consistency.
  • Longer clips can show more motion drift or scene changes.
  • Low-quality inputs cause glitches: heavy compression, collages, screenshots and text overlays.
  • Some prompts or outputs can be refused by safety checks.

Price guide

  • 480p: $0.0753 / second
  • 720p: $0.1427 / second
  • 1080p: $0.2853 / second
  • The total for your settings is rounded up to the next cent.