API
If you're looking for an API, you can choose from your desired programming language.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import requests
import base64
# Use this function to convert an image file from the filesystem to base64
def image_file_to_base64(image_path):
with open(image_path, 'rb') as f:
image_data = f.read()
return base64.b64encode(image_data).decode('utf-8')
# Use this function to fetch an image from a URL and convert it to base64
def image_url_to_base64(image_url):
response = requests.get(image_url)
image_data = response.content
return base64.b64encode(image_data).decode('utf-8')
# Use this function to convert a list of image URLs to base64
def image_urls_to_base64(image_urls):
return [image_url_to_base64(url) for url in image_urls]
api_key = "YOUR_API_KEY"
url = "https://api.segmind.com/v1/pixverse-4.5-video"
# Request payload
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"
}
headers = {'x-api-key': api_key}
response = requests.post(url, json=data, headers=headers)
print(response.content) # The response is the generated image
Attributes
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.
Other Popular Models
fooocus
Fooocus enables high-quality image generation effortlessly, combining the best of Stable Diffusion and Midjourney.

sdxl1.0-txt2img
The SDXL model is the official upgrade to the v1.5 model. The model is released as open-source software

codeformer
CodeFormer is a robust face restoration algorithm for old photos or AI-generated faces.

sd2.1-faceswapper
Take a picture/gif and replace the face in it with a face of your choice. You only need one image of the desired face. No dataset, no training
