Veo 2 是 Google 的旧版正式发布视频模型,于 2024 年 12 月发布,早于原生音频进入 Veo 产品线。
- 输入
- 文本 图像
- 输出
- 视频
- 价格
- $0.5/s
价格在同类中的位置
价格在 5 个同类模型中的位置
这条线显示该模型的价格,在 Synthorai 上同类模型里处于什么位置。两端标出了最便宜和最贵的那个。这里是基础价,批量、区域和缓存写入的折扣见价格页。
规格与限制
视频
| 分辨率 | 720p |
|---|---|
| 时长 | 5-8 s 连续区间,不是固定选项。 |
| 帧率 | 24 fps |
| 宽高比 | 16:9 · 9:16 |
| 视频输入 | 文生视频 · 首帧图生视频(单张图像) |
| 格式 | .mp4 |
模型
| 模态 | 文本 + 图像 → 视频 |
|---|
- Google 的旧版 Veo 2 GA 视频模型(2024 年 12 月发布,早于原生音频加入 Veo 产品线):仅 720p 无声输出,支持文生视频和单张首帧图生视频,24 fps,5-8 s,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 才有;它还是这条产品线中唯一可以关闭提示词改写的模型,因此提示词会原样送达模型,而不会先被扩写。
- 共有的请求控制项同样适用:每次调用最多四个视频、用于可复现的 seed、负向提示词、面向图生视频的镜头运动选择、输入宽高比不匹配时在填充与裁切之间的选择,以及优化或无损压缩,输出中嵌入内容凭证。
- Google 现在把 Veo 3.1 列为推荐的替代品,但 Veo 2 对既有工作流和成本敏感的无声输出仍然可用。
- Synthorai 通过异步 /v1/videos 任务 API 提供它,并按输出秒计费(上游不返回用量,因此时长按请求计量)。
- 创建任务并轮询,或对短任务使用 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 key 通用网关上的全部模型。
相关模型
对比
本页每个值都转录自厂商自己的文档(链接见上),并带有核对日期。价格在全目录范围内比较;各厂商定义不同的规格值,只说明差异而不作图表对比。此处没有任何由我们测量的数据,也不做评分。