| No. | Core Feature | Sub-Feature | Description | Detailed Capability |
|---|---|---|---|---|
| 1 | Swap | Single Subject Swap | Replace one person or subject in the video | • Single mode: 1 selection area, 1 reference image |
| 2 | Swap | Multi-Subject Swap | Replace 2–3 people or subjects in the video at the same time | • Multi mode: up to 3 selection areas, up to 3 images for each subject |
| 3 | Add | Smart Add | Add new elements (e.g. accessories, props, characters) into the video | • Supports 1 selection area(optional) and 1 reference image(optional) |
| 4 | Edit | Remove | Remove elements from the video | • Remove: intelligently fills the background after removal. |
| 5 | Edit | Type Anything | Modify the video with a free-form prompt | • Supports changing lighting, season, weather, and other scene attributes |
| 6 | Edit | Text Replacement | Detect and replace embedded text in the video | • Modify in-video text directly with a prompt |
| 7 | Restyle | Scene Style Transfer | Transform the entire video into a different visual style | • Supports 3D, 2D, comic, ink painting, and other styles |
{
"ErrCode": 0,
"ErrMsg": "success",
"Resp": {
"media_id": 0,
"media_type": "video",
"url": "https://media.pixverse.ai/111111.mp4"
}
}| Parameter Name | Type | Required | Description | Example / Allowed Values | Notes |
|---|---|---|---|---|---|
source_video_id | int | One of source_video_id or video_media_id is required | Video generated from PixVerse | 12345 | Cannot be used together with video_media_id |
video_media_id | int | One of source_video_id or video_media_id is required | Externally uploaded video | 12345 | Cannot be used together with source_video_id |
prompt | string | Yes | The prompt describing the modification you want to make. | When using specific features, please note that if a mask is used in the prompt, it should be referenced as @selection0. For multiple masks, use @selection1, @selection2. If reference images are uploaded, use @img0, @img1, etc. | |
img_ids | array[int] | No | Uploaded image IDs used in the prompt | [123, 456] | At least 1 item if provided |
mask_ids | array[string] | Optional, choose one of mask_ids or mask_urls | Mask IDs generated by the mask API | ["3847593904"] | At least 1 item if provided |
mask_urls | array[string] | Optional, choose one of mask_ids or mask_urls | Publicly accessible mask image URLs | ["https://example.com/mask.png"] | At least 1 item if provided |
keyframe_id | int | No | Specifies which frame of the video is used for swap features in modify | 1 | Only one value can be provided. Does not need to match the number of mask_ids. |
quality | string | Yes | Output video resolution | "360p", "540p", "720p" | "1080p" is not supported |
seed | int | No | Random seed used for reproducible results | 0 ~ 2147483647 | Optional |
| No. | Core Feature | Sub-Feature | Description | Detailed Capability | Code Example |
|---|---|---|---|---|---|
| 1 | Swap | Single Subject Swap | Replace one person or subject in the video | • Single mode: 1 selection area, 1 reference image | |
| 2 | Swap | Multi-Subject Swap | Replace 2–3 people or subjects in the video at the same time | • Multi mode: up to 3 selection areas, supports custom images for each subject | |
| 3 | Add | Smart Add | Add new elements (e.g. accessories, props, characters) into the video | • Supports 1 selection area and 1 reference image | |
| 4 | Edit | Remove | Remove elements from the video | • Remove: intelligently fills the background after removal | |
| 5 | Edit | Type Anything | Modify the video with a free-form prompt | • Supports changing lighting, season, weather, and other scene attributes | |
| 6 | Edit | Text Replacement | Detect and replace embedded text in the video | • Modify in-video text directly with a prompt | |
| 7 | Restyle | Scene Style Transfer | Transform the entire video into a different visual style | • Supports 3D, 2D, comic, ink painting, and other styles | |
{
"ErrCode": 0,
"ErrMsg": "success",
"Resp": {
"video_id": 0,
"credit":10
}
} {
"ErrCode": 0,
"ErrMsg": "string",
"Resp": {
"create_time": "string",
"id": 0,
"modify_time": "string",
"negative_prompt": "string",
"outputHeight": 0,
"outputWidth": 0,
"prompt": "string",
"resolution_ratio": 0,
"seed": 0,
"size": 0,
"status": 5,
"style": "string",
"url": "string"
}
} {
"ErrCode": 0,
"ErrMsg": "string",
"Resp": {
"create_time": "string",
"id": 0,
"modify_time": "string",
"negative_prompt": "string",
"outputHeight": 0,
"outputWidth": 0,
"prompt": "string",
"resolution_ratio": 0,
"seed": 0,
"size": 0,
"status": 1,
"style": "string",
"url": "string"
}
}| Model | Billing rule | 360p | 540p | 720p | 1080p |
|---|---|---|---|---|---|
| - | credits per 1s | 8 | 10 | 12 | - |