# How to Swap a Character in a Video with Raymotion

> Swap the people in a 4 to 20-second clip with Raymotion and keep the motion, lip sync, camera and sound. Consent rules, clip and photo tips, prompts, a 480p draft, prices and the API.

Canonical: https://raywake.si/blog/raymotion-character-swap-video
Last updated: 2026-12-01

Published: 2026-12-01 · Raywake

Raymotion swaps the people in a video you already have. You upload the clip and one photo for each new character, and Raymotion puts them in place of the people on screen while the movement, lip sync, camera and sound stay as filmed. There is nothing to install and no subscription: it runs in the browser studio or through the API, and you pay per clip, from $0.0753 per second at 480p.

This guide walks through one swap from start to finish: the consent rule, the source clip, the photos, the prompt, a 480p draft and the final render. Every fact and price comes from the [Raymotion model page](https://raywake.si/models/raymotion) and the [character swap guide](https://raywake.si/create/character-swap-video), checked on 1 December 2026.

## Before you start: only people who agreed

**Use only your own footage, or footage you have the right to edit, and only photos of people who have agreed to appear in the video.** The Raymotion model page states this rule directly, and it applies to both sides of the swap: the person in the source clip and the person in each photo.

In practice that means:

- **Yourself, your team or hired talent:** fine, with their agreement. For ads, get that agreement in writing before you publish.
- **Celebrities, public figures, strangers or anyone who has not agreed:** do not use them, not even for a test.
- **Clips and photos with copyrighted material:** they can be refused. A refused job has no charge.
- **Publishing the result:** Raywake's [acceptable use policy](https://raywake.si/acceptable-use) bans deceptive depictions of real people and content that infringes privacy or personality rights, and asks you to say when a realistic result is AI-generated.

The example prompts in this guide use placeholder roles such as "the dancer", never named or well-known people.

## What Raymotion does

- **Input:** one video (MP4 or MOV, 4 to 20 seconds, up to 100 MB) and one image per character, up to 8 images.
- **Output:** a video as long as your clip, at 480p, 720p or 1080p.
- **Kept from the source:** length, body movement, camera, lip sync and sound.
- **Taken from the photos:** each character's face and outfit, as far as the photo shows them.
- **Prompt:** optional. Leave it empty to swap the characters and keep the scene as filmed, or say who replaces whom.

This is the example output shown on the Raymotion model page:

```raywake-component
{"type": "video", "src": "/previews/rayjutsu-example.mp4", "poster": "/previews/rayjutsu.jpg", "width": 1280, "height": 720, "caption": "Example output from the Raymotion model page: a grey cat sings into a microphone in place of the original performer."}
```

## Step by step: swap a character in your video

### Step 1: choose a source clip that keeps each person in view

Pick a 4 to 20-second clip in which every person you want to replace stays clearly visible from start to finish. The model page lists what causes glitches: heavy compression, collages, screenshots and text overlays. The character swap guide adds that very fast occlusion and tiny faces reduce quality. Shorter clips are also safer, because longer clips can show more motion drift.

### Step 2: prepare one photo per character

The best photo shows the face and the whole outfit from the front, the side and full length, in good light. For simple shots, one clear front photo is enough. Photos can be JPEG, PNG or WebP up to 10 MB. Whatever the photo does not show, such as the back of an outfit, can change in the result, so pick a photo that covers what the camera will see.

### Step 3: write the prompt, or leave it empty

Name each photo by its number: the first photo is @Image1, the second @Image2 and so on. Describe only what should change, since the movement and timing already come from the video.

- **One character:** "Replace the dancer with @Image1. Keep the room as filmed."
- **Two characters:** "Replace the person on the left with @Image1 and the person on the right with @Image2. Keep everything else as filmed."
- **No prompt:** the characters change and the scene stays exactly as filmed.

### Step 4: make a 480p draft

Run the first version at 480p. A 10-second draft costs $0.76, so you can check the swap before you pay for a sharper render. Raywake shows the exact price for your clip before the job starts.

### Step 5: check the draft from the first frame to the last

Watch the whole clip, not only the opening seconds:

- Faces and outfits match the photos in every frame.
- Lips match the original sound.
- The camera moves as it did in the source.
- In scenes with several characters, each one stays the right person; interacting characters can lose consistency.
- Small readable text in the video may not survive.

If a face or outfit drifts, try a clearer photo that shows more of the character before you rewrite the prompt, since what a photo does not show can change.

### Step 6: render the final at 720p or 1080p

When the draft works, render the final video at 720p, the default, or 1080p. A 10-second final costs $1.43 at 720p or $2.86 at 1080p.

## How much Raymotion costs

The price follows the clip length in whole seconds and the resolution, and the total is rounded up to the next cent:

| Resolution | Price per second | 5-second clip | 10-second clip | 20-second clip |
|---|---|---|---|---|
| 480p | $0.0753 | $0.38 | $0.76 | $1.51 |
| 720p | $0.1427 | $0.72 | $1.43 | $2.86 |
| 1080p | $0.2853 | $1.43 | $2.86 | $5.71 |

One 480p draft plus one 720p final of a 10-second clip comes to $2.19. Raymotion runs on the same US dollar balance as the rest of Raywake's 500+ models, with no subscription ([pricing](https://raywake.si/pricing)).

You can open Raymotion directly from its model card:

```raywake-component
{"type": "model-card", "model": "rayjutsu", "label": "Raymotion character swap"}
```

## Where Raymotion fits

Raymotion is for footage you already have: one clip, a few photos and a price you see before you start. If you have no footage yet, start from a still and animate it instead; [how to turn an image into a video](https://raywake.si/blog/image-to-video-ai) covers that route. For a presenter-style ad made from one product photo, see the [AI product ad video workflow](https://raywake.si/use-cases/ai-product-ad-video), and for a full ad budget in which a Raymotion recast is one line, see [what a 30-second AI video ad costs](https://raywake.si/blog/ai-video-ad-cost-breakdown).

MiniMax also has a recast workflow, which is not open on Raywake; [MiniMax H3 LoRAs and what Recast does](https://raywake.si/blog/minimax-h3-lora-recast) explains the difference between a trained LoRA and a recast.

## Raymotion API example

Raymotion's API model id is `rayjutsu`. As with every Raywake model, you first price the input with a quote, then start the job with the `quote_id` and poll it.

Raymotion is priced by the length of your source video, so the video has to be a file uploaded to your Raywake account, where its length is measured. A quote with an external video URL fails ([inputs and files](https://raywake.si/docs/inputs)). Upload the clip in the studio, or with the `upload_file` tool of the [Raywake MCP server](https://raywake.si/docs/mcp), and use that file's URL as `video_url`. The character photos can be any public `https://` image URL.

This quote is for a 480p draft:

```raywake-component
{"type": "code-tabs", "snippets": {"curl": "curl -s https://api.raywake.com/v1/quotes \\\n  -H \"Authorization: Bearer $RAYWAKE_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"model\": \"rayjutsu\", \"input\": {\"video_url\": \"YOUR_UPLOADED_CLIP_URL\", \"image_urls\": [\"https://example.com/character.png\"], \"prompt\": \"Replace the dancer in the center with @Image1 and keep the rest of the room as filmed.\", \"resolution\": \"480p\"}}'", "python": "import os, requests\n\nr = requests.post(\n    \"https://api.raywake.com/v1/quotes\",\n    headers={\"Authorization\": f\"Bearer {os.environ['RAYWAKE_API_KEY']}\"},\n    json={\n        \"model\": \"rayjutsu\",\n        \"input\": {\n            \"video_url\": \"YOUR_UPLOADED_CLIP_URL\",\n            \"image_urls\": [\"https://example.com/character.png\"],\n            \"prompt\": \"Replace the dancer in the center with @Image1 and keep the rest of the room as filmed.\",\n            \"resolution\": \"480p\",\n        },\n    },\n)\nprint(r.json())", "javascript": "const r = await fetch(\"https://api.raywake.com/v1/quotes\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.RAYWAKE_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    model: \"rayjutsu\",\n    input: {\n      video_url: \"YOUR_UPLOADED_CLIP_URL\",\n      image_urls: [\"https://example.com/character.png\"],\n      prompt: \"Replace the dancer in the center with @Image1 and keep the rest of the room as filmed.\",\n      resolution: \"480p\",\n    },\n  }),\n});\nconsole.log(await r.json());"}}
```

Then send the `quote_id` to `/v1/generate` and poll `/v1/jobs/{id}`. The [quotes reference](https://raywake.si/docs/reference/quotes) lists the response fields, and the [API docs](https://raywake.si/docs) cover authentication.

## FAQ

### Can I swap in a celebrity or someone else's photo?

No. Use only photos of people who have agreed to appear in the video, and only footage you have the right to edit. Deceptive depictions of real people are not allowed under Raywake's acceptable use policy.

### Do I need to install anything?

No. Raymotion runs in the Raywake studio in your browser, or through the API. Uploading a file needs an account.

### How long can the video be?

4 to 20 seconds, MP4 or MOV, up to 100 MB.

### How many characters can I swap?

Up to 8 in one run, with one photo each.

### Does Raymotion keep the original sound?

Yes. The length, movement, camera, lip sync and soundtrack of your clip stay as they were.

### How much does Raymotion cost?

$0.0753 per second at 480p, $0.1427 at 720p and $0.2853 at 1080p. A 10-second clip costs $0.76, $1.43 or $2.86.

## Try Raymotion

Start with a 480p draft of a clip you have the rights to, check it from the first frame to the last, then render the final at 720p or 1080p.

```raywake-component
{"type": "cta", "id": "studio", "label": "Swap a character with Raymotion"}
```

## Related

- [Türkçe sürüm](https://raywake.si/tr/blog/raymotion-karakter-degistirme)
- [Raywake Blog](https://raywake.si/blog)
