ToAPIsToAPIs
doubao-seedance-1-5-pro

Doubao SeeDance 1.5 Pro 動画生成

Generate videos using ByteDance Doubao SeeDance 1.5 Pro model

POST
/v1/videos/generations

中国本土のユーザー向け: 中国本土のユーザーは https://toapis.cn を API エンドポイント(Base URL)としてご利用ください。本ドキュメント内の例では https://toapis.com を https://toapis.cn に置き換えてください。

  • ByteDance Doubao video generation model 1.5 Pro version
  • Supports text-to-video generation
  • Supports first frame / last frame control
  • Does not support reference image mode
  • Supports audio generation (1.5 Pro exclusive feature)
  • Async task management, query results by task ID

Authorizations

Authorizationstringヘッダー必須

All endpoints require Bearer Token authentication

Get your API Key from the API Key Management Page

Add to request header:

Authorization: Bearer YOUR_API_KEY

Body

modelstringボディ必須デフォルト: doubao-seedance-1-5-pro

Video generation model name

Available models:

  • doubao-seedance-1-5-pro - 1.5 Pro version, supports audio generation and first/last frame control
promptstringボディ必須

Video content description

Describe scenes, actions, and style in detail for better generation results

Example: "Sunset at the beach, golden sunlight on the sea, waves gently hitting the sand"

durationintegerボディデフォルト: 5

Video duration (seconds)

Supported range: 4 ~ 12 seconds

Default: 5

aspect_ratiostringボディデフォルト: 16:9

Video aspect ratio

Options:

  • 16:9 - Landscape
  • 9:16 - Portrait
  • 1:1 - Square
  • 4:3 - Traditional ratio
  • 3:4 - Vertical traditional ratio
  • 21:9 - Ultra-wide

Default: 16:9

Resolution and Aspect Ratio Combinations

ResolutionSupported Aspect RatiosNotes
480p16:9, 4:3, 1:1, 3:4, 9:16, 21:9All supported
720p16:9, 4:3, 1:1, 3:4, 9:16, 21:9All supported (default)
1080p16:9, 4:3, 1:1, 3:4, 9:16, 21:9All supported
image_urlsstring[]ボディ

Compatibility image URL array for first/last-frame image-to-video generation

Compatibility rules:

  • 1 image: treated as first_frame
  • 2 images: treated as first_frame and last_frame
  • More than 2 images: only the first two are used

We recommend using image_with_roles to explicitly specify first and last frames

Example: ["https://example.com/first.png", "https://example.com/last.png"]

image_urls and image_with_roles cannot be used together

image_with_rolesarrayボディ

Image array with roles for explicit first/last-frame control

Field 説明
urlstringボディ必須

Image URL

rolestringボディ必須

Image role

Options:

  • first_frame - First frame image, used as the starting frame (only one supported)
  • last_frame - Last frame image, used as the ending frame (only one supported)

Example:

[
  {"url": "https://example.com/first.png", "role": "first_frame"},
  {"url": "https://example.com/last.png", "role": "last_frame"}
]
  • image_urls and image_with_roles cannot be used together
  • Only one first frame and one last frame are supported
  • 1.5 Pro does not support the reference_image role. Use Seedance 2.0 if you need reference image control
metadataobjectボディ

Extended parameters

Field 説明
resolutionstringボディデフォルト: 720p

Video resolution

Options:

  • 480p - Standard definition
  • 720p - High definition (default)
  • 1080p - Full HD
seedintegerボディ

Seed integer for controlling generation randomness

Range: -1 ~ 2^32-1

The same seed can produce similar results, but exact output is not guaranteed

audiobooleanボディデフォルト: false

Whether to generate audio

When set to true, the video will include AI-generated accompanying audio

1.5 Pro exclusive feature

camerafixedbooleanボディデフォルト: false

Whether to keep the camera fixed

When set to true, the camera position remains fixed throughout the video

Differences from 1.0

Feature1.0 fast/quality1.5 Pro
Default resolution1080p720p
Supported resolutions480p/720p/1080p480p/720p/1080p
Duration range2-12s4-12s
Audio generationNot supportedSupported
Image control modereference single reference imagefirst_frame / last_frame frame mode

素材審査

画像を含むリクエストでは, 一部のチャネルが生成の送信前に画像を自動で審査します. 追加のパラメーターは不要で, 従来の画像フィールドに画像 URL を指定するだけです.

  • 受理されたリクエストはすぐに動画タスクを返します. 審査が必要な場合, タスクは queued のままとなり, リクエスト内の全素材が通過してから生成を送信します. 初回の審査には数分かかることがあります. 同じユーザーが同じチャネルで同じ URL を再利用すると審査結果も再利用されます.
  • 素材準備は 1 ラウンドあたり既定で最長 20 分です. 審査拒否または準備タイムアウトの場合, タスクは failed で終了し, 理由は error.message で確認できます. 審査を通過しなかった場合, 動画生成料金は発生しません.
  • 画像は公開 HTTP(S) URL で指定してください. Base64 とローカルパスは使えません. 画像は 30 MB 以内です. モデル本来の形式制限は変わりません.
  • 審査を行うチャネルは受理時に画像 URL を検証します. URL に認証情報が含まれる, または 2048 バイトを超える場合は, HTTP 400 (error.code は invalid_private_assets) を返します.
  • 素材は URL で識別されます. ファイル内容を変更した場合は新しい URL を使ってください.
  • 旧 asset:// 参照は廃止され, HTTP 400 を返します.

レスポンス

idstring

Unique task identifier for status queries

objectstring

Object type, always generation.task

modelstring

モデル name used

statusstring

Task status

  • queued - Queued for processing
  • in_progress - Processing
  • completed - Successfully completed
  • failed - Failed
progressinteger

Task progress percentage (0-100)

created_atinteger

Task creation timestamp (Unix timestamp)

metadataobject

Task metadata

リクエスト例

curl --request POST \
  --url https://toapis.com/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "doubao-seedance-1-5-pro",
    "prompt": "Sunset at the beach, golden sunlight on the sea, waves gently hitting the sand",
    "duration": 5,
    "aspect_ratio": "16:9",
    "metadata": {
      "resolution": "720p",
      "audio": true
    }
  }'
curl --request POST \
  --url https://toapis.com/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "doubao-seedance-1-5-pro",
    "prompt": "A cat chasing a snake through the grass while the camera tracks the motion",
    "image_with_roles": [
      {"url": "https://example.com/first.png", "role": "first_frame"}
    ],
    "metadata": {
      "resolution": "720p",
      "audio": true
    }
  }'
curl --request POST \
  --url https://toapis.com/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "doubao-seedance-1-5-pro",
    "prompt": "A girl spins beneath cherry blossoms and slowly comes to a stop at the end",
    "image_with_roles": [
      {"url": "https://example.com/first.png", "role": "first_frame"},
      {"url": "https://example.com/last.png", "role": "last_frame"}
    ],
    "duration": 5,
    "aspect_ratio": "9:16",
    "metadata": {
      "resolution": "720p",
      "audio": true
    }
  }'
import requests

response = requests.post(
    "https://toapis.com/v1/videos/generations",
    headers={
        "Authorization": "Bearer your-ToAPIs-key",
        "Content-Type": "application/json"
    },
    json={
        "model": "doubao-seedance-1-5-pro",
        "prompt": "Sunset at the beach, golden sunlight on the sea, waves gently hitting the sand",
        "duration": 5,
        "aspect_ratio": "16:9",
        "metadata": {
            "resolution": "720p",
            "audio": True
        }
    }
)

task = response.json()
print(f"Task ID: {task['id']}")
print(f"Status: {task['status']}")
const response = await fetch('https://toapis.com/v1/videos/generations', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer your-ToAPIs-key',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    model: 'doubao-seedance-1-5-pro',
    prompt: 'Sunset at the beach, golden sunlight on the sea, waves gently hitting the sand',
    duration: 5,
    aspect_ratio: '16:9',
    metadata: {
      resolution: '720p',
      audio: true
    }
  })
});

const task = await response.json();
console.log(`Task ID: ${task.id}`);
console.log(`Status: ${task.status}`);

レスポンス例

{
  "id": "task_vid_xyz789ghi012",
  "object": "generation.task",
  "model": "doubao-seedance-1-5-pro",
  "status": "queued",
  "progress": 0,
  "created_at": 1703884800,
  "metadata": {}
}