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
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/seedance-v1-lite-text-to-video"
# Request payload
data = {
"duration": 5,
"aspect_ratio": "16:9",
"prompt": "A whimsical underwater world thriving with marine life in kaleidoscope colors.",
"resolution": "720p",
"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
Select the length of the video in seconds. Use 5 seconds for faster rendering or standard quality outputs.
Allowed values:
Defines the width to height ratio of the video. Use 16:9 for landscapes or 9:16 for vertical videos.
Allowed values:
Describe the scene or animation for the video. Try 'A whimsical underwater world thriving with marine life in kaleidoscope colors'.
Sets the video quality. Choose 720p for clearer visuals, suitable for larger displays.
Allowed values:
A numerical seed for consistent randomization. Use any number for varied scene generations.
min : 1,
max : 999999
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.
Utilizing Seedance V1 Lite for Efficient Text-to-Video Generation
Seedance V1 Lite, crafted by ByteDance, represents a cutting-edge tool in the realm of text-to-video AI, offering significant potential for developers, creators, and executives looking to enhance their content production processes. Here's how you can effectively leverage its capabilities.
For Developers
The model's fast and efficient inference ensures near real-time video generation, making it an excellent fit for dynamic applications. With its accessible API and JavaScript SDK, integration into existing development pipelines becomes seamless. Leverage this for automating video creation workflows or incorporating it into larger creative tools. Detailed prompts crafted during development will ensure the model produces videos with the desired semantic content, minimizing the need for costly iterations.
For Creators
Seedance V1 Lite excels in generating high-quality video content from simple textual descriptions, accommodating the need for both rapid prototyping and finished products. Its multi-shot video generation capability enables the creation of cohesive video narratives, streamlining the storytelling process. Adjust customizable settings like resolution and aspect ratio according to platform needs (e.g., social media requires different specs than longer-form content). Experimenting with different prompt configurations can lead to innovative visual outcomes, enhancing creative projects such as storyboards, music videos, or marketing clips.
For Executives
This model serves as a strategic asset by quickly generating visual content that aligns with marketing efforts and business objectives. The relatively low cost per clip allows for scalable content production, offering an attractive ROI. Seedance V1 Lite’s robustness in prompt adherence ensures that the generated content meets specific brand and messaging guidelines without extensive oversight or manual editing.
Harness Seedance V1 Lite to transform textual concepts into compelling videos effortlessly, fostering innovation and efficiency in content creation across various domains.
Other Popular Models
idm-vton
Best-in-class clothing virtual try on in the wild

sdxl-inpaint
This model is capable of generating photo-realistic images given any text input, with the extra capability of inpainting the pictures by using a mask

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.
