Runbase

Command Palette

Search for a command to run...

ByteDance

Seedance 2.0 Fast

ID:bytedance/seedance-2-fast

API tạo video Seedance 2.0 Fast của ByteDance — phiên bản tối ưu tốc độ với tạo âm thanh, tỷ lệ khung hình tự động, và clip lên đến 15 giây.

Chuyển văn bản thành videoChuyển hình ảnh thành videoTạo âm thanhNhanh

Tổng quan

API tạo video Seedance 2.0 Fast của ByteDance — phiên bản tối ưu tốc độ với tạo âm thanh, tỷ lệ khung hình tự động, và clip lên đến 15 giây.

Xác thực

Tất cả request API yêu cầu khóa API hợp lệ được truyền qua header Authorization sử dụng scheme Bearer.

Bắt đầu nhanh

Thông tin xác thực

Đặt biến môi trường RUNBASE_API_KEY.

Shell
export RUNBASE_API_KEY=your-api-key

Tạo lượt chạy

Shell
curl -s https://runbase.net/api/v1/runs \
  -H "Authorization: Bearer $RUNBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "bytedance/seedance-2-fast",
    "input": {
      "prompt": "A cinematic product photo of a ceramic lamp"
    }
  }'

Lượt chạy

Các lượt chạy được xử lý bất đồng bộ. Gửi request, sau đó poll để lấy kết quả.

Tạo lượt chạy

Shell
curl -s https://runbase.net/api/v1/runs \
  -H "Authorization: Bearer $RUNBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "bytedance/seedance-2-fast",
    "input": { "prompt": "A cinematic product photo of a ceramic lamp" }
  }'

Lấy trạng thái lượt chạy

Shell
curl -s https://runbase.net/api/v1/runs/RUN_ID \
  -H "Authorization: Bearer $RUNBASE_API_KEY"

Lấy kết quả

Poll endpoint trạng thái cho đến khi status là "succeeded", sau đó đọc output.urls từ response.

Schema đầu vào

Tham sốLoạiBắt buộcMô tả
promptstringBắt buộcPrompt
aspect_ratiostringTùy chọnAspect ratioTùy chọn: 1:13:44:39:1616:921:9adaptive
resolutionstringTùy chọnResolutionTùy chọn: 480p720p
durationnumberTùy chọnDuration (seconds)
generate_audiobooleanTùy chọnGenerate audio
image_urlsstring[]Tùy chọnFirst frame image

Schema đầu ra

TrườngLoạiMô tả
urlsstring[]URL đầu ra đã tạo

Lỗi

API sử dụng mã trạng thái HTTP tiêu chuẩn để biểu thị thành công hoặc thất bại.

Mã trạng tháiMô tả
400Richiesta non valida - parametri mancanti o malformati
401Autenticazione fallita - chiave API mancante o non valida
402Crediti insufficienti
403Accesso negato - IP non consentito o limite di spesa della chiave API superato
404Esecuzione non trovata
429Limite di frequenza superato
500Errore interno del server