Pixverse Swap API

Swap a person, object or background in a video with the one from a photo, keeping the original motion and sound.

Modalities
Image, VideoVideo
Price
$0.040449per second
Resolution
Up to 720p
Released
Nov 12, 2026

Pixverse Swap overview

Pixverse Swap by PixVerse

Pixverse built Swap for subject replacement in existing footage. It uses a reference image to replace a subject or selected region and preserves the original video's motion and sound.

Pixverse Swap specs

Model ID
pixverse/swap
Developer
PixVerse
Input
Image, Video
Output
Video
Endpoint
POST https://api.aimlapi.com/v2/video/generations

Limits of the source video

Pixverse states that the source video can be up to 30 seconds long and 100 MB in size. The longest side may be at most 1920 pixels.

Pixverse also states that 1080p output is not supported for Swap. Plan for a final resolution at or below 720p, and upscale elsewhere if you need more.

Pick the frame and the resolution

Keyframe time sets the second of the source video whose frame is used to find the subject. It accepts 0 to 30 and defaults to the first frame. Start with a second where the subject is fully visible, unobstructed and facing the camera. If the first frame shows the subject only partly, move the keyframe later.

Resolution accepts 360p, 540p or 720p. Start with 540p to check that the right subject is replaced, then render the final version at 720p.

Where the mask workflow fits

Pixverse recommends a video mask workflow to identify the region before applying Subject Replacement. Check the output for the edges of the replaced subject and for whether the original motion and sound still line up with the new subject.

Use cases

Replace the actor in a short clip with a person from a reference photo while keeping the original movement.

Swap a product in a demo video for a newer version shown in a photo.

Change the background of a recorded scene to the location shown in an image.

Test several reference photos against the same source video at 540p before choosing one.

Pixverse Swap API pricing

Pixverse Swap pricing in US dollars
UsagePriceUnit
Video generation$0.040449second

Prices from the AI/ML API price list, checked on Nov 23, 2026.

Pixverse Swap vs other video models: prices

AI/ML API rates for 5 models, per second.

AI/ML API prices in USD per second
ModelPer second
Pixverse Swap$0.040449
LTXV 2 Fast$0.04
MiniMax H3 Highspeed$0.04
Wan 2.5 Image-to-Video Preview$0.05
Wan 2.5 Text-to-Video Preview$0.05

How to use the Pixverse Swap API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v2/video/generations' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "pixverse/swap",
  "video_url": "https://example.com/input.mp3",
  "image_url": "https://example.com/input.jpg"
}'

The request returns a generation id. Poll GET https://api.aimlapi.com/v2/video/generations?generation_id=<id> until the status is completed.

Related articles

All posts

Pixverse Swap FAQ

How much does Pixverse Swap cost?

Pixverse Swap costs $0.040449 / sec on AI/ML API.

What inputs does Pixverse Swap need?

It needs a source video and a reference image. The image provides the person, object or background that replaces the original.

How long can the source video be?

Pixverse states up to 30 seconds and 100 MB, with a longest side of at most 1920 pixels.

Can I get 1080p output?

No. Resolution accepts 360p, 540p or 720p, and Pixverse states that 1080p is not supported for Swap.

How do I control which subject is replaced?

Set keyframe time to a second of the source video, from 0 to 30, where the subject is clearly visible. It defaults to the first frame.

What is the Pixverse Swap model ID?

Use pixverse/swap as the model parameter. Requests go to https://api.aimlapi.com/v2/video/generations with your AI/ML API key.

Start building with Pixverse Swap

Pixverse Swap API

pixverse/swap

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v2/video/generations' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "pixverse/swap",
  "video_url": "https://example.com/input.mp3",
  "image_url": "https://example.com/input.jpg"
}'