Skip to main content
Glama
mnthe
by mnthe

generate_video

Generate videos from text prompts, images, or extend existing clips using Veo models. Returns an operation ID for asynchronous polling.

Instructions

Start video generation using Google's Veo models. Returns an operationId immediately. Video generation typically takes 1-3 minutes. Use check_video with the operationId to poll for completion and download results. Recommended polling interval: 30 seconds. Supports text-to-video, image-to-video (with imagePath), interpolation (imagePath + lastFramePath), reference images (referenceImagePaths, max 3, Veo 3.1 only), and Veo video extension (videoPath). Image source file types: PNG (.png), JPEG (.jpg/.jpeg), WEBP (.webp). videoPath must be MP4 (.mp4) from a previous Veo 720p generation. Audio file references are not supported; describe dialogue, SFX, and ambience in the prompt instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNoRandom seed for reproducibility
modelNoVideo model (default: veo-3.1-fast-generate-preview)
promptYesVideo generation prompt. Include dialogue, SFX, and ambience as text audio cues; audio reference files are not accepted.
imagePathNoLocal file path of input image for image-to-video generation. Supported file types: PNG (.png), JPEG (.jpg/.jpeg), WEBP (.webp)
videoPathNoLocal file path of a Veo-generated 720p input video to extend. Supported file types: MP4 (.mp4) from a previous Veo 720p generation
resizeModeNoHow the input image is fit to the target aspect ratio for image-to-video (Vertex AI only; requires imagePath): 'crop' or 'pad' (default pad)
resolutionNoVideo resolution (1080p/4k requires 8s duration, default: 720p)
aspectRatioNoAspect ratio (default: 16:9)
enhancePromptNoUse Veo prompt rewriting/enhancement
generateAudioNoNot configurable in Gemini Developer API mode; Veo 3.1 audio is always on
lastFramePathNoLocal file path of last frame image for interpolation (requires imagePath). Supported file types: PNG (.png), JPEG (.jpg/.jpeg), WEBP (.webp)
negativePromptNoText describing what to exclude from the video
numberOfVideosNoNumber of videos to generate (default: 1, max: 1)
durationSecondsNoVideo duration in seconds (default: 8)
personGenerationNoOptional person generation control
compressionQualityNoOutput video compression quality (Vertex AI only): 'optimized' (smaller file, default) or 'lossless' (larger, highest quality)
referenceImagePathsNoLocal file paths of reference images for style/asset guidance (max 3, Veo 3.1 only). Supported file types: PNG (.png), JPEG (.jpg/.jpeg), WEBP (.webp)
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It discloses that generation takes 1-3 minutes, returns an operationId immediately, and lists limitations like 'Audio file references are not supported'. It is transparent about async behavior but could mention authentication requirements or rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-structured paragraph. It front-loads the essential action ('Returns an operationId immediately') and then provides detailed options and constraints without redundancy. Every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite 17 parameters and no output schema, the description covers the necessary context: modes, polling workflow, unsupported features, file types, and combination rules. It equips the agent to select and invoke the tool appropriately.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so baseline is 3. The description adds significant value by summarizing common usage patterns (text-to-video, image-to-video, interpolation) and providing constraints (e.g., 'videoPath must be MP4 from a previous Veo 720p generation'). This helps the agent understand parameter relationships beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it starts video generation using Google's Veo models, specifying multiple modes (text-to-video, image-to-video, etc.). It distinguishes itself from sibling tools like generate_image and check_video by focusing on video generation and referencing the polling workflow.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit instructions: 'Use check_video with the operationId to poll for completion' and recommends a 30-second polling interval. It also clarifies what is not supported (audio file references). However, it does not explicitly state when to avoid this tool in favor of alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mnthe/gemini-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server