Seedance 1.0 lite t2v
Seedance V1 Lite transforms text into high-quality videos, streamlining content creation for diverse applications.
1import requests
2import json
3
4url = "https://api.segmind.com/v1/seedance-v1-lite-text-to-video"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "duration": 5,
12 "aspect_ratio": "16:9",
13 "prompt": "A whimsical underwater world thriving with marine life in kaleidoscope colors.",
14 "resolution": "720p",
15 "seed": 56698,
16 "camera_fixed": false
17}
18
19response = requests.post(url, headers=headers, json=data)
20
21if response.status_code == 200:
22 result = response.json()
23 print(json.dumps(result, indent=2))
24else:
25 print(f"Error: {response.status_code}")
26 print(response.text) 1import requests
2import json
3
4url = "https://api.segmind.com/v1/seedance-v1-lite-text-to-video"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "duration": 5,
12 "aspect_ratio": "16:9",
13 "prompt": "A whimsical underwater world thriving with marine life in kaleidoscope colors.",
14 "resolution": "720p",
15 "seed": 56698,
16 "camera_fixed": false
17}
18
19response = requests.post(url, headers=headers, json=data)
20
21if response.status_code == 200:
22 result = response.json()
23 print(json.dumps(result, indent=2))
24else:
25 print(f"Error: {response.status_code}")
26 print(response.text)API Endpoint
https://api.segmind.com/v1/seedance-v1-lite-text-to-videoParameters
aspect_ratiorequiredstringDefines the width to height ratio of the video. Use 16:9 for landscapes or 9:16 for vertical videos.
"16:9""16:9""4:3""1:1""3:4""9:16"durationrequiredintegerSelect the length of the video in seconds. Use 5 seconds for faster rendering or standard quality outputs.
5510promptrequiredstringDescribe the scene or animation for the video. Try 'A whimsical underwater world thriving with marine life in kaleidoscope colors'.
resolutionrequiredstringSets the video quality. Choose 720p for clearer visuals, suitable for larger displays.
"720p""480p""720p"camera_fixedoptionalbooleanWhether to fix the camera position.
falseseedoptionalintegerA numerical seed for consistent randomization. Use any number for varied scene generations.
Response Type
Returns: Video
Common Error Codes
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
Bad Request
Invalid parameters or request format
Unauthorized
Missing or invalid API key
Forbidden
Insufficient permissions
Not Found
Model or endpoint not found
Insufficient Credits
Not enough credits to process request
Rate Limited
Too many requests
Server Error
Internal server error
Bad Gateway
Service temporarily unavailable
Timeout
Request timed out