POST
javascript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 const axios = require('axios'); const api_key = "YOUR API-KEY"; const url = "https://api.segmind.com/v1/seedance-v1-lite-text-to-video"; const data = { "duration": 5, "aspect_ratio": "16:9", "prompt": "A whimsical underwater world thriving with marine life in kaleidoscope colors.", "resolution": "720p", "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); } })();
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


durationenum:int *

Select the length of the video in seconds. Use 5 seconds for faster rendering or standard quality outputs.

Allowed values:


aspect_ratioenum:str *

Defines the width to height ratio of the video. Use 16:9 for landscapes or 9:16 for vertical videos.

Allowed values:


promptstr *

Describe the scene or animation for the video. Try 'A whimsical underwater world thriving with marine life in kaleidoscope colors'.


resolutionenum:str *

Sets the video quality. Choose 720p for clearer visuals, suitable for larger displays.

Allowed values:


seedint ( default: 1 )

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.