Pricing
Compare models →Pricing is based on input video duration and selected resolution.
Billed duration is rounded up to the next whole second, with a minimum billed duration of 3 seconds and a maximum billed duration of 120 seconds.
| Resolution | Per 5s | Per second | Max billed length |
|---|---|---|---|
| 480p | $0.20 | $0.04 | 120s |
| 720p | $0.40 | $0.08 | 120s |
Example Costs
| Input Duration | Billed Duration | 480p | 720p |
|---|---|---|---|
| 0.5s | 3s | $0.12 | $0.24 |
| 3s | 3s | $0.12 | $0.24 |
| 5s | 5s | $0.20 | $0.40 |
| 30s | 30s | $1.20 | $2.40 |
| 120s | 120s | $4.80 | $9.60 |
| 150s | 120s | $4.80 | $9.60 |
image, prompt, and seed do not add separate charges.
Input schema
| Parameter | Type | Description |
|---|---|---|
imageRequired | string | The image for generating the output. |
videoRequired | string | The video for generating the output. |
prompt | string | The positive prompt for the generation. |
resolution | string | The resolution of the output video.480p720p"480p" |
seed | integer | The random seed to use for the generation. -1 means a random seed will be used. |
README
MoCha AI Video Character Replacement
MoCha AI Video Character Replacement replaces the main character in a video with a new character provided through a reference image. It preserves the source video's motion, facial expressions, lighting, and camera perspective while transferring the new character identity into the scene.
Unlike traditional workflows, MoCha does not require explicit per-frame structural inputs such as pose maps or depth maps. Provide a source video and a character image, then use an optional prompt to guide the replacement result.
Why Choose This?
- Character replacement workflow
Replace the main character in a video using a reference image.
- Structure-free input
No pose maps, depth maps, or manual frame-by-frame guidance are required.
- Motion preservation
Preserve the source actor's body movement, facial expression, timing, and camera perspective.
- Identity consistency
Maintain the new character's facial identity, appearance, and style across frames.
- Simple setup
Use one character image and one source video without complex preprocessing or rigging.
- Flexible resolution options
Choose 480p for lower-cost processing or 720p for higher-quality output.
Parameters
| Parameter | Required | Description |
|---|---|---|
| image | Yes | Reference image of the new character. Use a clear JPG or PNG image when possible. |
| video | Yes | Source video containing the motion, expression, and camera perspective to preserve. |
| prompt | No | Optional text instruction to guide the replacement result, such as appearance details, preservation requirements, or style direction. |
| resolution | No | Output resolution: 480p or 720p. |
| seed | No | Random seed for reproducible results. Use a fixed seed to reproduce similar outputs. |
How to Use
- Upload a character image — Provide a clear reference image of the new character.
- Upload a source video — Provide the video whose motion, expression, and camera perspective should be preserved.
- Add a prompt optional — Describe what should be preserved or adjusted, such as outfit, lighting, background, or expression style.
- Choose resolution — Use
480pfor lower-cost previews or720pfor higher-quality output.
- Set seed optional — Use a fixed seed when reproducibility is needed.
- Submit — Generate the character-replaced video.
Pricing
Pricing is based on input video duration and selected resolution.
Billed duration is rounded up to the next whole second, with a minimum billed duration of 3 seconds and a maximum billed duration of 120 seconds.
| Resolution | Per 5s | Per second | Max billed length |
|---|---|---|---|
| 480p | $0.20 | $0.04 | 120s |
| 720p | $0.40 | $0.08 | 120s |
Example Costs
| Input Duration | Billed Duration | 480p | 720p |
|---|---|---|---|
| 0.5s | 3s | $0.12 | $0.24 |
| 3s | 3s | $0.12 | $0.24 |
| 5s | 5s | $0.20 | $0.40 |
| 30s | 30s | $1.20 | $2.40 |
| 120s | 120s | $4.80 | $9.60 |
| 150s | 120s | $4.80 | $9.60 |
image, prompt, and seed do not add separate charges.
Best Use Cases
- Character replacement — Swap the main character in a video with a new reference character.
- Digital avatar videos — Create character-driven clips from existing performances.
- Advertising and creative production — Replace performers or characters while preserving the original scene motion.
- Film and concept tests — Prototype character variations without reshooting footage.
- Social video creation — Generate character-transformed short videos for creative content.
- Motion-preserving edits — Keep the original timing, action, and camera perspective while changing the character.
Pro Tips
- Use a clear, well-lit reference image with the character's face and body details visible.
- Match the reference image's angle, framing, and body orientation to the source video when possible.
- Use a source video with clear subject motion and limited occlusion.
- Keep the source video and reference image visually compatible for smoother replacement.
- Add prompt instructions for what should remain unchanged, such as background, camera movement, lighting, or outfit style.
- Use
480pfor quick tests and720pfor higher-quality output.
- For better stability, test with shorter clips before processing longer videos.
Notes
imageandvideoare required.
- Billed duration is rounded up and clamped to
3–120seconds.
- Videos longer than
120seconds are billed at the 120-second cap.
- The model is designed for replacing the main character in the source video.
- Clear subject framing and consistent lighting improve replacement quality.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Wan 2.1 MoCha Character Swap Video API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/wan-2.1/mocha for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"image": "https://d5v2vcqcwe9y5.cloudfront.net/image-to-video/251121/6784e7f4b50aebc7e17fe396/ruimbndg7jj1.jpg",
"video": "https://static.website-files.org/assets/video-generator/landing/showcase/04-a244f00f6098.mp4",
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"resolution": "480p",
"seed": 0
}Wan 2.1 MoCha Character Swap Video API — Frequently asked questions
What is the Wan 2.1 Mocha API?
Wan 2.1 Mocha is a OpenSIAI model for video editing, exposed as a REST API on OpenSIAI. Wan 2.1 MoCha Video-to-Video Character Swap replaces a video's character using reference images, preserving identity and motion without per-frame pose or depth maps for character replacement, avatar edits, creative videos, and production workflows. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Wan 2.1 Mocha API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/opensi-ai/wan-2.1/mocha.
How much does Wan 2.1 Mocha cost per run or per second?
Wan 2.1 Mocha starts at $0.04 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Wan 2.1 Mocha accept?
Key inputs: prompt, image, video, resolution, seed. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/opensi-ai/wan-2.1/mocha.
How long does Wan 2.1 Mocha take to generate?
Reported generation time on OpenSIAI is around 336 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Wan 2.1 Mocha outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (OpenSIAI). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
