Seedance 1.0 Pro
ID:
bytedance/seedance-1-proByteDance 的 Seedance 1.0 Pro 影片產生 API — 高保真電影級影片,支援多鏡頭轉場,720p 與 1080p 解析度。
文字轉影片圖片轉影片多鏡頭1080p
概覽
ByteDance 的 Seedance 1.0 Pro 影片產生 API — 高保真電影級影片,支援多鏡頭轉場,720p 與 1080p 解析度。
驗證
所有 API 請求都需要透過 Authorization 標頭以 Bearer 方式傳遞有效的 API 金鑰。
快速開始
憑證
設定 RUNBASE_API_KEY 環境變數。
Shell
export RUNBASE_API_KEY=your-api-key建立執行
Shell
curl -s https://runbase.net/api/v1/runs \
-H "Authorization: Bearer $RUNBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bytedance/seedance-1-pro",
"input": {
"prompt": "A cinematic product photo of a ceramic lamp"
}
}'執行紀錄
執行為非同步處理。提交請求後,輪詢取得結果。
建立執行
Shell
curl -s https://runbase.net/api/v1/runs \
-H "Authorization: Bearer $RUNBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bytedance/seedance-1-pro",
"input": { "prompt": "A cinematic product photo of a ceramic lamp" }
}'取得執行狀態
Shell
curl -s https://runbase.net/api/v1/runs/RUN_ID \
-H "Authorization: Bearer $RUNBASE_API_KEY"取得結果
輪詢狀態端點,直到 status 為 "succeeded",然後從回應中讀取 output.urls。
輸入結構
| 參數 | 類型 | 必填 | 說明 |
|---|---|---|---|
| prompt | string | 必填 | Prompt |
| aspect_ratio | string | 選填 | Aspect ratio選項: 16:99:164:33:41:121:9 |
| resolution | string | 選填 | Resolution選項: 720p1080p |
| duration | string | 選填 | Duration選項: 510 |
| image_urls | string[] | 選填 | Source image |
輸出結構
| 欄位 | 類型 | 說明 |
|---|---|---|
| urls | string[] | 產生的輸出 URL |
錯誤
API 使用標準 HTTP 狀態碼表示成功或失敗。
| 狀態碼 | 說明 |
|---|---|
| 400 | 無效請求 - 缺少或格式錯誤的參數 |
| 401 | 驗證失敗 - 缺少或無效的 API 金鑰 |
| 402 | 點數不足 |
| 403 | 禁止存取 - IP 不被允許或 API 金鑰消費上限已超過 |
| 404 | 找不到執行紀錄 |
| 429 | 超過速率限制 |
| 500 | 內部伺服器錯誤 |

