Prediction
pixverse/pixverse-v4Official model
ID
q27n49b2xdrm80cpp2wt06bw7c
Status
Succeeded
Source
Web
Total duration
Created
by @pixverse
Input
- style
- None
- effect
- 360° Microwave
- prompt
- 360 Microwave
- quality
- 1080p
- duration
- 5
- motion_mode
- normal
- aspect_ratio
- 16:9
- negative_prompt
{
"image": "https://replicate.delivery/pbxt/MyQqYdi6iuikpp2w7Odqbcn26N2PfYytAmHAbe8OQ8BDJN6F/0_1.webp",
"style": "None",
"effect": "360° Microwave",
"prompt": "360 Microwave",
"quality": "1080p",
"duration": 5,
"motion_mode": "normal",
"aspect_ratio": "16:9",
"negative_prompt": ""
}
Install Replicate’s Node.js client library:
npm install replicate
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run pixverse/pixverse-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
image: "https://replicate.delivery/pbxt/MyQqYdi6iuikpp2w7Odqbcn26N2PfYytAmHAbe8OQ8BDJN6F/0_1.webp",
style: "None",
effect: "360° Microwave",
prompt: "360 Microwave",
quality: "1080p",
duration: 5,
motion_mode: "normal",
aspect_ratio: "16:9",
negative_prompt: ""
};
const output = await replicate.run("pixverse/pixverse-v4", { input });
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:
pip install replicate
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:
import replicate
Run pixverse/pixverse-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"pixverse/pixverse-v4",
input={
"image": "https://replicate.delivery/pbxt/MyQqYdi6iuikpp2w7Odqbcn26N2PfYytAmHAbe8OQ8BDJN6F/0_1.webp",
"style": "None",
"effect": "360° Microwave",
"prompt": "360 Microwave",
"quality": "1080p",
"duration": 5,
"motion_mode": "normal",
"aspect_ratio": "16:9",
"negative_prompt": ""
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run pixverse/pixverse-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"input": {
"image": "https://replicate.delivery/pbxt/MyQqYdi6iuikpp2w7Odqbcn26N2PfYytAmHAbe8OQ8BDJN6F/0_1.webp",
"style": "None",
"effect": "360° Microwave",
"prompt": "360 Microwave",
"quality": "1080p",
"duration": 5,
"motion_mode": "normal",
"aspect_ratio": "16:9",
"negative_prompt": ""
}
}' \
https://api.replicate.com/v1/models/pixverse/pixverse-v4/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{
"completed_at": "2025-05-08T16:28:31.188336Z",
"created_at": "2025-05-08T16:27:41.675000Z",
"data_removed": false,
"error": null,
"id": "q27n49b2xdrm80cpp2wt06bw7c",
"input": {
"image": "https://replicate.delivery/pbxt/MyQqYdi6iuikpp2w7Odqbcn26N2PfYytAmHAbe8OQ8BDJN6F/0_1.webp",
"style": "None",
"effect": "360° Microwave",
"prompt": "360 Microwave",
"quality": "1080p",
"duration": 5,
"motion_mode": "normal",
"aspect_ratio": "16:9",
"negative_prompt": ""
},
"logs": "Using seed: 1366414856\nModerating content...\nImage size: 15.0KB\nModeration complete in 0.80sec\nImage size: 168.7KB\nGenerating video...\nGenerated video in 46.5sec\nDownloading 5979876 bytes\nDownloaded 5.70MB in 0.71sec\nCost calculation:\n Base units for 1080p: 120\n---------------------------\nTotal units: 120\n---------------------------",
"metrics": {
"predict_time": 49.505878068,
"total_time": 49.513336
},
"output": "https://replicate.delivery/xezq/MjkECDrKLexocyyo53fO3xl40scNxery8OOCKRCldfH9ajqSB/tmpknscq2an.mp4",
"started_at": "2025-05-08T16:27:41.682458Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-pojsy3eh3knqy4gutvbiyytq4loi53pyossrjlokmrkjmktcoumq",
"get": "https://api.replicate.com/v1/predictions/q27n49b2xdrm80cpp2wt06bw7c",
"cancel": "https://api.replicate.com/v1/predictions/q27n49b2xdrm80cpp2wt06bw7c/cancel"
},
"version": "hidden"
}
Generated in
Using seed: 1366414856
Moderating content...
Image size: 15.0KB
Moderation complete in 0.80sec
Image size: 168.7KB
Generating video...
Generated video in 46.5sec
Downloading 5979876 bytes
Downloaded 5.70MB in 0.71sec
Cost calculation:
Base units for 1080p: 120
---------------------------
Total units: 120
---------------------------