Veo 2 是 Google 的舊版正式發布(GA)影片模型,於 2024 年 12 月、在原生音訊加入 Veo 產品線之前發表。
- 輸入
- 文字 圖像
- 輸出
- 影片
- 價格
- $0.5/s
價格在同類中的位置
價格在 5 個同類模型中的位置
這條線標出這個模型的價格,在 Synthorai 的同類模型裡落在什麼位置;兩端分別是最便宜和最貴的模型。這裡列的是基礎價,批次、區域和快取寫入的折扣請見價格頁。
規格與限制
影片
| 解析度 | 720p |
|---|---|
| 影片長度 | 5–8 秒 連續範圍,不是固定選項。 |
| 影格率 | 24 fps |
| 長寬比 | 16:9 · 9:16 |
| 影片輸入 | 文生影片 · 首影格圖生影片(單張影像) |
| 格式 | .mp4 |
模型
| 模態 | 文字 + 圖像 → 影片 |
|---|
- Google 的舊版 Veo 2 GA 影片模型(2024 年 12 月公布,早於原生音訊加入 Veo 產品線):僅輸出無聲 720p,支援文生影片以及單張首影格圖生影片,24 fps,5-8 秒,16:9 與 9:16
- 沒有音軌,也不支援尾影格或參考圖輸入(這些能力要到 Veo 3.x 世代才出現)。
- Google 現在把 Veo 3.1 列為建議的替代品。
- Synthorai 透過非同步 /v1/videos 任務 API 提供它,並按輸出秒數計費(上游不回傳用量,因此時長依請求計量)。
30 秒上手 Veo 2
非同步任務 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": "veo-2.0-generate-001",
"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: "veo-2.0-generate-001",
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": "veo-2.0-generate-001",
"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": "veo-2.0-generate-001",
"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": "veo-2.0-generate-001",
"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).關於 Veo 2
- 它從文字提示詞或單張首影格影像生成無聲 .mp4 片段,720p、24 fps、5 到 8 秒、16:9 或 9:16,也是唯一一款時長為連續區間、而非後續世代固定 4、6 或 8 秒的 Veo。
- 它同樣早於影片延展,後者要到 Veo 3.1 才出現;而且它是產品線中唯一可以關閉提示詞改寫器的模型,因此提示詞會原封不動地送到模型,而不是先被展開。
- 共通的請求控制項同樣適用:每次呼叫最多四支影片、用於重現的種子、負向提示詞、影像驅動片段的運鏡選擇、輸入寬高比不符時在補邊與裁切之間的選擇,以及最佳化或無損壓縮,輸出中嵌入 Content Credentials。
- Google 現在把 Veo 3.1 列為建議的替代品,但 Veo 2 仍可用於既有工作流程與注重成本的無聲輸出。
- Synthorai 透過非同步 /v1/videos 任務 API 提供它,並按輸出秒計費(上游不回傳 usage,因此時長由請求計量)。
- 建立任務後輪詢,短任務可用 Prefer: wait。
常見問題
Veo 2 API 可以免費試用嗎?
可以,新帳號有 10 次試用呼叫和最高 $1 的免費額度,免綁卡。在綁定付款方式之前,就足夠你拿實際的工作負載試試 Veo 2。
Veo 2 最擅長什麼?
舊版 GA 模型,無聲 720p 輸出、文字與單張影像生影片、24 fps 下 5-8 秒。完整介紹請見「關於」一節,內容取自供應商官方的發布說明。
Veo 2 的價格是多少?
在 Synthorai 上,Veo 2 每生成一秒影片收費 $0.5。只有成功生成才計費:按用量計費,平台不加價,不需訂閱。
如何呼叫 Veo 2 API 生成影片?
對 Synthorai 的 /v1/videos 送出 POST 請求,帶上 model="veo-2.0-generate-001",建立一個非同步任務;接著輪詢任務狀態,或加上 Prefer: wait 標頭讓請求保持連線,直到拿到影片 URL。不需要供應商的 SDK。
如何開通 Veo 2?
把現有 OpenAI SDK 的 base_url 指向 "https://synthorai.io/v1",model 設為 "veo-2.0-generate-001" 就可以了。一把 API 金鑰就能呼叫閘道上的所有模型。
相關模型
比較
本頁每一個數值都摘錄自供應商自己的文件(連結見上方),並附上查核日期。價格是放在整個目錄裡比較;各家供應商定義不一樣的規格,只說明差異,不畫成圖表比較。這裡沒有任何數據是我們自己量測的,也不做評分。