安裝 belt CLI 技能:
npx skills add belt-sh/cli
Seedance 2.0 影片生成
透過 inference.sh CLI,使用字節跳動的 Seedance 2.0 生成含有同步音訊的影片。
快速開始
需要 inference.sh CLI (
belt)。安裝說明
belt login
belt app run bytedance/seedance-2-0 --input '{
"prompt": "a jazz band performing in a dimly lit club",
"generate_audio": true
}'
模型
| 模型 | 應用程式 ID | 最適合 |
|---|---|---|
| Seedance 2.0 | bytedance/seedance-2-0 | 最佳品質,最高 1080p |
| Seedance 2.0 Fast | bytedance/seedance-2-0-fast | 生成更快,最高 720p |
| Seedance 2.0 Studio | bytedance/seedance-2-0-studio | 品質 + 私有資產庫以維持角色一致性 |
| Seedance 2.0 Studio Fast | bytedance/seedance-2-0-studio-fast | 快速 + 私有資產庫以維持角色一致性 |
所有模型皆支援文字轉影片、圖片轉影片、多模態參考素材轉影片,以及同步音訊生成。Studio 變體會自動將參考圖片上傳至 BytePlus 私有虛擬肖像庫,以強化角色一致性,特別適用於臉部與品牌角色。
模式
模型會根據您的輸入決定生成模式。這些模式互斥——請使用第一幀/最後一幀或參考輸入,不可同時使用兩者。
| 模式 | 輸入 | 說明 |
|---|---|---|
| 文字轉影片 | 僅 prompt | 從文字描述生成影片 |
| 圖片轉影片 | prompt + image | 將靜態圖片(第一幀)製作成動畫 |
| 第一+最後一幀 | prompt + image + end_image | 控制開始與結束幀 |
| 多模態參考 | prompt + reference_images/reference_videos/reference_audios | 使用參考素材引導生成 |
範例
文字轉影片(含音訊)
belt app run bytedance/seedance-2-0 --input '{
"prompt": "ocean waves crashing on rocks during a storm, dramatic cinematic shot",
"generate_audio": true,
"duration": 10,
"ratio": "16:9"
}'
快速模式(較便宜)
belt app run bytedance/seedance-2-0-fast --input '{
"prompt": "a butterfly landing on a flower in slow motion",
"generate_audio": true
}'
圖片轉影片
將靜態圖片製作成動畫影片:
belt app run bytedance/seedance-2-0 --input '{
"image": "https://your-image.jpg",
"prompt": "gentle camera movement, leaves rustling in the wind",
"generate_audio": true
}'
圖片轉影片(含開始與結束幀)
belt app run bytedance/seedance-2-0 --input '{
"image": "https://start-frame.jpg",
"end_image": "https://end-frame.jpg",
"prompt": "smooth transition between scenes",
"generate_audio": true
}'
多圖參考
使用多張參考圖片來引導角色外觀、服裝與場景元素:
belt app run bytedance/seedance-2-0 --input '{
"prompt": "The girl from Image 1 wearing the outfit from Image 2 walks through the cafe from Image 3",
"reference_images": [
"https://character-portrait.jpg",
"https://outfit-reference.jpg",
"https://cafe-scene.jpg"
],
"generate_audio": true,
"duration": 8
}'
影片編輯(替換元素)
belt app run bytedance/seedance-2-0 --input '{
"prompt": "Replace the perfume in Video 1 with the face cream from Image 1, preserving all original motions and camera work",
"reference_images": ["https://face-cream.jpg"],
"reference_videos": ["https://original-video.mp4"],
"generate_audio": true
}'
影片擴展(拼接片段)
belt app run bytedance/seedance-2-0 --input '{
"prompt": "Video 1 transitions smoothly into Video 2, then the camera enters the painting from Video 3",
"reference_videos": [
"https://clip1.mp4",
"https://clip2.mp4",
"https://clip3.mp4"
],
"generate_audio": true,
"duration": 8
}'
參考素材(含音訊)
belt app run bytedance/seedance-2-0 --input '{
"prompt": "The musician from Image 1 performs the song from Audio 1, voice style referenced from Audio 1",
"reference_images": ["https://musician.jpg"],
"reference_audios": ["https://music.mp3"],
"generate_audio": true
}'
Studio 模式(角色一致性)
Studio 變體會將圖片上傳至 BytePlus 的私有資產庫,以強化臉部/角色一致性:
belt app run bytedance/seedance-2-0-studio --input '{
"prompt": "The person in Image 1 smiles at the camera, golden hour lighting, cinematic",
"reference_images": ["https://portrait.jpg"],
"safety_identifier": "user-abc123",
"generate_audio": true
}'
產品廣告(多參考素材)
belt app run bytedance/seedance-2-0 --input '{
"prompt": "First-person POV product ad. Opening frame is Image 1, hand picks up the product. Camera pushes into close-up showing details. Use the camera movement style from Video 1. Background music from Audio 1.",
"reference_images": ["https://product-hero.jpg", "https://product-detail.jpg"],
"reference_videos": ["https://camera-style.mp4"],
"reference_audios": ["https://bgm.mp3"],
"generate_audio": true,
"ratio": "9:16",
"duration": 11
}'
提示詞指南
在提示詞中使用類型 + 索引來參考素材:Image 1、Image 2、Video 1、Audio 1。索引是該類型在您提供的陣列中的位置。請勿在提示詞中使用資產 ID。
多模態參考公式:
- 圖片參考:「參考 [Image N] 中的 [主體] 來生成 [場景],保持 [主體] 一致」
- 影片參考:「參考 [Video N] 中的 [攝影機運動/動作]」
- 音訊參考:「[角色] 說:[對話],語音風格參考自 [Audio N]」
影片編輯公式:
- 新增:「在 [Video N] 的 [時間點] 加入 [元素]」
- 移除:「移除 [Video N] 中的 [元素],其餘保持不變」
- 修改:「將 [Video N] 中的 [元素] 替換為 [新元素]」
影片擴展公式:
- 向前擴展:「在 [Video N] 之後生成內容:[描述]」
- 向後擴展:「延伸 [Video N] 的開頭:[描述]」
- 拼接:「[Video 1] + [轉場] + 接著 [Video 2]」
參數
| 參數 | 類型 | 預設值 | 說明 |
|---|---|---|---|
prompt | string | 必填 | 影片的文字描述 |
generate_audio | boolean | true | 生成同步音訊 |
duration | integer | 5 | 持續時間(秒),4-15,或 -1 自動 |
ratio | enum | adaptive | 21:9、16:9、4:3、1:1、3:4、9:16 或 adaptive |
resolution | enum | 720p | 480p、720p、1080p(Fast 僅限 480p、720p) |
seed | integer | -1 | 重現性種子(-1 為隨機) |
watermark | boolean | false | 在輸出中加入浮水印 |
safety_identifier | string | - | 用於安全政策的唯一終端使用者識別碼(最長 64 個字元,建議使用使用者 ID 的雜湊) |
image | file | - | 第一幀圖片(與參考輸入互斥) |
end_image | file | - | 最後一幀圖片(需要 image) |
reference_images | file[] | - | 參考圖片,最多 9 張(與 image/end_image 互斥) |
reference_videos | file[] | - | 參考影片,最多 3 段。每段最長 15 秒,總長最長 15 秒。mp4/mov |
reference_audios | file[] | - | 參考音訊,最多 3 段。每段最長 15 秒,總長最長 15 秒。wav/mp3。至少需要一張圖片或一段影片 |
定價
| 模型 | 定價 |
|---|---|
| Seedance 2.0 | $4.30-$7.70/M tokens(依解析度與輸入類型而異) |
| Seedance 2.0 Fast | $3.30-$5.60/M tokens |
Token 公式:(width x height x fps x duration) / 1024
搜尋 Seedance 應用程式
belt app search "seedance"
相關技能
# 完整平台技能(所有應用程式)
npx skills add inference-sh/skills@infsh-cli
# 所有影片生成模型
npx skills add inference-sh/skills@ai-video-generation
# Google Veo
npx skills add inference-sh/skills@google-veo
# 圖片生成(用於圖片轉影片)
npx skills add inference-sh/skills@ai-image-generation
# AI 虛擬角色與唇形同步
npx skills add inference-sh/skills@ai-avatar-video
瀏覽所有影片應用程式:belt app list --category video