Skip to main content
Open in Kaggle  Open in Colab  Download Notebook
This documentation page is also available as an interactive notebook. You can launch the notebook in Kaggle or Colab, or download it for use with an IDE or local Jupyter installation, by clicking one of the above links.
Create videos from text prompts or animate images using Google’s Gemini Omni model.

Problem

You need to generate video content programmatically for social media, product demos, or creative applications.

Solution

What’s in this recipe:
  • Generate videos from text prompts
  • Animate existing images into videos
  • Store prompts and generated videos together
You generate videos with Google’s Gemini Omni model. Computed columns store each generated video with its prompt. Updating the prompt regenerates that row’s video.

Setup

Created directory ‘video_gen_demo’.
<pixeltable.catalog.dir.Dir at 0x12d80c190>

Generate videos from text prompts

Created table ‘text_to_video’.
Added 0 column values with 0 errors in 0.00 s
No rows affected.
Inserted 1 row with 0 errors in 48.38 s (0.02 rows/s)

Animate images into videos

Created table ‘image_to_video’.
Added 0 column values with 0 errors in 0.00 s
No rows affected.
Inserted 1 row with 0 errors in 37.17 s (0.03 rows/s)

Explanation

Generation modes:
Gemini Omni model:
Tips:
  • Prompts work best when descriptive and specific
  • Computed columns store generated videos; reading them does not repeat generation
  • The prompt describes how to animate the reference images
  • New rows automatically generate videos on insert
Requirements:
  • Google AI Studio API key (set GEMINI_API_KEY); Gemini Omni requires the Gemini Developer API
  • pip install "google-genai>=2.22"

See also

Last modified on November 7, 2026