SJinn
Seedance 2.0 Video

Seedance 2.0 Video

Generate stunning videos with text prompts and reference images using Seedance 2.0 model with Pro and Fast 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 two speed modes (Pro / Fast).

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

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"

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

  • 720P: Pro 250 credits/s, Fast 162 credits/s

  • 1080P: Pro 625 credits/s, Fast 405 credits/s

  • Examples (720P):

    • 5s Pro = 1,250 credits | 5s Fast = 810 credits
    • 10s Pro = 2,500 credits | 10s Fast = 1,620 credits
    • 15s Pro = 3,750 credits | 15s Fast = 2,430 credits
  • Examples (1080P):

    • 5s Pro = 3,125 credits | 5s Fast = 2,025 credits
    • 10s Pro = 6,250 credits | 10s Fast = 4,050 credits
  • Examples (480P):

    • 5s Pro = 700 credits | 5s Fast = 450 credits
    • 10s Pro = 1,400 credits | 10s Fast = 900 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"
    }
  }'

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

  1. Mode Selection: Use fast mode for quick prototyping, switch to pro for final high-quality output
  2. Duration Selection: Start with shorter durations (4-5s) for testing, then increase. Cost scales linearly with duration
  3. Reference Media: Provide reference images, videos, or audio for more consistent and guided video generation
  4. Prompt + Media: Combine text prompts with reference media for the best results — the prompt guides the action while media defines the visual/audio style
  5. Generation Time: Video generation typically takes 2-8 minutes depending on duration and mode

Related Links