Pricing
Compare models →The price depends on the resolution and the length of the source video. The video is billed per second, rounded up to a whole second, for up to 30 seconds; anything longer than 30 seconds costs the same as 30 seconds. A mask selection fee is added once per job.
| Resolution | 1 s video | 5 s video | 10 s video | 30 s video |
|---|---|---|---|---|
| 360p | $0.11 | $0.47 | $0.92 | $2.72 |
| 540p | $0.11 | $0.47 | $0.92 | $2.72 |
| 720p | $0.14 | $0.62 | $1.22 | $3.62 |
- P.S: Mask selection costs $0.02 per run (default settings), charged once per job and already included in the totals above.
Input schema
| Parameter | Type | Description |
|---|---|---|
imageRequired | string | The model generates video with the picture passed in as the first frame.Base64 encoded strings in data:image/jpeg; base64,{data} format for incoming images, or URLs accessible via the public network. The uploaded image needs to meet the following conditions: Format is JPG/JPEG/PNG; The aspect ratio is greater than 2:5 and less than 5:2; Short side pixels greater than 300px; The image file size cannot exceed 20MB. |
videoRequired | string | The video to be swapped. |
resolution | string | Video quality (360p/540p/720p).360p540p720p"720p" |
mode | string | The swap mode to use Default value: personpersonobjectbackground"person" |
README
PixVerse Swap — Video Swap Model
PixVerse Swap generates high-quality video clips by swapping the person, objects, or background of a source video using a reference image. It preserves the original motion, timing, and camera work while replacing the visual target with the new look from the image.
What it does
- Takes a source video (performance, camera motion, timing).
- Takes a reference image (new person, object, or background).
- Replaces the selected target in the video with the content from the image.
- Keeps motion, expressions, and framing consistent so the edit feels natural.
Ideal for:
- Turning talking-head videos into stylized or character performances
- Swapping outfits, props, or featured products
- Dropping your subject into new scenes without reshooting
Inputs and Controls
- video (required)
Source clip whose motion, expressions, and timing you want to keep.
- image (required)
Reference image that defines the new person, object, or background.
- resolution
- 360p
- 540p
- 720p
- mode
- person – Replace the main person in the video with the person or character from the image.
- object – Replace a key object (for example, smartphone, product, prop) with the object in the image.
- background – Keep the subject but replace the scene behind them using the reference image.
Pricing
The price depends on the resolution and the length of the source video. The video is billed per second, rounded up to a whole second, for up to 30 seconds; anything longer than 30 seconds costs the same as 30 seconds. A mask selection fee is added once per job.
| Resolution | 1 s video | 5 s video | 10 s video | 30 s video |
|---|---|---|---|---|
| 360p | $0.11 | $0.47 | $0.92 | $2.72 |
| 540p | $0.11 | $0.47 | $0.92 | $2.72 |
| 720p | $0.14 | $0.62 | $1.22 | $3.62 |
- P.S: Mask selection costs $0.02 per run (default settings), charged once per job and already included in the totals above.
How to Use
- Upload or paste the URL of your source video.
- Upload or paste the URL of the reference image that contains the new person, object, or background.
- Choose the resolution (360p, 540p, or 720p) according to your quality and cost needs.
- Select the mode:
- person for full character swap,
- object for prop/product replacement,
- background to move your subject into a different environment.
- Click Run and wait for the processed video to appear in the preview panel.
- Review the result and download if you are satisfied.
Notes
- An uploaded video in supported formats (mp4, mov)
- Max resolution: 1920
- Max file size: 50MB
- Max duration: 30 seconds
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Swap Portrait Transfer API example
The catalog lists POST https://api.opensi.com.ai/api/v3/pixverse/swap 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/yhq843ini355.jpg",
"video": "https://static.website-files.org/assets/video-generator/landing/showcase/04-a244f00f6098.mp4",
"resolution": "720p",
"mode": "person"
}Swap Portrait Transfer API — Frequently asked questions
What is the Swap API?
Swap is a Pixverse model for video editing, exposed as a REST API on OpenSIAI. PixVerse Swap replaces backgrounds, people, and objects directly inside existing videos for quick scene changes and creative edits with natural-looking results. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Swap 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/pixverse/swap.
How much does Swap cost per run or per second?
Swap starts at $0.12 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 Swap accept?
Key inputs: image, video, resolution, mode. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/pixverse/swap.
How long does Swap take to generate?
Reported generation time on OpenSIAI is around 49 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 Swap outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (Pixverse). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.