We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a76ad1d commit 21ea70bCopy full SHA for 21ea70b
genai/video_generation/videogen_with_vid.py
@@ -25,14 +25,13 @@ def generate_videos_from_video(output_gcs_uri: str) -> str:
25
# output_gcs_uri = "gs://your-bucket/your-prefix"
26
27
operation = client.models.generate_videos(
28
- model="veo-2.0-generate-001",
+ model="veo-3.1-generate-preview",
29
prompt="a butterfly flies in and lands on the flower",
30
video=Video(
31
uri="gs://cloud-samples-data/generative-ai/video/flower.mp4",
32
mime_type="video/mp4",
33
),
34
config=GenerateVideosConfig(
35
- aspect_ratio="16:9",
36
output_gcs_uri=output_gcs_uri,
37
38
)
0 commit comments