seedance-2.0

seedance-2.0
视频ByteDanceSeedance 2.0seedance-2.0
字节跳动最新一代视频模型

Authentication

Base URL
https://host.docker.internal:8000
Authorization
Authorization: Bearer YOUR_API_KEY
Content-Type
application/json
Model name
seedance-2.0

Integration protocols

Why this protocol

适合需要提交任务并轮询状态的图像、视频、音频生成工作流。

Endpoint
POST/v1/jobs
Authorization: Bearer YOUR_API_KEYContent-Type: application/json

Request / Response JSON

// REQUEST
{
  "model": "seedance-2.0",
  "input": {
    "prompt": "Describe the output you want",
    "content": [],
    "first_frame_url": "https://example.com/demo.png",
    "last_frame_url": "https://example.com/demo.png",
    "reference_image_urls": [
      "https://example.com/demo.png"
    ],
    "reference_video_urls": [
      "https://example.com/demo.mp4"
    ],
    "reference_audio_urls": [
      "https://example.com/demo.mp3"
    ],
    "resolution": "720p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "ratio": "16:9",
    "generate_audio": true,
    "return_last_frame": false,
    "tools": [],
    "seed": -1
  }
}
// RESPONSE
{
  "id": "job_example",
  "object": "job",
  "status": "processing",
  "model": "seedance-2.0",
  "created": 1710000000,
  "request_id": "req_example"
}

Request / Response schema

// INPUT SCHEMA
FieldTypeRequired
promptstringY
contentarrayN
first_frame_urlimageN
last_frame_urlimageN
reference_image_urlsarrayN
reference_video_urlsarrayN
reference_audio_urlsarrayN
resolutionenumN
durationintegerN
aspect_ratioenumN
ratioenumN
generate_audiobooleanN
return_last_framebooleanN
toolsarrayN
seedintegerN
// RESPONSE SCHEMA
FieldTypeRequired
output.video_urlvideoN
output.last_frame_urlimageN
usage.total_tokensintegerN

Code examples

cURLrequest.sh
curl -X POST "https://host.docker.internal:8000/v1/jobs" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "model": "seedance-2.0",
  "input": {
    "prompt": "Describe the output you want",
    "content": [],
    "first_frame_url": "https://example.com/demo.png",
    "last_frame_url": "https://example.com/demo.png",
    "reference_image_urls": [
      "https://example.com/demo.png"
    ],
    "reference_video_urls": [
      "https://example.com/demo.mp4"
    ],
    "reference_audio_urls": [
      "https://example.com/demo.mp3"
    ],
    "resolution": "720p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "ratio": "16:9",
    "generate_audio": true,
    "return_last_frame": false,
    "tools": [],
    "seed": -1
  }
}'

# Upload reference cURL
curl -X POST "https://host.docker.internal:8000/v1/files/upload" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "kind=video" \
  -F "purpose=reference" \
  -F "file=@demo.mp4"

# Poll status cURL
# Replace job_example with the task_id returned by the submit call
curl -X GET "https://host.docker.internal:8000/v1/jobs/job_example" \
  -H "Authorization: Bearer YOUR_API_KEY"