Seedance 1.5 Pro Serverless API
Seedance 1.5 Pro generates synchronized video and audio for dynamic storytelling and immersive content creation.
1import requests
2import json
3
4url = "https://api.segmind.com/v1/seedance-1.5-pro"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "first_frame_url": "https://segmind-resources.s3.amazonaws.com/input/2398ce6d-ab67-4c6f-9ef6-144d64fd7b34-first_frame.jpg",
12 "duration": 5,
13 "prompt": "A sleek black Porsche 911 on a coastal cliff road at golden hour - camera slowly orbits 90 degrees around the car revealing the vast ocean backdrop - cinematic smooth orbital camera movement - warm golden backlit glow with lens flares - engine ignition roar fading into crashing ocean waves and coastal wind",
14 "resolution": "720p",
15 "seed": 12345,
16 "camera_fixed": false,
17 "aspect_ratio": "16:9",
18 "generate_audio": true
19}
20
21response = requests.post(url, headers=headers, json=data)
22
23if response.status_code == 200:
24 result = response.json()
25 print(json.dumps(result, indent=2))
26else:
27 print(f"Error: {response.status_code}")
28 print(response.text) 1import requests
2import json
3
4url = "https://api.segmind.com/v1/seedance-1.5-pro"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "first_frame_url": "https://segmind-resources.s3.amazonaws.com/input/2398ce6d-ab67-4c6f-9ef6-144d64fd7b34-first_frame.jpg",
12 "duration": 5,
13 "prompt": "A sleek black Porsche 911 on a coastal cliff road at golden hour - camera slowly orbits 90 degrees around the car revealing the vast ocean backdrop - cinematic smooth orbital camera movement - warm golden backlit glow with lens flares - engine ignition roar fading into crashing ocean waves and coastal wind",
14 "resolution": "720p",
15 "seed": 12345,
16 "camera_fixed": false,
17 "aspect_ratio": "16:9",
18 "generate_audio": true
19}
20
21response = requests.post(url, headers=headers, json=data)
22
23if response.status_code == 200:
24 result = response.json()
25 print(json.dumps(result, indent=2))
26else:
27 print(f"Error: {response.status_code}")
28 print(response.text)API Endpoint
https://api.segmind.com/v1/seedance-1.5-proParameters
aspect_ratiorequiredstringSet video shape; 16:9 for widescreen, 9:16 for vertical.
"16:9""adaptive""16:9""4:3""1:1""3:4""9:16"durationrequiredintegerSet video length; 4 for shorts, 10 for extended scenes.
promptrequiredstringDefine animation content; example: Journey through a bustling cityscape.
resolutionrequiredstringChoose video quality; 720p for standard, 1080p for clear detail.
"720p""480p""720p""1080p"camera_fixedoptionalbooleanDecide on camera movement; enable for static scenes like landscapes.
falsefirst_frame_urloptionalstring (uri)Starting frame image for smooth transitions; use https://example.com/start.png for a bright start.
""generate_audiooptionalbooleanGenerate audio if needed; enable for dynamic content.
truelast_frame_urloptionalstring (uri)Ending frame image for coherent transitions; use https://example.com/end.png for a soft close.
""seedoptionalintegerEnsure consistency with a seed; select 12345 for reproducible scenes.
12345Range: 1 - 999999Response 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