Does VEO works with the Gemini API SDK? (https://googleapis.github.io/python-genai/#veo)

I’m trying to generate a video from a given prompt, but get an error saying “model ‘veo-2.0-generate-001’ does not exist”. Also other errors like fps, param not supported. etc.

Veo
Support for generate videos in Vertex and Gemini Developer API is behind an allowlist

Create operation

operation = client.models.generate_videos(
model=‘veo-2.0-generate-001’,
prompt=‘A neon hologram of a cat driving at top speed’,
config=types.GenerateVideosConfig(
number_of_videos=1,
fps=24,
duration_seconds=5,
enhance_prompt=True,
),
)

Poll operation

while not operation.done:
time.sleep(20)
operation = client.operations.get(operation)

video = operation.result.generated_videos[0].video
video.show()

Hi @Mike_Figueroa

Welcome to the forum.

First sentence of your posted link: “Support for generate videos in Vertex and Gemini Developer API is behind an allowlist

If you are not allowlisted, you won’t have access to that model. Hence you are getting an HTTP 404 Not Found response.