Skip to content

Commit 21ea70b

Browse files
authored
feat: update Veo model to 3.1 for video extension (#13740)
1 parent a76ad1d commit 21ea70b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

genai/video_generation/videogen_with_vid.py

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

2727
operation = client.models.generate_videos(
28-
model="veo-2.0-generate-001",
28+
model="veo-3.1-generate-preview",
2929
prompt="a butterfly flies in and lands on the flower",
3030
video=Video(
3131
uri="gs://cloud-samples-data/generative-ai/video/flower.mp4",
3232
mime_type="video/mp4",
3333
),
3434
config=GenerateVideosConfig(
35-
aspect_ratio="16:9",
3635
output_gcs_uri=output_gcs_uri,
3736
),
3837
)

0 commit comments

Comments
 (0)