Seedance 2.5

ByteDance동영상 생성요청당구간별 요금공식가 대비 20% 절약

Doubao Seedance 2.5 asynchronous video generation. Supports text, image, video, and audio references; first/last frames; video editing and extension; native audio; optional content moderation; 480p/720p/1080p output; and automatic or 4-30 second duration.

가격

$0.216/초

엔드포인트

/videos

결과 전달 방식

비동기 작업 수명 주기

가용성

지금 사용 가능

API 문서

요청 구성 및 복사

이 모델이 받는 옵션을 고르세요. 아래 코드는 선택에 따라 바로 바뀝니다.

문서에서 단계별로 보기
POSThttps://www.aisplice.store/v1/videosBearer API key비동기 작업

옵션이 모델에 공개된 옵션만 표시됩니다.

# Requires curl and jq
API_KEY="${API_KEY:-YOUR_API_KEY}"

# 1. Submit once
SUBMITTED=$(curl --fail-with-body -sS https://www.aisplice.store/v1/videos \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: model-docs-$(date +%s)-$$" \\
  -d '{
  "model": "Seedance 2.5",
  "prompt": "A cinematic scene with careful composition",
  "nsfw_check": false,
  "duration": 5,
  "resolution": "720p",
  "metadata": {
    "generate_audio": true,
    "watermark": false,
    "output_format": "mp4",
    "return_last_frame": false
  },
  "size": "1:1"
}')
TASK_ID=$(printf '%s' "$SUBMITTED" | jq -r '.task_id // .id // empty')
if [ -z "$TASK_ID" ]; then
  printf '%s\n' "$SUBMITTED" >&2
  exit 1
fi
echo "task_id=$TASK_ID"

# 2. Poll until terminal
while true; do
  STATUS_JSON=$(curl --fail-with-body -sS \
    "https://www.aisplice.store/v1/videos/$TASK_ID" \
    -H "Authorization: Bearer $API_KEY")
  STATUS=$(printf '%s' "$STATUS_JSON" | jq -r '.status // empty' | tr '[:upper:]' '[:lower:]')
  echo "status=$STATUS"
  case "$STATUS" in
    completed|succeeded|success) break ;;
    failed|failure|cancelled|canceled)
      printf '%s\n' "$STATUS_JSON" | jq .
      exit 1
      ;;
  esac
  sleep 5
done

# 3. Fetch the final result
curl --fail-with-body -sS \
  "https://www.aisplice.store/v1/videos/$TASK_ID/content" \
  -H "Authorization: Bearer $API_KEY" | jq .
  1. 1작업 제출
  2. 2상태 폴링
  3. 3결과 가져오기

프로덕션에서는 공개 미디어 URL을 권장합니다. 먼저 로컬 파일을 업로드한 뒤 모델 요청에 public_url을 넣으세요. 큰 Base64 본문은 피하세요.

업로드 가이드 읽기

파라미터 레퍼런스

model
string필수

이 요청에 사용할 정확한 모델 식별자.

doubao-seedance-2.5
prompt
string필수

원하는 결과를 설명하는 지시문.

duration
integer선택

Output seconds; -1 lets Seedance choose automatically.

-1456789101112131415161718192021222324252627282930
resolution
string선택

요청할 출력 해상도.

480p720p1080p
size
string선택

First/last-frame and edit modes require adaptive.

adaptive21:916:94:31:13:49:16
images
string[]선택

Up to 30 image references. Use image_tail with exactly one first-frame image for first/last-frame mode.

videos
string[]선택

Up to 10 reference videos, each 2-30 seconds and no more than 30 seconds total.

응답 흐름

작업 상태, 최종 상태, 결과 응답 예시.

제출
{
  "id": "task_xxx",
  "task_id": "task_xxx",
  "object": "video",
  "model": "Seedance 2.5",
  "status": "queued"
}

대기 중

queued · submitted · in_progress · processing

성공

completed · succeeded · success

실패

failed · failure · cancelled · canceled

오류 및 프로덕션

재시도 규칙, 멱등성, 최소 프로덕션 체크리스트.

400 / 422

요청 필드나 지원되지 않는 옵션을 수정하세요. 그대로 재시도하지 마세요.

401

API 키가 있고 활성 상태이며 Bearer 토큰으로 전송되는지 확인하세요.

402

계정 잔액이 부족합니다.

409

Idempotency-Key가 처리 중이거나 다른 본문에 재사용되었습니다.

429

재시도하기 전에 Retry-After에 따라 백오프하세요.

5xx

지수 백오프로 재시도하고 원래 Idempotency-Key를 유지하세요.

  • 공개 모바일·브라우저 애플리케이션이라면 API 키를 서버에 두세요.
  • 과금되는 모든 비동기 요청에 고유한 Idempotency-Key를 설정하세요.
  • 재시작 후에도 폴링을 이어 갈 수 있도록 task_id를 저장하세요.
  • 모든 HTTP 요청에 타임아웃을 두고, 지원 요청 시 요청 ID를 함께 제공하세요.
  • 가격과 지원 옵션을 하드코딩하지 말고 실시간 모델 메타데이터를 읽으세요.

가격 및 요금 구간

공식가 대비 20% 절약

요청당 가격

$0.216/초

$0.27

구간별 요금

기본 가격 $0.216/초

구간별 요금 — 최종 가격은 요청한 옵션에 따라 달라집니다. 나열되지 않은 구간은 기본 가격으로 과금됩니다. 생성된 출력의 초 단위로 과금됩니다.

둘 중 하나가 적용됩니다. 참조 미디어가 없으면 텍스트→동영상 가격, 이미지·동영상·오디오가 첨부되면 참조 미디어 가격입니다. 두 해상도 가격은 합산되지 않습니다.

크기가격
  • 16:9×1$0.216/초
  • 1:1×1$0.216/초
  • 21:9×1$0.216/초
  • 3:4×1$0.216/초
  • 4:3×1$0.216/초
  • 9:16×1$0.216/초
  • adaptive×1$0.216/초
텍스트→동영상 해상도가격
  • 480p×0.444814814815$0.09608/초
  • 720p×1$0.216/초
  • 1080p×1.781851851852$0.38488/초
참조 미디어 동영상 해상도가격
  • 480p×0.266666666667$0.0576/초
  • 720p×0.6$0.1296/초
  • 1080p×1.064444444444$0.22992/초
길이가격
  • 4×4$0.864
  • 5×5$1.08
  • 6×6$1.296
  • 7×7$1.512
  • 8×8$1.728
  • 9×9$1.944
  • 10×10$2.16
  • 11×11$2.376
  • 12×12$2.592
  • 13×13$2.808
  • 14×14$3.024
  • 15×15$3.24
  • 16×16$3.456
  • 17×17$3.672
  • 18×18$3.888
  • 19×19$4.104
  • 20×20$4.32
  • 21×21$4.536
  • 22×22$4.752
  • 23×23$4.968
  • 24×24$5.184
  • 25×25$5.40
  • 26×26$5.616
  • 27×27$5.832
  • 28×28$6.048
  • 29×29$6.264
  • 30×30$6.48

여기 표시된 가격이 실제 과금 금액입니다 — 실패한 호출은 자동으로 환불됩니다.

관련 모델