Dreamina Seedance 2.0
廠商牌價,無平台加價,按用量計費。 以下為官方 list 價。已登入的使用者可在 /console/pricing 查看含工作空間折扣的實際價格。
30 秒用上 Dreamina Seedance 2.0
非同步任務 API:建立任務後輪詢,或用 Prefer: wait 讓請求保持開啟等待完成。POST /v1/videos
import time
import requests
BASE = "https://synthorai.io/v1"
HEADERS = {"Authorization": "Bearer sk-syn-..."}
# 1) create the video generation job (POST /v1/videos)
task = requests.post(
f"{BASE}/videos",
headers=HEADERS,
json={
"model": "dreamina-seedance-2-0-260128",
"prompt": "a watercolor lighthouse at dawn, waves rolling in, camera pulling back",
"resolution": "720p",
"duration": 5,
},
).json()
# 2) poll the job until it reaches a terminal state
while task["status"] in ("queued", "in_progress"):
time.sleep(5)
task = requests.get(f"{BASE}/videos/{task['id']}", headers=HEADERS).json()
# 3) completed → signed video URL (valid ~24h — download and store it promptly)
if task["status"] == "completed":
print(task["data"][0]["url"])
else:
print(task["error"])const HEADERS = {
Authorization: "Bearer sk-syn-...",
"Content-Type": "application/json",
};
interface VideoTask {
id: string;
status: "queued" | "in_progress" | "completed" | "failed" | "cancelled";
data?: Array<{ url: string }>;
error?: { code: string; message: string };
}
// 1) create the video generation job (POST /v1/videos)
const created = await fetch("https://synthorai.io/v1/videos", {
method: "POST",
headers: HEADERS,
body: JSON.stringify({
model: "dreamina-seedance-2-0-260128",
prompt: "a watercolor lighthouse at dawn, waves rolling in, camera pulling back",
resolution: "720p",
duration: 5,
}),
});
let task = (await created.json()) as VideoTask;
// 2) poll the job until it reaches a terminal state
while (task.status === "queued" || task.status === "in_progress") {
await new Promise((r) => setTimeout(r, 5000));
const res = await fetch(`https://synthorai.io/v1/videos/${task.id}`, { headers: HEADERS });
task = (await res.json()) as VideoTask;
}
// 3) completed → signed video URL (valid ~24h — download and store it promptly)
if (task.status === "completed") console.log(task.data?.[0]?.url);
else console.error(task.error);# Create the job; "Prefer: wait" holds the request up to 60s and returns the
# completed task when generation finishes in time (else the queued task).
curl https://synthorai.io/v1/videos \
-H "Authorization: Bearer sk-syn-..." \
-H "Content-Type: application/json" \
-H "Prefer: wait=60" \
-d '{
"model": "dreamina-seedance-2-0-260128",
"prompt": "a watercolor lighthouse at dawn, waves rolling in, camera pulling back",
"resolution": "720p",
"duration": 5
}'
# Still queued / in_progress? Poll until completed → data[0].url (valid ~24h).
curl https://synthorai.io/v1/videos/vid_9f2e8c1a4b7d \
-H "Authorization: Bearer sk-syn-..."package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"time"
)
const base = "https://synthorai.io/v1"
type videoTask struct {
ID string `json:"id"`
Status string `json:"status"`
Data []struct {
URL string `json:"url"`
} `json:"data"`
}
func call(method, url string, body []byte) (t videoTask) {
req, _ := http.NewRequest(method, url, bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer sk-syn-...")
req.Header.Set("Content-Type", "application/json")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
json.NewDecoder(resp.Body).Decode(&t)
return t
}
func main() {
// 1) create the video generation job (POST /v1/videos)
payload, _ := json.Marshal(map[string]any{
"model": "dreamina-seedance-2-0-260128",
"prompt": "a watercolor lighthouse at dawn, waves rolling in, camera pulling back",
"resolution": "720p",
"duration": 5,
})
task := call("POST", base+"/videos", payload)
// 2) poll the job until it reaches a terminal state
for task.Status == "queued" || task.Status == "in_progress" {
time.Sleep(5 * time.Second)
task = call("GET", base+"/videos/"+task.ID, nil)
}
// 3) completed → signed video URL (valid ~24h — download and store promptly)
if task.Status == "completed" {
fmt.Println(task.Data[0].URL)
}
}import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
// JDK built-in HttpClient — no extra dependency needed.
HttpClient http = HttpClient.newHttpClient();
// 1) create the job; "Prefer: wait=60" holds the request up to 60s and
// returns the completed task when generation finishes in time
HttpRequest create = HttpRequest.newBuilder(URI.create("https://synthorai.io/v1/videos"))
.header("Authorization", "Bearer sk-syn-...")
.header("Content-Type", "application/json")
.header("Prefer", "wait=60")
.POST(HttpRequest.BodyPublishers.ofString("""
{"model": "dreamina-seedance-2-0-260128",
"prompt": "a watercolor lighthouse at dawn, waves rolling in, camera pulling back",
"resolution": "720p", "duration": 5}"""))
.build();
String task = http.send(create, HttpResponse.BodyHandlers.ofString()).body();
System.out.println(task); // {"id":"vid_…","status":…} — completed → data[0].url
// 2) still queued / in_progress? Poll GET https://synthorai.io/v1/videos/{id} until the
// status turns completed, then download data[0].url (valid ~24h).關於 Dreamina Seedance 2.0
Dreamina Seedance 2.0 是字節跳動在 BytePlus ModelArk 上的旗艦影片生成模型,官方目錄將它列為主線影片模型,具備高保真音畫同步、高動作品質與情緒表現力。
- 它生成 4-15 秒、24 fps 的 .mp4 片段,解析度從 480p 直到 4K(10-bit 編碼),涵蓋六種寬高比,可從文字提示詞或首幀、首尾幀圖像出發,並透過 generate_audio 開關生成同步聲音。
- 官方系列教學稱 2.0 世代能高精度還原物品細節、音色、特效、風格與運鏡,同時保持角色特徵一致,並把多模態參考、影片編輯與影片延展列為該系列的能力。
- Synthorai 透過非同步 /v1/videos 任務 API 提供它——建立任務後輪詢,或用 Prefer: wait 讓請求保持開啟,直到取得帶簽名的影片 URL。
規格與限制
| 模態 | text + image → video |
| 特性 | vision |
| 備註 | Flagship of ByteDance's Dreamina Seedance 2.0 series, the catalog's mainline video generation model with high-fidelity audio-visual synchronization; text-to-video + first-frame / first-and-last-frame image-to-video; 480p-4k output (10-bit encoding at 4k), 24 fps, 4-15 s, six aspect ratios, .mp4; generate_audio for sound-on output; the series also lists multimodal reference (image/video/audio), video editing and video extension; version date 260128 encoded in the model id. |
常見問題
Dreamina Seedance 2.0 API 可以免費試用嗎?
可以,新帳號可獲得 10 次試用呼叫和最高 $1 的免費額度,無需信用卡。足以在新增付款方式之前,用真實工作負載試試 Dreamina Seedance 2.0。
Dreamina Seedance 2.0 最擅長什麼?
高保真音畫同步,以及480p 至 4K 輸出,4-15 秒和文字、首幀與首尾幀輸入。完整能力請見 About 一節,內容取自廠商官方發布說明。
Dreamina Seedance 2.0 的價格是多少?
在 Synthorai 上,Dreamina Seedance 2.0 依每百萬影片 token $7 計費(影片 token ≈ 寬 × 高 × 24fps × 秒數 ÷ 1024),僅成功生成才計費:按用量計費,無平台加價,無需訂閱。
如何呼叫 Dreamina Seedance 2.0 API 生成影片?
向 Synthorai 的 /v1/videos 發送 POST,model="dreamina-seedance-2-0-260128",建立一個非同步任務;接著輪詢任務狀態,或加上 Prefer: wait 標頭讓請求保持開啟等待,直到取得影片 URL。無需廠商 SDK。
如何開通 Dreamina Seedance 2.0?
把現有 OpenAI SDK 的 base_url 指向 "https://synthorai.io/v1",model 設為 "dreamina-seedance-2-0-260128" 即可。一組 API key 通用閘道上的所有模型。