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
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')
api_key = "YOUR_API_KEY"
url = "https://api.segmind.com/v1/pixverse-text2video"
# Request payload
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
}
headers = {'x-api-key': api_key}
response = requests.post(url, json=data, headers=headers)
print(response.content) # The response is the generated image
Attributes
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 Text to Video
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.
Key Features of Pixverse Text to Video
-
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.
Use Cases
-
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.
Other Popular Models
sdxl-img2img
SDXL Img2Img is used for text-guided image-to-image translation. This model uses the weights from Stable Diffusion to generate new images from an input image using StableDiffusionImg2ImgPipeline from diffusers

sdxl-controlnet
SDXL ControlNet gives unprecedented control over text-to-image generation. SDXL ControlNet models Introduces the concept of conditioning inputs, which provide additional information to guide the image generation process

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
