1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const axios = require('axios');
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/pixverse-4.5-transition";
const data = {
"first_frame_url": "https://segmind-inference-inputs.s3.amazonaws.com/412d207c-d812-43cd-b0e3-bc02410bf77f-pixverse-transition-first-image-input.jpg",
"last_frame_url": "https://segmind-inference-inputs.s3.amazonaws.com/f42b68a9-4ece-4373-a57c-ee3b1f42020e-pixverse-transition-last-frame-input.jpg",
"duration": 5,
"prompt": "a dramatic sunset over the ocean, rich color gradient.",
"quality": "540p",
"seed": 56698,
"motion_mode": "normal"
};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();
URL for the starting image. Use high-resolution images for best results.
URL for the ending image. Opt for quality images for seamless transition.
Set video duration. Choose 5 seconds for quick transitions, 8 seconds for detailed transitions.
Allowed values:
Describe the animation theme. Try 'a dramatic sunset over the ocean, rich color gradient'.
Select video quality. Use 1080p for high-end productions, 540p for regular use.
Allowed values:
Seed for randomness. Choose any number to reproduce the effect.
min : 1,
max : 999999
Motion type for animation. Select 'fast' for rapid changes, 'normal' for smooth flow.
Allowed values:
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
PixVerse 4.5, an AI-powered model, revolutionizes image-to-video conversion by transforming still images into captivating videos. It enhances previous versions, offering creators seamless transitions and animations for dynamic content creation.
PixVerse 4.5 enables sophisticated image-to-video conversion with key capabilities:
First-Last Frame Transition: Facilitate seamless transformations between two images. This feature is ideal for character metamorphosis, aging effects, or gender transformations, providing a smooth visual flow.
Motion Customization: Control pacing with "normal" or "fast" motion options to suit diverse creative needs.
Duration Flexibility: Choose video lengths between 5 and 8 seconds, allowing for tailored storytelling durations.
Resolution Options: Ranging from 360p to 1080p, ensuring creators can match quality with available processing resources.
Prompt-Guided Generation: Text-based prompts steer the transformation process, giving users creative control over each transition.
To maximize PixVerse 4.5's potential, optimize text prompts by focusing on the transformation process and concise descriptions. For nuanced transitions, select an 8-second duration, and ensure your images share similar lighting and compositions for natural results. Utilize the PixVerse 4.5 API for seamless integration and creative enhancements.