Seedance 1.0 lite t2v

Seedance V1 Lite transforms text into high-quality videos, streamlining content creation for diverse applications.

~46.95s
$0.091 - $0.450 per generation
 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

POSThttps://api.segmind.com/v1/seedance-v1-lite-text-to-video

Parameters

aspect_ratiorequired
string

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

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

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

Default: 5
Allowed values :
510
promptrequired
string

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

resolutionrequired
string

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

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

Whether to fix the camera position.

Default: false
seedoptional
integer

A numerical seed for consistent randomization. Use any number for varied scene generations.

Range: 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