Gemini 中文指南
获取 API 密钥 ↗

通过 Gemini API 使用 Veo 3.1 生成视频

↓ 下载 MarkdownInteractions API

要了解视频理解,请参阅 视频理解 指导。

Veo 3.1 是使用本机生成的音频生成 8 秒视频(720p、1080p 或 4k)的模型。您可以使用 Gemini API 以编程方式访问此模型。要了解有关可用 Veo 型号变体的更多信息,请参阅 型号版本 部分。

Veo 3.1 擅长各种视觉和电影风格,并引入了多项新功能:

  • 人像视频:选择风景 (16:9) 和肖像 (9:16)视频。
  • 视频延伸:扩展之前使用 Veo 生成的视频。
  • 特定于框架的生成:通过指定第一帧和最后一帧生成视频。
  • 基于图像的方向:最多使用三个参考图像来指导生成的视频的内容。

有关为视频生成编写有效文本提示的更多信息,请参阅 Veo提示指南

文本到视频生成 #

以下示例展示了如何使用以下命令生成视频 对话, 电影现实主义, 或 创意动画:

对话和音效 #

python
import time
from google import genai
from google.genai import types

client = genai.Client()

prompt = """A close up of two people staring at a cryptic drawing on a wall, torchlight flickering.
A man murmurs, 'This must be it. That's the secret code.' The woman looks at him and whispering excitedly, 'What did you find?'"""

operation = client.models.generate_videos(
    model="veo-3.1-generate-preview",
    prompt=prompt,
)

# Poll the operation status until the video is ready.
while not operation.done:
    print("Waiting for video generation to complete...")
    time.sleep(10)
    operation = client.operations.get(operation)

# Download the generated video.
generated_video = operation.response.generated_videos[0]
client.files.download(file=generated_video.video, destination="dialogue_example.mp4")
print("Generated video saved to dialogue_example.mp4")

电影现实主义 #

python
import time
from google import genai
from google.genai import types

client = genai.Client()

prompt = """Drone shot following a classic red convertible driven by a man along a winding coastal road at sunset, waves crashing against the rocks below.
The convertible accelerates fast and the engine roars loudly."""

operation = client.models.generate_videos(
    model="veo-3.1-generate-preview",
    prompt=prompt,
)

# Poll the operation status until the video is ready.
while not operation.done:
    print("Waiting for video generation to complete...")
    time.sleep(10)
    operation = client.operations.get(operation)

# Download the generated video.
generated_video = operation.response.generated_videos[0]
client.files.download(file=generated_video.video, destination="realism_example.mp4")
print("Generated video saved to realism_example.mp4")

创意动画 #

python
import time
from google import genai

client = genai.Client()
prompt = "A whimsical stop-motion animation of a tiny robot tending to a garden of glowing mushrooms on a miniature planet."

operation = client.models.generate_videos(
    model="veo-3.1-generate-preview",
    prompt=prompt,
)

# Poll the operation status until the video is ready.
while not operation.done:
    print("Waiting for video generation to complete...")
    time.sleep(10)
    operation = client.operations.get(operation)

# Download the generated video.
generated_video = operation.response.generated_videos[0]
client.files.download(file=generated_video.video, destination="style_example.mp4")
print("Generated video saved to style_example.mp4")

控制纵横比 #

Veo 3.1 让您创建风景 (16:9,默认设置)或纵向(9:16)视频。您可以使用以下命令告诉模型您想要哪一个 aspect_ratio 参数:

python
import time
from google import genai
from google.genai import types

client = genai.Client()

prompt = """A montage of pizza making: a chef tossing and flattening the floury dough, ladling rich red tomato sauce in a spiral, sprinkling mozzarella cheese and pepperoni, and a final shot of the bubbling golden-brown pizza, upbeat electronic music with a rhythmical beat is playing, high energy professional video."""

operation = client.models.generate_videos(
    model="veo-3.1-generate-preview",
    prompt=prompt,
    config=types.GenerateVideosConfig(
      aspect_ratio="9:16",
    ),
)

# Poll the operation status until the video is ready.
while not operation.done:
    print("Waiting for video generation to complete...")
    time.sleep(10)
    operation = client.operations.get(operation)

# Download the generated video.
generated_video = operation.response.generated_videos[0]
client.files.download(file=generated_video.video, destination="pizza_making.mp4")
print("Generated video saved to pizza_making.mp4")

控制分辨率 #

Veo 3.1还可以直接生成720p、1080p或4k视频(Veo 3.1 Lite不支持4k)。

请注意,分辨率越高,延迟就越高。 4k 视频也更贵(请参阅 定价).

视频延伸 也仅限于 720p 视频。

python
import time
from google import genai
from google.genai import types

client = genai.Client()

prompt = """A stunning drone view of the Grand Canyon during a flamboyant sunset that highlights the canyon's colors. The drone slowly flies towards the sun then accelerates, dives and flies inside the canyon."""

operation = client.models.generate_videos(
    model="veo-3.1-generate-preview",
    prompt=prompt,
    config=types.GenerateVideosConfig(
      resolution="4k",
    ),
)

# Poll the operation status until the video is ready.
while not operation.done:
    print("Waiting for video generation to complete...")
    time.sleep(10)
    operation = client.operations.get(operation)

# Download the generated video.
generated_video = operation.response.generated_videos[0]
client.files.download(file=generated_video.video, destination="4k_grand_canyon.mp4")
print("Generated video saved to 4k_grand_canyon.mp4")

图像到视频生成 #

以下代码演示了使用生成图像 Gemini 3.1 Flash Image 又名 Nano Banana 2,然后使用该图像作为使用 Veo 3.1 生成视频的起始帧。

python
import time
from google import genai

client = genai.Client()

prompt = "Panning wide shot of a calico kitten sleeping in the sunshine"

# Step 1: Generate an image with Nano Banana 2.
image = client.models.generate_content(
    model="gemini-3.1-flash-image-preview",
    contents=prompt,
    config={"response_modalities":['IMAGE']}
)

# Step 2: Generate video with Veo 3.1 using the image.
operation = client.models.generate_videos(
    model="veo-3.1-generate-preview",
    prompt=prompt,
    image=image.parts[0].as_image(),
)

# Poll the operation status until the video is ready.
while not operation.done:
    print("Waiting for video generation to complete...")
    time.sleep(10)
    operation = client.operations.get(operation)

# Download the video.
video = operation.response.generated_videos[0]
client.files.download(file=video.video, destination="veo3_with_image_input.mp4")
print("Generated video saved to veo3_with_image_input.mp4")

使用参考图像 #

Veo 3.1 现在最多可接受 3 参考图像来指导生成的视频内容。提供人物、角色或产品的图像,以在输出视频中保留主题的外观。

例如,使用生成的这三个图像 Nano Banana 作为参考 写得好的提示 创建以下视频:

dress_imagewoman_imageglasses_image
python
import time
from google import genai

client = genai.Client()

prompt = "The video opens with a medium, eye-level shot of a beautiful woman with dark hair and warm brown eyes. She wears a magnificent, high-fashion flamingo dress with layers of pink and fuchsia feathers, complemented by whimsical pink, heart-shaped sunglasses. She walks with serene confidence through the crystal-clear, shallow turquoise water of a sun-drenched lagoon. The camera slowly pulls back to a medium-wide shot, revealing the breathtaking scene as the dress's long train glides and floats gracefully on the water's surface behind her. The cinematic, dreamlike atmosphere is enhanced by the vibrant colors of the dress against the serene, minimalist landscape, capturing a moment of pure elegance and high-fashion fantasy."

dress_reference = types.VideoGenerationReferenceImage(
  image=dress_image, # Generated separately with Nano Banana
  reference_type="asset"
)

sunglasses_reference = types.VideoGenerationReferenceImage(
  image=glasses_image, # Generated separately with Nano Banana
  reference_type="asset"
)

woman_reference = types.VideoGenerationReferenceImage(
  image=woman_image, # Generated separately with Nano Banana
  reference_type="asset"
)

operation = client.models.generate_videos(
    model="veo-3.1-generate-preview",
    prompt=prompt,
    config=types.GenerateVideosConfig(
      reference_images=[dress_reference, glasses_reference, woman_reference],
    ),
)

# Poll the operation status until the video is ready.
while not operation.done:
    print("Waiting for video generation to complete...")
    time.sleep(10)
    operation = client.operations.get(operation)

# Download the video.
video = operation.response.generated_videos[0]
client.files.download(file=video.video, destination="veo3.1_with_reference_images.mp4")
print("Generated video saved to veo3.1_with_reference_images.mp4")

使用第一帧和最后一帧 #

Veo 3.1 允许您使用插值或指定视频的第一帧和最后一帧来创建视频。有关为视频生成编写有效文本提示的信息,请参阅 Veo提示指南.

python
import time
from google import genai

client = genai.Client()

prompt = "A cinematic, haunting video. A ghostly woman with long white hair and a flowing dress swings gently on a rope swing beneath a massive, gnarled tree in a foggy, moonlit clearing. The fog thickens and swirls around her, and she slowly fades away, vanishing completely. The empty swing is left swaying rhythmically on its own in the eerie silence."

operation = client.models.generate_videos(
    model="veo-3.1-generate-preview",
    prompt=prompt,
    image=first_image, # The starting frame is passed as a primary input
    config=types.GenerateVideosConfig(
      last_frame=last_image # The ending frame is passed as a generation constraint in the config
    ),
)

# Poll the operation status until the video is ready.
while not operation.done:
    print("Waiting for video generation to complete...")
    time.sleep(10)
    operation = client.operations.get(operation)

# Download the video.
video = operation.response.generated_videos[0]
client.files.download(file=video.video, destination="veo3.1_with_interpolation.mp4")
print("Generated video saved to veo3.1_with_interpolation.mp4")

扩展 Veo 视频 #

Veo 3.1 Lite。

使用 Veo 3.1 将您之前使用 Veo 生成的视频延长 7 秒,最多 20 倍。

输入视频限制:

  • Veo 生成的视频长度最多为 141 秒。
  • Gemini API 仅支持 Veo 生成的视频的视频扩展。
  • 该视频应该来自上一代,例如 operation.response.generated_videos[0].video
  • 视频存储 2 天,但如果引用视频进行扩展,则其 2 天存储计时器将重置。您只能扩展最近两天生成或引用的视频。
  • 输入视频应具有一定的长度、宽高比和尺寸: * 宽高比:9:16 或 16:9
    • 分辨率:720p
    • 视频长度:141秒或更短

扩展的输出是单个视频,将用户输入视频与生成的扩展视频相结合,长达 148 秒的视频。

此示例采用 Veo 生成的视频(此处显示其原始提示),并使用 video 参数和新提示:

提示输出:butterfly_video
一只折纸蝴蝶扇动翅膀,从法式大门飞进花园。
python
import time
from google import genai

client = genai.Client()

prompt = "Track the butterfly into the garden as it lands on an orange origami flower. A fluffy white puppy runs up and gently pats the flower."

operation = client.models.generate_videos(
    model="veo-3.1-generate-preview",
    video=operation.response.generated_videos[0].video, # This must be a video from a previous generation
    prompt=prompt,
    config=types.GenerateVideosConfig(
        number_of_videos=1,
        resolution="720p"
    ),
)

# Poll the operation status until the video is ready.
while not operation.done:
    print("Waiting for video generation to complete...")
    time.sleep(10)
    operation = client.operations.get(operation)

# Download the video.
video = operation.response.generated_videos[0]
client.files.download(file=video.video, destination="veo3.1_extension.mp4")
print("Generated video saved to veo3.1_extension.mp4")

处理异步操作 #

视频生成是一项计算密集型任务。当您向 API 发送请求时,它会启动一个长时间运行的作业并立即返回一个 operation 对象。然后,您必须轮询直到视频准备就绪,这由 done 状态为真。

这个过程的核心是轮询循环,它定期检查作业的状态。

python
import time
from google import genai
from google.genai import types

client = genai.Client()

# After starting the job, you get an operation object.
operation = client.models.generate_videos(
    model="veo-3.1-generate-preview",
    prompt="A cinematic shot of a majestic lion in the savannah.",
)

# Alternatively, you can use operation.name to get the operation.
operation = types.GenerateVideosOperation(name=operation.name)

# This loop checks the job status every 10 seconds.
while not operation.done:
    time.sleep(10)
    # Refresh the operation object to get the latest status.
    operation = client.operations.get(operation)

# Once done, the result is in operation.response.
# ... process and download your video ...

Veo API参数及规格 #

这些是您可以在 API 请求中设置的参数,以控制视频生成过程。

参数Veo 3.1 和 Veo 3.1 快速Veo 3.1 LiteVeo 3 和 Veo 3 快速
实例
prompt:视频的文字描述。支持音频提示。stringstringstring
image:要制作动画的初始图像。Image 对象Image 对象Image 对象
lastFrame:插值视频要过渡的最终图像。必须与 image 参数。Image 对象Image 对象Image 对象
referenceImages:最多三个图像可用作样式和内容参考。VideoGenerationReferenceImage 对象n/a 对象n/a
video:用于视频扩展的视频。Video 上一代的对象n/an/a
参数
aspectRatio:视频的宽高比。"16:9" (默认), "9:16""16:9" (默认), "9:16""16:9" (默认), "9:16"
durationSeconds:生成视频的长度。"4", "6", "8"。使用扩展、参考图像或具有 1080p 和 4k 分辨率时必须为“8”"4", "6", "8"。使用参考图像或 1080p 时必须为“8”"4", "6", "8"。使用扩展、参考图像或具有 1080p 和 4k 分辨率时必须为“8”
personGeneration:控制人的生成。 (参见 限制 因地区限制)文本转视频和扩展: "allow_all" 仅图像到视频、插值和参考图像: "allow_adult" 仅文字转视频: "allow_all" 仅图像到视频、插值和参考图像: "allow_adult" 仅文字转视频: "allow_all" 仅图像到视频: "allow_adult" 仅
resolution:视频的分辨率。"720p" (默认), "1080p" (仅支持8s持续时间), "4k" (仅支持8s时长) "720p" 仅用于扩展"720p" (默认), "1080p" (仅支持8s时长)"720p" (默认), "1080p" (仅支持8s持续时间), "4k" (仅支持8s时长) "720p" 仅用于扩展

请注意, seed 参数也适用于 Veo 3 型号。它不能保证确定性,但会稍微改进它。

型号特点 #

特点Veo 3.1 和 Veo 3.1 快速Veo 3.1 LiteVeo 3 和 Veo 3 快速
音频: 本机生成音频和视频。✔️ 始终开启✔️ 始终开启✔️ 始终开启
输入方式: 用于生成的输入类型。文本转视频、图像转视频、视频转视频文本转视频、图像转视频文本转视频、图像转视频
分辨率: 视频的输出分辨率。720p、1080p(仅限 8 秒长度)、4k(仅限 8 秒长度) 仅在使用视频扩展时为 720p。720p、1080p(仅限 8 秒长度)720p 和 1080p(仅限 16:9)
帧率: 视频的输出帧速率。24帧/秒24帧/秒24帧/秒
视频时长: 生成视频的长度。8 秒、6 秒、4 秒 8 秒(仅限 1080p 或 4k 或使用参考图像)8 秒、6 秒、4 秒 8 秒(仅限 1080p 或使用参考图像)8 秒
根据请求的视频: 每个请求生成的视频数量。111
状态: 型号可用性预览预览稳定

限制 #

  • 多视频提示: 目前不支持跨多个视频进行引用或推理。尝试多视频提示可能会导致模型性能下降或意外输出。
  • 语言支持: 完全支持英语 (EN),但尚未评估其他语言,因此它们可能有效,但结果可能会有所不同。
  • 请求延迟: 分钟:11 秒;最长:6 分钟(高峰时段)。
  • 区域限制: 在欧盟、英国、瑞士、中东和北非地区, allow_adult 是唯一允许的值 personGeneration.
  • 视频保留: 生成的视频将在服务器上存储 2 天,之后将被删除。要保存本地副本,您必须在生成后的 2 天内下载视频。扩展视频被视为新生成的视频。
  • 水印: Veo 创建的视频使用水印 合成ID,我们用于添加水印和识别人工智能生成内容的工具。可以使用以下方式验证视频 合成ID 验证平台。
  • 安全: 生成的视频通过安全过滤器和记忆检查流程,有助于降低隐私、版权和偏见风险。
  • 音频错误: 由于安全过滤器或其他音频处理问题,Veo 3.1 有时会阻止视频生成。如果您的视频被阻止生成,您将无需付费。

Veo提示指南 #

本部分包含您可以使用 Veo 创建的视频示例,并向您展示如何修改提示以产生不同的结果。

安全过滤器 #

Veo 在 Gemini 中应用安全过滤器,以帮助确保生成的视频和上传的照片不包含攻击性内容。违反我们的提示 条款和准则 被封锁。

即时写作基础知识 #

好的提示是描述性的且清晰的。要充分利用 Veo,请首先确定您的核心想法,通过添加关键字和修饰符来完善您的想法,并将视频特定术语纳入您的提示中。

您的提示中应包含以下元素:

  • 主题:您想要在视频中出现的物体、人物、动物或风景,例如 城市景观, 自然, 车辆, 或 小狗.
  • 行动:主体正在做什么(例如, 步行, 跑步, 或 转过头).
  • 风格:使用特定的电影风格关键词指定创意方向,例如 科幻小说, 恐怖片, 黑色电影,或动画风格,如 卡通.
  • 相机定位和运动:[可选]使用以下术语控制相机的位置和移动 鸟瞰图, 视线水平, 自上而下拍摄, 多莉射击, 或 虫眼.
  • 成分:[可选]镜头的构图方式,例如 广角镜头, 特写, 单发 或 两次射击.
  • 焦点和镜头效果:[可选]使用类似的术语 浅焦点, 深度聚焦, 柔焦, 微距镜头, 和 广角镜头 以达到特定的视觉效果。
  • 氛围:[可选]颜色和光线如何影响场景,例如 蓝色调, 晚上, 或 暖色调.

更多写作提示的技巧 #

  • 使用描述性语言:使用形容词和副词为Veo描绘出清晰的画面。
  • 增强面部细节:指定面部细节作为照片的焦点,就像使用单词一样 肖像 在提示中。

如需更全面的提示策略,请访问 提示设计简介.

提示音频 #

您可以为 Veo 提供音效、环境噪音和对话提示。该模型捕捉这些线索的细微差别以生成同步的配乐。

  • 对话: 对特定的演讲使用引号。 (例如:“这一定是钥匙,”他低声说道。)
  • 音效(SFX): 明确描述声音。 (例如:轮胎发出刺耳的声音,发动机发出轰鸣声。)
  • 环境噪音: 描述环境的音景。 (例如:背景中响起微弱、怪异的嗡嗡声。)

这些视频演示了如何提示 Veo 3 的音频生成,并且细节水平不断提高。

提示生成的输出
更多细节(对话和氛围) 太平洋西北地区雾蒙蒙的森林的广角镜头。两名精疲力尽的徒步旅行者,一男一女,正穿过蕨类植物,其中一名男子突然停了下来,盯着一棵树。特写:树皮上刻有新鲜而深的爪痕。男人:(把手放在猎刀上)“那不是普通的熊。”女人:(声音紧张,扫视着树林)“那是什么?”粗糙的树皮,折断的树枝,潮湿的土地上的脚步声。一只孤独的鸟在鸣叫。
细节较少(对话) 剪纸动画。新图书馆员:“你们把禁书放在哪里?”老馆长:“我们没有。他们保留了我们。”

尝试 Veo

使用参考图像提示 #

您可以使用一张或多张图像作为输入来指导生成的视频,使用 Veo 图像到视频 能力。 Veo 使用输入图像作为初始帧。选择最接近您设想的视频第一个场景的图像,为日常物体赋予动画效果,使图画和绘画栩栩如生,并为自然场景添加运动和声音。

提示生成的输出
输入图像(由Nano Banana生成) 一张超写实的宏观照片,照片上是微型冲浪者在质朴的石头浴室水槽内乘着海浪。老式黄铜水龙头正在运转,创造出永恒的海浪。超现实、异想天开、明亮的自然光。
输出视频(由Veo 3.1生成) 超现实的电影宏观视频。小冲浪者在浴室的石制水槽内乘着永不停歇的滚滚海浪。运行中的老式黄铜水龙头产生无尽的海浪。镜头慢慢地扫过这片奇异的阳光照射下的场景,微型人物熟练地雕刻着碧绿的海水。

Veo 3.1 让您 参考图像 或成分来指导您生成的视频内容。提供最多三个单个人、角色或产品的资产图像。 Veo 保留输出视频中主体的外观。

提示生成的输出
参考图像(由Nano Banana生成) 一条深海琵琶鱼潜伏在漆黑的深水中,露出牙齿,饵料闪闪发光。
参考图像(由Nano Banana生成) 粉色儿童公主服装,配有魔杖和头饰,背景朴素。
输出视频(由Veo 3.1生成) 创建一个愚蠢的卡通版鱼,穿着服装,游泳并挥舞魔杖。

使用Veo 3.1,还可以通过指定生成视频 第一帧和最后一帧 视频的。

提示生成的输出
第一张图像(由 Nano Banana 生成) 法国里维埃拉海岸上一只姜猫驾驶红色敞篷赛车的高品质逼真正面图像。
最后一张图片(由 Nano Banana 生成) 展示当汽车从悬崖上起飞时会发生什么。
输出视频(由Veo 3.1生成) 可选

此功能可让您定义起始帧和结束帧,从而精确控制镜头的构图。上传图像或使用上一视频生成的帧,以确保您的场景完全按照您的设想开始和结束。

提示延期 #

至 延长 如果您使用 Veo 生成的视频与 Veo 3.1(不适用于 Veo 3.1 Lite),请使用该视频作为输入以及可选的文本提示。 Extend 完成视频的最后一秒或 24 帧并继续操作。

请注意,如果视频的最后一秒 1 中不存在语音,则无法有效扩展语音。

提示生成的输出
输入视频(由Veo 3.1生成) 滑翔伞从山顶起飞,开始滑下山峦,俯瞰下面开满鲜花的山谷。
输出视频(由Veo 3.1生成) 延长这段视频,让滑翔伞缓慢下降。

示例提示和输出 #

本节提供了几个提示,强调描述性细节如何提升每个视频的效果。

冰柱 #

该视频演示了如何使用以下元素 即时写作基础 在你的提示中。

提示生成的输出
冰冻岩壁(背景)上融化的冰柱(主体)的特写镜头(构图),带有冷蓝色调(氛围),放大(相机运动),保持水滴的特写细节(动作)。

打电话的男人 #

这些视频演示了如何使用越来越具体的细节修改提示,以使 Veo 根据您的喜好优化输出。

提示生成的输出
细节较少 镜头移动,显示了一个穿着绿色风衣的绝望男人的特写镜头。他正在用带有绿色霓虹灯的旋转式墙壁电话拨打电话。看起来就像电影场景。
更多细节 一个特写电影镜头讲述了一个身穿风化的绿色风衣的绝望男人拨打安装在砂砾砖墙上的旋转电话的故事,电话沐浴在绿色霓虹灯的怪异光芒中。镜头拉近,显示出他下巴的紧张和他挣扎着打电话时脸上的绝望。浅景深集中在他紧皱的眉头和黑色转盘电话上,将背景模糊成霓虹色的海洋和模糊的阴影,营造出一种紧迫感和孤立感。

雪豹 #

提示生成的输出
简单提示: 一种长着雪豹般毛皮的可爱生物正在冬季森林中行走,3D 卡通风格渲染。
详细提示: 以欢乐的卡通风格创建简短的 3D 动画场景。一种可爱的生物,有着雪豹般的皮毛、富有表现力的大眼睛和友好的圆形体态,快乐地在异想天开的冬季森林中跳跃。场景应该有被雪覆盖的圆形树木、轻柔飘落的雪花以及透过树枝的温暖阳光。这种生物充满活力的动作和灿烂的笑容应该传达出纯粹的喜悦。力求用明亮、欢快的色彩和俏皮的动画营造出乐观、温馨的基调。

编写元素的示例 #

这些示例向您展示如何通过每个基本元素完善提示。

主题和背景 #

指定主要焦点(主题)和背景或环境(上下文)。

提示生成的输出
白色混凝土公寓楼的建筑渲染,具有流动的有机形状,与郁郁葱葱的绿色植物和未来元素无缝融合
一颗卫星漂浮在外太空,背景是月亮和一些星星。

行动 #

指定拍摄对象正在做什么(例如行走、跑步或转头)。

提示生成的输出
一张广角镜头中,一名女子沿着海滩散步,在日落时分,她看上去心满意足,放松地看着地平线。

风格 #

添加关键词以引导这一代人走向特定的审美(例如超现实、复古、未来、黑色电影)。

提示生成的输出
黑色电影风格,男人和女人走在街上,神秘,电影,黑白。

相机运动和构图 #

指定相机如何移动(POV 镜头、鸟瞰图、跟踪无人机视图)以及镜头如何构图(广角镜头、特写、低角度)。

提示生成的输出
加拿大夜间雨中行驶的老式汽车的 POV 镜头,如电影般。
一只眼睛的极端特写,其中反射着城市。

氛围 #

调色板和灯光影响情绪。尝试使用“柔和的橙色暖色调”、“自然光”、“日出”或“冷蓝色调”等术语。

提示生成的输出
阳光下,一个女孩在公园里抱着可爱的金毛小狗的特写。
一个悲伤的女人在雨中乘坐公共汽车的电影特写镜头,凉爽的蓝色色调,悲伤的心情。

纵横比 #

Veo 允许您指定视频的宽高比。

提示生成的输出
宽屏(16:9) 使用跟踪无人机视图创建一个视频,视频中一名男子在 20 世纪 70 年代棕榈泉驾驶红色敞篷车,温暖的阳光,长长的影子。
肖像 (9:16) 创建一个视频,突出显示郁郁葱葱的雨林中雄伟的夏威夷瀑布的流畅运动。注重真实的水流、细致的树叶和自然光线,以传达宁静。捕捉湍急的流水、雾气弥漫的气氛,以及透过茂密树冠的斑驳阳光。使用流畅的电影摄影机移动来展示瀑布及其周围环境。力求营造平和、现实的基调,将观众带入夏威夷雨林的宁静之美。

型号版本 #

查看 价格 页面和 速率限制 了解更多 Veo 型号特定的使用详细信息。

属性

说明

模型代码

Gemini API veo-3.1-generate-preview

支持的数据类型

输入 文字、图像 输出 视频与音频

限制

文字输入 1,024 token 输出视频 1

最新更新

一月 2026

Veo 快速版本允许开发人员创建有声视频,同时保持高质量并优化速度和业务用例。它们非常适合以编程方式生成广告的后端服务、用于快速创意概念 A/B 测试的工具或需要快速生成社交媒体内容的应用程序。

后续步骤 #

搜索标题、API 名称或正文内容