VideoGeneration​Video​Generation

Generate video using Google's Veo 3 model.

Generate high-quality videos from text prompts using Google's Veo 3 model via the Gemini API. See Veo 3 documentation for more information.

yaml
type: "io.kestra.plugin.gemini.VideoGeneration"

Generate a video of a golden retriever playing in sunflowers.

yaml
id: gemini_video_generation
namespace: company.ai

tasks:
  - id: generate_video
    type: io.kestra.plugin.gemini.VideoGeneration
    apiKey: "{{ secret('GEMINI_API_KEY') }}"
    model: "veo-3.0-generate-preview"
    prompt: "a close-up shot of a golden retriever playing in a field of sunflowers"
    negativePrompt: "barking, woofing"
    duration: 5

Generate video using Vertex AI with audio enabled.

yaml
id: gemini_vertex_video_with_audio
namespace: company.ai

tasks:
  - id: generate_vertex_video
    type: io.kestra.plugin.gemini.VideoGeneration
    model: "veo-3.0-generate-preview"
    prompt: "a serene mountain landscape with flowing rivers and birds chirping"
    duration: 8
    includeAudio: true
    vertexAI: true
    project: "{{ secret('GCP_PROJECT_ID') }}"
    location: "us-central1"
    outputGcsUri: "gs://my-bucket/videos/"
Properties

Gemini API Key

Model

Specifies which generative model (e.g., 'gemini-1.5-flash', 'gemini-1.0-pro') to use for the completion.

Video generation prompt

Text description of the video to generate

File Download Path

Specify the file name or local path where the generated file will be saved. For example: '/Users/workspace/plugin-gemini/video.mp4' If not provided, the file will be saved with a default name in the format 'genai_video_.mp4', " + where {date} will be replaced with the current time in milliseconds format.

Default 10

Video duration in seconds

Duration of the generated video in seconds. Default is 10 seconds.

Default false

Include audio generation

Whether to generate synchronized audio for the video. Default is false.

Location

The Google Cloud location (region) where the service is being requested. For example: 'us-central1'.

Negative prompt

Text description of what should NOT appear in the video

Default 1

Number of videos to generate

The number of videos to generate in the request. Default is 1.

GCS Output URI

Optional Google Cloud Storage (GCS) URI to store the generated video (e.g., gs://your-bucket/path/). If not provided, the video will be returned as a downloadable link.

Project ID

The Google Cloud project ID associated with this request. Required when using project/location for authentication.

Seed value

Optional seed to make video generation deterministic. If not provided, a random seed is used.

Default PT5M
Format duration

Request timeout

Timeout for the video generation request. Default is 5 minutes.

Default false

Use Vertex AI

Flag to determine whether to use Google Vertex AI for video generation. When true, output must be written to a GCS URI.

Metadata

Optional metadata related to the video generation process (e.g., model version, GCS path, etc.).

MIME type

MIME type of the generated video (e.g., video/mp4).

Video URI

URI of the generated video file.