Google Gemini

Generate videos with Google's Omni Flash and Veo 3.1 models

Generate videos using Google’s Omni Flash and Veo 3.1 models through the Gemini API.

python
from praisonaiagents import VideoAgent

agent = VideoAgent(llm="gemini/veo-3.1-generate-preview")
video = agent.start("A sunrise over mountains", output="sunrise.mp4")

Authentication

Set your Gemini API key before running.

bash
export GOOGLE_API_KEY=your-key
# GEMINI_API_KEY also works
python
from praisonaiagents import VideoAgent

agent = VideoAgent(llm="gemini/veo-3.1-generate-preview")
video = agent.start("A city skyline at night", output="skyline.mp4")

Models

Three Veo 3.1 tiers cover cinematic quality down to cheap iteration.

ModelDescription
gemini/gemini-omni-1.1-flashGemini Omni Flash — Google’s default video model
gemini/veo-3.1-generate-previewVeo 3.1 Standard — cinematic quality
gemini/veo-3.1-fast-generate-previewVeo 3.1 Fast — quicker, lower cost
gemini/veo-3.1-lite-generate-previewVeo 3.1 Lite — cheapest iteration

Which Veo 3.1 tier should I pick?

Diagram

Cinematic quality

Speed + cost

Cheapest iteration

🎬 Pick a Veo 3.1 tier

What matters most?

⭐ Standard
veo-3.1-generate-preview

⚡ Fast
veo-3.1-fast-generate-preview

💡 Lite
veo-3.1-lite-generate-preview

Deprecated

Migrate to the veo-3.1 IDs above. These older models are being retired.

ModelNote
gemini/veo-2.0-generate-001Deprecated — Gemini API shutdown 30 Jun 2026
gemini/veo-3.0-generate-previewDeprecated — Gemini API shutdown 30 Jun 2026
gemini/veo-3.0-fast-generate-previewDeprecated — Gemini API shutdown 30 Jun 2026

Gemini Omni Flash

Gemini Omni Flash (gemini-omni-1.1-flash) is Google’s recommended default video model. Use Veo 3.1 for cinematic pipelines and interpolation.

python
from praisonaiagents import VideoAgent

agent = VideoAgent(llm="gemini/gemini-omni-1.1-flash")
video = agent.start("A marble rolling on a chain-reaction track", output="marble.mp4")

Veo 3.1 features

Veo 3.1 adds frame interpolation and reference images. Both pass straight through generate() — no extra setup.

First + last frame

python
from praisonaiagents import VideoAgent

agent = VideoAgent(llm="gemini/veo-3.1-generate-preview")

# First + last frame interpolation (Veo 3.1)
agent.generate(
    prompt="Sunrise timelapse",
    input_reference=start_image,  # first frame
    last_frame=end_image,         # last frame
)

Reference images

python
from praisonaiagents import VideoAgent

agent = VideoAgent(llm="gemini/veo-3.1-generate-preview")

# Up to 3 reference images
agent.generate(
    prompt="A cinematic dolly shot of the character",
    reference_images=[img1, img2, img3],
)

Pricing & billing

Gemini Veo bills per generated second in USD on the paid API. You are charged only when a generation succeeds.

Parameters

python
video = agent.generate(
    prompt="Your description"
)

Features

FeatureSupported
Text-to-Video✅
Image-to-Video✅
First + last frame (Veo 3.1)✅
Reference images (Veo 3.1)✅
Video Remix❌
Custom DurationHandled automatically