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-video";
const data = {
"duration": 5,
"prompt": "An elongated, serpentine infinity pool hugs the edge of a dense forest. The vivid turquoise water shimmers under the sun, and waterfalls plunge down into the depths below. The surrounding wooden deck with loungers adds a touch of luxury to this surreal, natural - yet - manmade wonder.",
"negative_prompt": "No sudden movements, no fast zooms.",
"quality": "540p",
"seed": 56698,
"motion_mode": "normal",
"aspect_ratio": "16:9"
};
(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);
}
})();
Provide the URL of the image to be relit. Use a URL from cloud storage like S3.
Video duration in seconds (5 or 8; only 5 is allowed for fast mode or 1080p quality)
Allowed values:
Prompt describing the animation
Negative prompt (unwanted effects)
Video quality (360p, 540p, 720p, 1080p)
Allowed values:
Seed for random generation
min : 1,
max : 999999
Style (only for model=v3.5): anime, 3d_animation, clay, comic, cyberpunk
Allowed values:
Motion mode (normal, fast, --fast only available when duration=5; --quality=1080p does not support fast)
Allowed values:
Aspect ratio options: 16:9, 4:3, 1:1, 3:4, and 9:16. If a reference image is provided, its aspect ratio will be used instead, and the specified aspect_ratio will be ignored.
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 Video represents a remarkable advancement in AI-powered video generation, providing developers and creators the tools to transform static images and text prompts into engaging videos with ease. This model is tailored for those aiming to create compelling content optimized for the fast-paced world of social media. ### Discovering the Capabilities Pixverse 4.5 facilitates the conversion of still images into dynamic videos, imbuing motion into static scenes to capture viewer attention. The model also excels in text-to-video generation, allowing creators to narrate stories visually without the hassle of filming. Its extensive effects library includes trendy AI transformations like AI Kiss, SuitSwagger, and more, ideal for crafting viral content that resonates on platforms like TikTok and Instagram. Users can also expect natural, lifelike physics in their videos, maintaining character consistency and enhancing viewer immersion. ### Effective Utilization Tips To fully leverage Pixverse 4.5, creators should use precise and rich textual prompts and high-resolution images, ensuring outputs align closely with their vision. Combining image and text inputs can enhance creative control, producing more nuanced results. Experimenting with effect stacking, such as overlaying emotional gestures onto physical transformations, can yield multi-layered, captivating animations. For brand-centric content, photographers and marketers may prefer photorealistic output, whereas stylized visuals could benefit fantasy-themed projects. Additionally, utilizing video extension features can enlarge existing content without needing to reshoot, maintaining audience engagement effortlessly. Pixverse 4.5 provides a robust platform for those looking to create sophisticated, attention-grabbing videos, whether for social media marketing, storytelling, or digital art exploration.