Google
· 发布于 2025-10-16
Veo 3.1 Fast
Veo 3.1 Fast is Google’s fast and cost-efficient video generation model, delivering high-quality video with synchronized audio from text or image prompts. It provides faster generation than Veo 3.1 while maintaining strong visual quality, with support for frame conditioning, multiple resolutions, flexible aspect ratios, and SynthID watermarking for production-ready creative workflows.
google/veo3.1-fast-preview 官方示例
输入
提示词
特写:两个人盯着墙上的神秘图画,手电筒的光芒闪烁不定。女人看着他,兴奋地低声说:“你发现了什么?”,男人低声说:“一定是这个。这就是密码。”
输出
参数说明
由模型输入 Schema 解析| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
prompt必填 | string | — | 提示词 |
negative_prompt | string | — | 反向提示词 |
aspect_ratio | string | 16:9 | 视频宽高比 |
duration_seconds | integer | 8 | 视频时长(秒) |
resolution | string | 720p | 分辨率 |
generate_audio | boolean | — | 是否生成音频 |
enhance_prompt | boolean | true | 是否使用Gemini优化提示词 |
person_generation | string | allow_adult | 人物生成控制 |
sample_count | integer | 1 | 采样数量 |
seed | integer | -1 | 随机种子 |
image | string | — | 输入图片Google Cloud Storage URI |
reference_images | array | — | 最多3张素材图片或1张风格图片 |
storage_uri | string | — | Google Cloud Storage 存储 URI |
last_frame必填 | string | — | 结束帧图片URL或GCS URI |
接入示例
# 提交任务
curl https://router-integration.test.cogfoundry.ai/api/v1/tasks/generations \
-H "Authorization: Bearer $MODEL_CENTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/veo3.1-fast-preview",
"aspect_ratio": "16:9",
"duration_seconds": 8,
"enhance_prompt": true,
"generate_audio": true,
"person_generation": "allow_adult",
"prompt": "特写:两个人盯着墙上的神秘图画,手电筒的光芒闪烁不定。女人看着他,兴奋地低声说:“你发现了什么?”,男人低声说:“一定是这个。这就是密码。” ",
"resolution": "720p",
"sample_count": 1
}'
# 轮询结果(REQUEST_ID 来自上一步返回的 data.request_id)
curl https://router-integration.test.cogfoundry.ai/api/v1/tasks/generations/REQUEST_ID \
-H "Authorization: Bearer $MODEL_CENTER_API_KEY" import requests
BASE = "https://router-integration.test.cogfoundry.ai/api/v1"
KEY = "$MODEL_CENTER_API_KEY"
headers = {"Authorization": f"Bearer {KEY}", "Content-Type": "application/json"}
# 提交任务
resp = requests.post(f"{BASE}/tasks/generations", headers=headers, data='''{
"model": "google/veo3.1-fast-preview",
"aspect_ratio": "16:9",
"duration_seconds": 8,
"enhance_prompt": true,
"generate_audio": true,
"person_generation": "allow_adult",
"prompt": "特写:两个人盯着墙上的神秘图画,手电筒的光芒闪烁不定。女人看着他,兴奋地低声说:“你发现了什么?”,男人低声说:“一定是这个。这就是密码。” ",
"resolution": "720p",
"sample_count": 1
}''')
request_id = resp.json()["data"]["request_id"]
# 轮询结果
result = requests.get(f"{BASE}/tasks/generations/{request_id}", headers=headers)
print(result.json()) const BASE = "https://router-integration.test.cogfoundry.ai/api/v1";
const KEY = "$MODEL_CENTER_API_KEY";
const headers = { Authorization: "Bearer " + KEY, "Content-Type": "application/json" };
// 提交任务
const payload = {
"model": "google/veo3.1-fast-preview",
"aspect_ratio": "16:9",
"duration_seconds": 8,
"enhance_prompt": true,
"generate_audio": true,
"person_generation": "allow_adult",
"prompt": "特写:两个人盯着墙上的神秘图画,手电筒的光芒闪烁不定。女人看着他,兴奋地低声说:“你发现了什么?”,男人低声说:“一定是这个。这就是密码。” ",
"resolution": "720p",
"sample_count": 1
};
const resp = await fetch(BASE + "/tasks/generations", {
method: "POST",
headers,
body: JSON.stringify(payload),
});
const { data } = await resp.json();
// 轮询结果
const result = await fetch(BASE + "/tasks/generations/" + data.request_id, { headers });
console.log(await result.json()); 定价
USD · 实时汇率| 定价 | USD |
|---|---|
| 不带音频 | $0.08 |
| 带音频 | $0.10 |
供应商
提供该模型的渠道| 供应商 | 起价 |
|---|---|
| VertexTask | $0.08 |