Seedance 1.5 Pro Serverless API

Seedance 1.5 Pro generates synchronized video and audio for dynamic storytelling and immersive content creation.

~98.62s
~$0.422
 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

POSThttps://api.segmind.com/v1/seedance-1.5-pro

Parameters

aspect_ratiorequired
string

Set video shape; 16:9 for widescreen, 9:16 for vertical.

Default: "16:9"
Allowed values :
"adaptive""16:9""4:3""1:1""3:4""9:16"
durationrequired
integer

Set video length; 4 for shorts, 10 for extended scenes.

Range: 4 - 12
promptrequired
string

Define animation content; example: Journey through a bustling cityscape.

resolutionrequired
string

Choose video quality; 720p for standard, 1080p for clear detail.

Default: "720p"
Allowed values :
"480p""720p""1080p"
camera_fixedoptional
boolean

Decide on camera movement; enable for static scenes like landscapes.

Default: false
first_frame_urloptional
string (uri)

Starting frame image for smooth transitions; use https://example.com/start.png for a bright start.

Default: ""
generate_audiooptional
boolean

Generate audio if needed; enable for dynamic content.

Default: true
last_frame_urloptional
string (uri)

Ending frame image for coherent transitions; use https://example.com/end.png for a soft close.

Default: ""
seedoptional
integer

Ensure consistency with a seed; select 12345 for reproducible scenes.

Default: 12345Range: 1 - 999999

Response Type

Returns: Video

Common Error Codes

The API returns standard HTTP status codes. Detailed error messages are provided in the response body.

400

Bad Request

Invalid parameters or request format

401

Unauthorized

Missing or invalid API key

403

Forbidden

Insufficient permissions

404

Not Found

Model or endpoint not found

406

Insufficient Credits

Not enough credits to process request

429

Rate Limited

Too many requests

500

Server Error

Internal server error

502

Bad Gateway

Service temporarily unavailable

504

Timeout

Request timed out