seedance2.0-mini
seedance2.0-mini
비디오ByteDanceSeedance 2.0-miniseedance2.0-mini

Seedance 2.0-mini

인증

Base URL
https://api.dreamtoai.com
Authorization
Authorization: Bearer YOUR_API_KEY
Content-Type
application/json
모델 이름 (model)
seedance2.0-mini

연동 프로토콜

이 프로토콜을 선택하는 이유

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

엔드포인트 URL
POST/v1/jobs
Authorization: Bearer YOUR_API_KEYContent-Type: application/json

요청 / 응답 JSON

요청
{
  "model": "seedance2.0-mini",
  "input": {
    "prompt": "电影感街头运镜,一辆跑车穿过雨夜霓虹街道",
    "first_frame_url": "https://example.com/first.png",
    "last_frame_url": "https://example.com/last.png",
    "reference_image_urls": [
      "https://example.com/ref.png"
    ],
    "reference_video_urls": [
      "https://example.com/ref.mp4"
    ],
    "resolution": "720p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "seed": 12345,
    "callback_url": "https://example.com/webhook",
    "channel": "byte2.0"
  }
}
응답
{
  "id": "job_example",
  "object": "job",
  "status": "processing",
  "model": "seedance2.0-mini",
  "created": 1710000000,
  "request_id": "req_example"
}

요청 / 응답 필드

요청 필드
필드타입필수
promptstringY
first_frame_urlimageN
last_frame_urlimageN
reference_image_urlsarrayN
reference_video_urlsarrayN
resolutionenumN
durationnumberN
aspect_ratioenumN
seedintegerN
callback_urlstringN
channelstringN
응답 필드
필드타입필수
idstringN
statusenumN
modelstringN
output.videos[].urlvideoN
output.videos[].durationnumberN

코드 예제

cURLrequest.sh
curl -X POST "https://api.dreamtoai.com/v1/jobs" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "model": "seedance2.0-mini",
  "input": {
    "prompt": "电影感街头运镜,一辆跑车穿过雨夜霓虹街道",
    "first_frame_url": "https://example.com/first.png",
    "last_frame_url": "https://example.com/last.png",
    "reference_image_urls": [
      "https://example.com/ref.png"
    ],
    "reference_video_urls": [
      "https://example.com/ref.mp4"
    ],
    "resolution": "720p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "seed": 12345,
    "callback_url": "https://example.com/webhook",
    "channel": "byte2.0"
  }
}'

# 참조 파일 업로드 cURL
curl -X POST "https://api.dreamtoai.com/v1/files/upload" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "kind=video" \
  -F "purpose=reference" \
  -F "[email protected]"

# 작업 상태 조회 cURL
# job_example을 제출 응답이 반환한 task_id로 바꾸세요
curl -X GET "https://api.dreamtoai.com/v1/jobs/job_example" \
  -H "Authorization: Bearer YOUR_API_KEY"