Skip to content

Commit d3c7155

Browse files
authored
feat: veo model update (#13637)
1 parent 4cd0939 commit d3c7155

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

genai/video_generation/videogen_with_first_last_frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def generate_videos_from_first_last_frame(output_gcs_uri: str) -> str:
2525
# output_gcs_uri = "gs://your-bucket/your-prefix"
2626

2727
operation = client.models.generate_videos(
28-
model="veo-3.1-generate-preview",
28+
model="veo-3.1-generate-001",
2929
prompt="a hand reaches in and places a glass of milk next to the plate of cookies",
3030
image=Image(
3131
gcs_uri="gs://cloud-samples-data/generative-ai/image/cookies.png",

genai/video_generation/videogen_with_img.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def generate_videos_from_image(output_gcs_uri: str) -> str:
2525
# output_gcs_uri = "gs://your-bucket/your-prefix"
2626

2727
operation = client.models.generate_videos(
28-
model="veo-3.1-generate-preview",
28+
model="veo-3.1-generate-001",
2929
prompt="Extreme close-up of a cluster of vibrant wildflowers swaying gently in a sun-drenched meadow.",
3030
image=Image(
3131
gcs_uri="gs://cloud-samples-data/generative-ai/image/flowers.png",

genai/video_generation/videogen_with_txt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def generate_videos(output_gcs_uri: str) -> str:
2525
# output_gcs_uri = "gs://your-bucket/your-prefix"
2626

2727
operation = client.models.generate_videos(
28-
model="veo-3.0-generate-001",
28+
model="veo-3.1-generate-001",
2929
prompt="a cat reading a book",
3030
config=GenerateVideosConfig(
3131
aspect_ratio="16:9",

0 commit comments

Comments
 (0)