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-text2video";
const data = {
"aspect_ratio": "16:9",
"duration": 5,
"prompt": "Above the storm-lashed clouds, two ancient deities hover, their golden and silver armor glinting in the ethereal light. Lightning cracks between them as they collide with godlike force, sending shockwaves across the heavens. A camera tilt follows their movement as they battle in midair—each strike carving fissures into the sky itself. The clouds swirl into a divine tempest, fragments of shattered celestial weapons raining down upon a mortal world that watches in terror. The scale is immense—wide, sweeping shots emphasize the sheer power of their conflict.",
"negative_prompt": "No sudden movements, no fast zooms.",
"quality": "540p",
"motion_mode": "normal",
"seed": 56698
};
(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);
}
})();
Aspect ratio (16:9, 4:3, 1:1, 3:4, 9:16)
Allowed values:
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:
Motion mode (normal, fast, --fast only available when duration=5; --quality=1080p does not support fast)
Allowed values:
Seed for random generation
min : 1,
max : 99999
Style (only for model=v3.5): anime, 3d_animation, clay, comic, cyberpunk
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 is an advanced AI-powered text-to-video model designed for content creators, educators, and marketers seeking to effortlessly transform textual ideas into engaging video content. This innovative tool distinguishes itself through its robust customization options, enabling users to generate high-quality videos without requiring technical expertise or extensive video editing skills. Pixverse focuses on empowering individuals and businesses to quickly and easily produce dynamic visual narratives.
Effortless Text-to-Video Creation - Simply input text prompts describing your desired video scenes, and Pixverse will intelligently generate a corresponding video, streamlining the content creation process.
Extensive Style Customization - Tailor the visual aesthetic of your videos by choosing from a variety of styles, including realistic, anime, and 3D animation, ensuring the output aligns with your creative vision.
Precise Control Over Video Parameters - Fine-tune your video's duration and speed to match your specific needs, allowing for perfectly paced content delivery.
Refined Output with Negative Prompts - Exclude unwanted elements from your generated videos by utilizing negative prompts, ensuring a more accurate and tailored result that meets your exact specifications.
Versatile Image-to-Video Animation - Transform static images into dynamic videos by uploading them and specifying desired motion details and stylistic preferences through intuitive prompts.
Marketing and Advertising Campaigns - Develop compelling promotional videos from product descriptions or marketing copy to effectively showcase offerings and engage potential customers across various digital channels.
Educational Content Creation - Transform textual learning materials, such as blog posts or lesson plans, into engaging and visually appealing videos to enhance student understanding and retention.
Social Media Engagement and Growth - Produce dynamic and attention-grabbing short videos for platforms like TikTok, Instagram Reels, and YouTube Shorts to increase audience engagement and expand reach.
Content Summarization and Repurposing - Convert lengthy articles or reports into concise video summaries, making information more accessible and consumable for wider audiences.
AI-Generated Storytelling and Prototyping - Quickly visualize narrative ideas and create preliminary versions of movie trailers or animated sequences to aid in creative development and pitching.
Pixverse's powerful AI capabilities democratize video creation, empowering users to effortlessly produce high-quality visual content from simple text prompts. By offering extensive customization and versatile applications, Pixverse text to video provides a valuable solution for anyone looking to bring their textual ideas to life in a dynamic and engaging format.