Seedance 2.0 Video
Generate stunning videos with text prompts and reference images using Seedance 2.0 model with Pro, Fast, and Mini modes
Tool Overview
The Seedance 2.0 Video tool generates high-quality video content using ByteDance's Seedance 2.0 model. It supports text prompts, reference images (up to 6), flexible video duration (4-15 seconds), multiple aspect ratios, three resolution options (480P / 720P / 1080P), and three speed modes (Pro / Fast / Mini).
Tool Identifier
seedance20-video-api
Parameters
Required Parameters
At least one of prompt or media_urls must be provided.
prompt
- Type:
string - Description: Text description of the video content to guide AI video generation
- Example:
"A cat walking gracefully on a sandy beach at sunset"
media_urls
- Type:
string[] - Description: Reference media URLs (images, videos, or audio) to guide video generation
- Limits:
- Images: up to 6
- Videos: up to 3 (total duration must not exceed 15 seconds, each video must be at least 2 seconds)
- Audio: up to 2
- Example:
["https://example.com/image1.jpg", "https://example.com/video1.mp4", "https://example.com/audio1.mp3"]
Optional Parameters
duration
- Type:
number(optional) - Default:
5 - Range:
4-15(seconds) - Note: Values outside range will be rejected. String values are automatically parsed to numbers
aspect_ratio
- Type:
string(optional) - Default:
"16:9" - Supported Values:
"16:9"- Landscape format"9:16"- Portrait format"1:1"- Square format"4:3"- Classic format"3:4"- Portrait classic format
- Note: Invalid values default to
"16:9"
mode
- Type:
string(optional) - Default:
"pro" - Supported Values:
"pro"- Higher quality"fast"- Faster generation"mini"- Lower-cost generation
resolution
- Type:
string(optional) - Default:
"720p" - Supported Values:
"480p"- Lower resolution, cheapest option"720p"- Standard resolution (default)"1080p"- High resolution, highest quality
- Note: Invalid values default to
"720p"
seed
- Type:
number(optional) - Default:
-1(random) - Range:
-1to4294967295(2^32 - 1) - Description: Random seed integer for reproducibility. Using the same seed with the same parameters produces similar results. Set to
-1for random generation
Pricing
Credits are calculated as duration × cost per second. Cost per second depends on resolution and mode:
-
480P: Pro 140 credits/s, Fast 90 credits/s, Mini 72 credits/s
-
720P: Pro 250 credits/s, Fast 162 credits/s, Mini 120 credits/s
-
1080P: Pro 625 credits/s, Fast 405 credits/s, Mini 300 credits/s
-
Examples (720P):
- 5s Pro = 1,250 credits | 5s Fast = 810 credits | 5s Mini = 600 credits
- 10s Pro = 2,500 credits | 10s Fast = 1,620 credits | 10s Mini = 1,200 credits
- 15s Pro = 3,750 credits | 15s Fast = 2,430 credits | 15s Mini = 1,800 credits
-
Examples (1080P):
- 5s Pro = 3,125 credits | 5s Fast = 2,025 credits | 5s Mini = 1,500 credits
- 10s Pro = 6,250 credits | 10s Fast = 4,050 credits | 10s Mini = 3,000 credits
-
Examples (480P):
- 5s Pro = 700 credits | 5s Fast = 450 credits | 5s Mini = 360 credits
- 10s Pro = 1,400 credits | 10s Fast = 900 credits | 10s Mini = 720 credits
Request Examples
Text-to-Video (Pro Mode, 5 seconds, 1080P)
curl -X POST https://sjinn.ai/api/un-api/create_tool_task \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tool_type": "seedance20-video-api",
"input": {
"prompt": "A cat walking gracefully on a sandy beach at sunset, cinematic lighting",
"duration": 5,
"aspect_ratio": "16:9",
"mode": "pro",
"resolution": "1080p",
"seed": 42
}
}'
Media Reference + Text (Fast Mode, 8 seconds, 480P)
curl -X POST https://sjinn.ai/api/un-api/create_tool_task \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tool_type": "seedance20-video-api",
"input": {
"media_urls": ["https://example.com/reference.jpg"],
"prompt": "The character starts dancing with smooth movements",
"duration": 8,
"aspect_ratio": "9:16",
"mode": "fast",
"resolution": "480p"
}
}'
Using JavaScript
const response = await fetch('https://sjinn.ai/api/un-api/create_tool_task', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
tool_type: 'seedance20-video-api',
input: {
prompt: 'A cat walking gracefully on a sandy beach at sunset',
duration: 5,
aspect_ratio: '16:9',
mode: 'pro',
resolution: '720p',
},
}),
});
const result = await response.json();
console.log('Task ID:', result.data.task_id);
Using Python
import requests
url = 'https://sjinn.ai/api/un-api/create_tool_task'
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
data = {
'tool_type': 'seedance20-video-api',
'input': {
'prompt': 'A cat walking gracefully on a sandy beach at sunset',
'duration': 5,
'aspect_ratio': '16:9',
'mode': 'pro',
'resolution': '720p'
}
}
response = requests.post(url, json=data, headers=headers)
result = response.json()
print('Task ID:', result['data']['task_id'])
Response Examples
Success Response
{
"success": true,
"errorMsg": "",
"error_code": 0,
"data": {
"task_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
Error Response
{
"success": false,
"errorMsg": "Insufficient balance",
"error_code": 100
}
Best Practices
- Mode Selection: Use
miniorfastmode for quick prototyping, switch toprofor final high-quality output - Duration Selection: Start with shorter durations (4-5s) for testing, then increase. Cost scales linearly with duration
- Reference Media: Provide reference images, videos, or audio for more consistent and guided video generation
- Prompt + Media: Combine text prompts with reference media for the best results — the prompt guides the action while media defines the visual/audio style
- Generation Time: Video generation typically takes 2-8 minutes depending on duration and mode
